Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.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.InitSpringConstant,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007687/0.000769, allocations: 95.84 kB / 17.35 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008875/0.0008875, allocations: 211.4 kB / 18.29 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.194/1.194, allocations: 227.7 MB / 246.8 MB, free: 9.473 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001926/0.0001925, allocations: 8 kB / 307.8 MB, free: 488 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07509/0.0753, allocations: 51.52 MB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.1653/0.2407, allocations: 33.46 MB / 392.8 MB, free: 1.258 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01376/0.2545, allocations: 7.759 MB / 400.6 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003376/0.2579, allocations: 146.3 kB / 400.7 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008051/0.2587, allocations: 371.7 kB / 401.1 MB, free: 12.07 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003043/0.2618, allocations: 1.532 MB / 402.6 MB, free: 11.41 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00108/0.2628, allocations: 0.5539 MB / 403.2 MB, free: 11.18 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004781/0.2676, allocations: 4.772 MB / 407.9 MB, free: 8.723 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003941/0.2716, allocations: 3.277 MB / 411.2 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001358/0.273, allocations: 0.9358 MB / 412.2 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001653/0.2746, allocations: 1.604 MB / 413.8 MB, free: 4.289 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002405/0.2749, allocations: 116 kB / 413.9 MB, free: 4.176 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001538/0.2764, allocations: 0.9399 MB / 414.8 MB, free: 3.234 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001026/0.2775, allocations: 1.406 MB / 416.2 MB, free: 1.824 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001201/0.2787, allocations: 1.67 MB / 417.9 MB, free: 140 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004/0.2827, allocations: 5.38 MB / 423.3 MB, free: 10.73 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.2827, allocations: 0 / 423.3 MB, free: 10.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2827, allocations: 0 / 423.3 MB, free: 10.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.104e-05/0.2828, allocations: 0 / 423.3 MB, free: 10.73 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.004509/0.2873, allocations: 3.293 MB / 426.6 MB, free: 7.375 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.2873, allocations: 8.031 kB / 426.6 MB, free: 7.367 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005759/0.2879, allocations: 0.6082 MB / 427.2 MB, free: 6.75 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005706/0.2936, allocations: 1.833 MB / 429 MB, free: 4.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002706/0.2963, allocations: 2.111 MB / 431.1 MB, free: 2.738 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001139/0.2965, allocations: 196.7 kB / 431.3 MB, free: 2.543 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003874/0.2968, allocations: 259.7 kB / 431.6 MB, free: 2.289 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009951/0.3068, allocations: 8.458 MB / 440 MB, free: 9.164 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.93e-05/0.3069, allocations: 43.59 kB / 440.1 MB, free: 9.121 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002794/0.3072, allocations: 127.9 kB / 440.2 MB, free: 8.996 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002443/0.3096, allocations: 1.695 MB / 441.9 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01053/0.3202, allocations: 7.126 MB / 449 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03046/0.3507, allocations: 34.15 MB / 483.2 MB, free: 13.01 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006626/0.3573, allocations: 3.29 MB / 486.5 MB, free: 9.566 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001573/0.3589, allocations: 1.469 MB / 487.9 MB, free: 8.086 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004967/0.3639, allocations: 4.444 MB / 492.4 MB, free: 3.414 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.042e-05/0.3639, allocations: 55 kB / 492.4 MB, free: 3.352 MB / 398.1 MB Notification: Performance of pre-optimization done (n=121): time 3.456e-06/0.3639, allocations: 0 / 492.4 MB, free: 3.352 MB / 398.1 MB Notification: Performance of matching and sorting (n=129): time 0.02574/0.3897, allocations: 11.54 MB / 0.4921 GB, free: 7.664 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.925e-05/0.3898, allocations: 137.2 kB / 0.4923 GB, free: 7.5 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004406/0.3942, allocations: 3.717 MB / 0.4959 GB, free: 3.789 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.34e-05/0.3943, allocations: 45.7 kB / 0.496 GB, free: 3.738 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001635/0.3959, allocations: 2.748 MB / 0.4986 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000407/0.3963, allocations: 0.5248 MB / 0.4992 GB, free: 428 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004717/0.3968, allocations: 457.6 kB / 0.4996 GB, free: 15.96 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.474e-05/0.3969, allocations: 313.1 kB / 0.4999 GB, free: 15.65 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002245/0.3992, allocations: 1.701 MB / 0.5015 GB, free: 13.95 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00405/0.4032, allocations: 5.123 MB / 0.5065 GB, free: 7.098 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006849/0.4101, allocations: 7.415 MB / 0.5138 GB, free: 13.98 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.716e-05/0.4101, allocations: 36 kB / 0.5138 GB, free: 13.95 MB / 446.1 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.008715/0.4189, allocations: 6.708 MB / 0.5204 GB, free: 7.227 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.239e-05/0.4189, allocations: 58.5 kB / 0.5204 GB, free: 7.172 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.129e-05/0.419, allocations: 124.2 kB / 0.5205 GB, free: 7.051 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005324/0.4196, allocations: 316.7 kB / 0.5209 GB, free: 6.738 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003143/0.4227, allocations: 1.248 MB / 0.5221 GB, free: 5.488 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002134/0.4249, allocations: 2.283 MB / 0.5243 GB, free: 3.062 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002687/0.4276, allocations: 295.5 kB / 0.5246 GB, free: 2.773 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003346/0.4279, allocations: 328 kB / 0.5249 GB, free: 2.453 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (664): * Single equations (assignments): 660 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002125/0.4301, allocations: 1.795 MB / 0.5266 GB, free: 0.6445 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000379/0.4304, allocations: 308 kB / 0.5269 GB, free: 348 kB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1441/0.5745, allocations: 2.371 MB / 0.5293 GB, free: 142.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.118e-05/0.5746, allocations: 18.89 kB / 0.5293 GB, free: 142.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.5746, allocations: 3.469 kB / 0.5293 GB, free: 142.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.537e-05/0.5746, allocations: 8.891 kB / 0.5293 GB, free: 142.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01/0.5847, allocations: 5.925 MB / 0.5351 GB, free: 141.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/0.5847, allocations: 1.75 kB / 0.5351 GB, free: 141.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007336/0.5854, allocations: 172.4 kB / 0.5352 GB, free: 141.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00207/0.5875, allocations: 0.7199 MB / 0.5359 GB, free: 141.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.885e-05/0.5876, allocations: 21.69 kB / 0.536 GB, free: 141.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004769/0.5923, allocations: 4.469 MB / 0.5403 GB, free: 138.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.5924, allocations: 1.469 kB / 0.5403 GB, free: 138.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005874/0.5982, allocations: 4.339 MB / 0.5446 GB, free: 137.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005319/0.5988, allocations: 374.4 kB / 0.5449 GB, free: 137.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002472/0.599, allocations: 21.98 kB / 0.5449 GB, free: 137.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009449/0.6, allocations: 69.39 kB / 0.545 GB, free: 137.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001625/0.6002, allocations: 71.3 kB / 0.5451 GB, free: 137.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.204e-05/0.6003, allocations: 31.95 kB / 0.5451 GB, free: 137.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002739/0.603, allocations: 2.321 MB / 0.5474 GB, free: 136.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.603, allocations: 1.125 kB / 0.5474 GB, free: 136.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003152/0.6062, allocations: 0.7959 MB / 0.5482 GB, free: 136.2 MB / 446.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 (96): * Single equations (assignments): 92 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005373/0.6115, allocations: 4.986 MB / 0.553 GB, free: 134.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004424/0.616, allocations: 4.036 MB / 0.557 GB, free: 132.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.616, allocations: 0 / 0.557 GB, free: 132.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001091/0.6171, allocations: 1.118 MB / 0.5581 GB, free: 132.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002148/0.6192, allocations: 379.5 kB / 0.5584 GB, free: 132 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03753/0.6568, allocations: 43.75 MB / 0.6011 GB, free: 82.36 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001927/0.6587, allocations: 2.777 MB / 0.6039 GB, free: 79.57 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003029/0.6618, allocations: 1.657 MB / 0.6055 GB, free: 77.91 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001296/0.6631, allocations: 1.522 MB / 0.607 GB, free: 76.38 MB / 446.1 MB Notification: Performance of SimCode: time 6.72e-07/0.6631, allocations: 0 / 0.607 GB, free: 76.38 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06071/0.7238, allocations: 59.08 MB / 0.6647 GB, free: 17.66 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001495/0.724, allocations: 252.5 kB / 0.6649 GB, free: 17.41 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.813/3.537, allocations: 3.938 kB / 0.6649 GB, free: 17.4 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/InitSpringConstant/InitSpringConstant.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches