Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001303/0.001303, allocations: 100.2 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001552/0.001553, allocations: 201.1 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.418/1.418, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002276/0.0002277, allocations: 11.98 kB / 306.7 MB, free: 1.262 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1165, allocations: 51.5 MB / 358.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.1829/0.2995, allocations: 15.41 MB / 373.6 MB, free: 8.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009148/0.3086, allocations: 4.885 MB / 378.5 MB, free: 8.391 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002891/0.3116, allocations: 72.31 kB / 378.6 MB, free: 8.379 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002138/0.3137, allocations: 0.7091 MB / 379.3 MB, free: 8.246 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007966/0.3217, allocations: 2.404 MB / 381.7 MB, free: 8.066 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001363/0.3231, allocations: 451.8 kB / 382.1 MB, free: 8.051 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003004/0.3261, allocations: 1.502 MB / 383.6 MB, free: 7.988 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00226/0.3284, allocations: 1.566 MB / 385.2 MB, free: 7.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001138/0.3295, allocations: 0.6302 MB / 385.8 MB, free: 7.668 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001548/0.3311, allocations: 0.8434 MB / 386.7 MB, free: 7.539 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003737/0.3315, allocations: 82.41 kB / 386.8 MB, free: 7.539 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002048/0.3335, allocations: 0.7324 MB / 387.5 MB, free: 7.465 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001191/0.3348, allocations: 0.9169 MB / 388.4 MB, free: 7.176 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007676/0.3355, allocations: 0.5019 MB / 388.9 MB, free: 6.953 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004462/0.34, allocations: 3.072 MB / 392 MB, free: 5.086 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.34, allocations: 0 / 392 MB, free: 5.086 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.34, allocations: 3.938 kB / 392 MB, free: 5.082 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.229e-05/0.3401, allocations: 0 / 392 MB, free: 5.082 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 951 * Number of variables: 951 Notification: Performance of Generate backend data structure: time 0.00687/0.347, allocations: 2.594 MB / 394.6 MB, free: 3.242 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.3471, allocations: 10.25 kB / 394.6 MB, free: 3.242 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006423/0.3477, allocations: 457.9 kB / 395 MB, free: 2.953 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009225/0.357, allocations: 1.899 MB / 396.9 MB, free: 2 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004518/0.3615, allocations: 1.476 MB / 398.4 MB, free: 1.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001602/0.3617, allocations: 123.6 kB / 398.5 MB, free: 1.039 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007295/0.3625, allocations: 159.9 kB / 398.7 MB, free: 1.012 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0128/0.3753, allocations: 6.58 MB / 405.3 MB, free: 11.55 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.359e-05/0.3754, allocations: 31.73 kB / 405.3 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002945/0.3757, allocations: 78.56 kB / 405.4 MB, free: 11.47 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002636/0.3783, allocations: 1.467 MB / 406.8 MB, free: 10.02 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01062/0.389, allocations: 5.873 MB / 412.7 MB, free: 4.137 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02896/0.418, allocations: 25.8 MB / 438.5 MB, free: 9.699 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005774/0.4238, allocations: 2.589 MB / 441.1 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008582/0.4324, allocations: 4.841 MB / 445.9 MB, free: 2.047 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.783e-05/0.4325, allocations: 46.45 kB / 446 MB, free: 1.992 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 4.108e-06/0.4325, allocations: 0 / 446 MB, free: 1.992 MB / 350.1 MB Notification: Performance of matching and sorting (n=105): time 0.02369/0.4562, allocations: 10.04 MB / 456 MB, free: 7.762 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.712e-05/0.4563, allocations: 144.9 kB / 456.2 MB, free: 7.59 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003853/0.4601, allocations: 2.812 MB / 459 MB, free: 4.758 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001688/0.4603, allocations: 37.7 kB / 459 MB, free: 4.715 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001328/0.4617, allocations: 2.046 MB / 461.1 MB, free: 2.672 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004759/0.4622, allocations: 427.8 kB / 461.5 MB, free: 2.258 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001645/0.4623, allocations: 81.64 kB / 461.6 MB, free: 2.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002821/0.4626, allocations: 491 kB / 462 MB, free: 1.691 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002314/0.4649, allocations: 1.429 MB / 463.5 MB, free: 264 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003532/0.4685, allocations: 4.022 MB / 467.5 MB, free: 10.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003028/0.4715, allocations: 2.336 MB / 469.8 MB, free: 8.586 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.793e-05/0.4716, allocations: 35.95 kB / 469.9 MB, free: 8.551 MB / 382.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.009456/0.481, allocations: 5.971 MB / 475.8 MB, free: 2.566 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.824e-05/0.4811, allocations: 48 kB / 475.9 MB, free: 2.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.281e-05/0.4812, allocations: 95.98 kB / 476 MB, free: 2.426 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00221/0.4834, allocations: 0.8279 MB / 476.8 MB, free: 1.594 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002723/0.4862, allocations: 0.9435 MB / 477.7 MB, free: 0.6484 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005837/0.492, allocations: 4.42 MB / 482.2 MB, free: 12.1 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003378/0.4954, allocations: 251.5 kB / 482.4 MB, free: 11.85 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004765/0.4959, allocations: 264 kB / 482.7 MB, free: 11.59 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 425 * Number of states: 0 () * Number of discrete variables: 21 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (498): * Single equations (assignments): 494 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002186/0.4981, allocations: 1.368 MB / 484 MB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000361/0.4985, allocations: 225.1 kB / 484.3 MB, free: 9.992 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004055/0.5026, allocations: 2.13 MB / 486.4 MB, free: 7.848 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.481e-05/0.5026, allocations: 12 kB / 486.4 MB, free: 7.836 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.5026, allocations: 4 kB / 486.4 MB, free: 7.832 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.101e-05/0.5026, allocations: 3.984 kB / 486.4 MB, free: 7.828 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009333/0.512, allocations: 5.084 MB / 491.5 MB, free: 2.664 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.406e-06/0.512, allocations: 0 / 491.5 MB, free: 2.664 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007651/0.5128, allocations: 159.7 kB / 491.6 MB, free: 2.508 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002043/0.5148, allocations: 0.6796 MB / 492.3 MB, free: 1.824 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.734e-05/0.5149, allocations: 20 kB / 492.3 MB, free: 1.805 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005022/0.52, allocations: 3.987 MB / 496.3 MB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.52, allocations: 0 / 496.3 MB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006394/0.5264, allocations: 4.155 MB / 0.4888 GB, free: 9.465 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007082/0.5271, allocations: 293.9 kB / 0.489 GB, free: 9.156 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002497/0.5274, allocations: 16 kB / 0.4891 GB, free: 9.141 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009558/0.5283, allocations: 71.89 kB / 0.4891 GB, free: 9.07 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001684/0.5285, allocations: 64.19 kB / 0.4892 GB, free: 9.008 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.673e-05/0.5286, allocations: 28 kB / 0.4892 GB, free: 8.98 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002596/0.5312, allocations: 1.776 MB / 0.4909 GB, free: 7.195 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5312, allocations: 0 / 0.4909 GB, free: 7.195 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003202/0.5344, allocations: 0.6874 MB / 0.4916 GB, free: 6.508 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (74): * Single equations (assignments): 70 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006625/0.5411, allocations: 5.112 MB / 0.4966 GB, free: 1.328 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005598/0.5467, allocations: 3.45 MB / 0.5 GB, free: 13.88 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.5467, allocations: 0 / 0.5 GB, free: 13.88 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00145/0.5482, allocations: 1.037 MB / 0.501 GB, free: 12.84 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001432/0.5496, allocations: 245.3 kB / 0.5012 GB, free: 12.6 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2446/0.7942, allocations: 85.34 MB / 0.5846 GB, free: 98.03 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002675/0.7969, allocations: 2.296 MB / 0.5868 GB, free: 96.99 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003339/0.8003, allocations: 1.328 MB / 0.5881 GB, free: 96.88 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001174/0.8015, allocations: 1.096 MB / 0.5892 GB, free: 96.02 MB / 446.1 MB Notification: Performance of SimCode: time 9.82e-07/0.8015, allocations: 0 / 0.5892 GB, free: 96.02 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1342/0.9356, allocations: 49.61 MB / 0.6376 GB, free: 53.12 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001429/0.9358, allocations: 224.6 kB / 0.6378 GB, free: 52.89 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.983/3.919, allocations: 0 / 0.6378 GB, free: 52.89 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-08 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat does not exist to compare? outputFormat=mat