Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001617/0.001617, allocations: 110.6 kB / 17.73 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001729/0.001729, allocations: 194.9 kB / 18.67 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.527/1.527, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002293/0.002293, allocations: 51.92 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1043, allocations: 46.62 MB / 374.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.1967/0.3011, allocations: 10.74 MB / 385.4 MB, free: 7.199 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007935/0.3091, allocations: 3.923 MB / 389.3 MB, free: 5.141 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002005/0.3112, allocations: 62.75 kB / 389.4 MB, free: 5.129 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004974/0.3162, allocations: 2.582 MB / 392 MB, free: 3.926 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005736/0.3219, allocations: 1.752 MB / 393.7 MB, free: 3.121 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001861/0.3238, allocations: 0.6896 MB / 394.4 MB, free: 2.809 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005982/0.3298, allocations: 3.69 MB / 398.1 MB, free: 1.414 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004141/0.334, allocations: 3.572 MB / 401.7 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003302/0.3373, allocations: 1.483 MB / 403.2 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003802/0.3411, allocations: 1.951 MB / 405.1 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001003/0.3422, allocations: 314.9 kB / 405.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002895/0.3451, allocations: 1.158 MB / 406.6 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002055/0.3471, allocations: 1.822 MB / 408.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003095/0.3502, allocations: 2.142 MB / 410.5 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009328/0.3596, allocations: 6.744 MB / 417.3 MB, free: 5.078 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.3596, allocations: 0 / 417.3 MB, free: 5.078 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3596, allocations: 0 / 417.3 MB, free: 5.078 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002372/0.3599, allocations: 0 / 417.3 MB, free: 5.078 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: 1516 * Number of variables: 1516 Notification: Performance of Generate backend data structure: time 0.011/0.3709, allocations: 4.713 MB / 422 MB, free: 296 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.371, allocations: 12.03 kB / 422 MB, free: 284 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001456/0.3724, allocations: 0.7158 MB / 422.7 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007133/0.3796, allocations: 1.921 MB / 424.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004779/0.3844, allocations: 2.486 MB / 427.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002179/0.3846, allocations: 250.2 kB / 427.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009645/0.3856, allocations: 395.7 kB / 427.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01859/0.4042, allocations: 10.07 MB / 437.8 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001039/0.4043, allocations: 39.69 kB / 437.9 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004127/0.4048, allocations: 159.9 kB / 438 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002836/0.4076, allocations: 1.849 MB / 439.9 MB, free: 13.63 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01764/0.4253, allocations: 8.335 MB / 448.2 MB, free: 5.285 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05093/0.4762, allocations: 39.29 MB / 487.5 MB, free: 12.86 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01082/0.4871, allocations: 3.998 MB / 491.5 MB, free: 8.711 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002269/0.4894, allocations: 1.427 MB / 492.9 MB, free: 7.273 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01132/0.5008, allocations: 7.605 MB / 0.4888 GB, free: 15.19 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.597e-05/0.5008, allocations: 47.5 kB / 0.4888 GB, free: 15.13 MB / 430.1 MB Notification: Performance of pre-optimization done (n=152): time 4.448e-06/0.5008, allocations: 3.938 kB / 0.4888 GB, free: 15.13 MB / 430.1 MB Notification: Performance of matching and sorting (n=159): time 0.03326/0.5341, allocations: 12.65 MB / 0.5012 GB, free: 2.301 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001434/0.5356, allocations: 1.683 MB / 0.5028 GB, free: 448 kB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005621/0.5412, allocations: 3.846 MB / 0.5066 GB, free: 12.61 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002924/0.5415, allocations: 49.7 kB / 0.5067 GB, free: 12.55 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002457/0.544, allocations: 3.25 MB / 0.5098 GB, free: 9.27 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008461/0.5449, allocations: 0.6708 MB / 0.5105 GB, free: 8.594 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001706/0.5466, allocations: 1.266 MB / 0.5117 GB, free: 7.316 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.5467, allocations: 309.1 kB / 0.512 GB, free: 7.012 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00309/0.5498, allocations: 2.007 MB / 0.514 GB, free: 5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006569/0.5564, allocations: 5.934 MB / 0.5198 GB, free: 13.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01105/0.5674, allocations: 8.577 MB / 0.5281 GB, free: 2.559 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001154/0.5676, allocations: 40 kB / 0.5282 GB, free: 2.52 MB / 462.1 MB Notification: Performance of matching and sorting (n=810) (initialization): time 0.0186/0.5862, allocations: 8.785 MB / 0.5368 GB, free: 9.711 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.973e-05/0.5863, allocations: 67.94 kB / 0.5368 GB, free: 9.645 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006458/0.5928, allocations: 2.797 MB / 0.5396 GB, free: 6.832 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00543/0.5983, allocations: 1.53 MB / 0.541 GB, free: 5.285 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004246/0.6026, allocations: 1.365 MB / 0.5424 GB, free: 3.918 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2008/0.8034, allocations: 5.794 MB / 0.548 GB, free: 142.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005406/0.8088, allocations: 399.7 kB / 0.5484 GB, free: 142.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001412/0.8103, allocations: 387.7 kB / 0.5488 GB, free: 142.2 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 637 * Number of states: 0 () * Number of discrete variables: 39 (spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (738): * Single equations (assignments): 728 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,29)} Notification: Performance of prepare postOptimizeDAE: time 0.00447/0.8148, allocations: 2.012 MB / 0.5508 GB, free: 142.1 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008989/0.8157, allocations: 350.5 kB / 0.5511 GB, free: 142.1 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007502/0.8232, allocations: 3.122 MB / 0.5541 GB, free: 141.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005937/0.8292, allocations: 2.685 MB / 0.5568 GB, free: 140.6 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.997e-05/0.8292, allocations: 6.312 kB / 0.5568 GB, free: 140.6 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-05/0.8293, allocations: 7.938 kB / 0.5568 GB, free: 140.6 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01637/0.8456, allocations: 8.567 MB / 0.5651 GB, free: 137.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.515e-05/0.8457, allocations: 1.375 kB / 0.5651 GB, free: 137.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008973/0.8466, allocations: 188 kB / 0.5653 GB, free: 137.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004358/0.851, allocations: 1.439 MB / 0.5667 GB, free: 137.4 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001767/0.8511, allocations: 39.14 kB / 0.5668 GB, free: 137.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005329/0.8565, allocations: 5.998 MB / 0.5726 GB, free: 133.5 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007266/0.8572, allocations: 1.553 MB / 0.5741 GB, free: 131.9 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007766/0.865, allocations: 5.32 MB / 0.5793 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001008/0.866, allocations: 395.2 kB / 0.5797 GB, free: 130 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004161/0.8665, allocations: 26.48 kB / 0.5797 GB, free: 130 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001331/0.8678, allocations: 123.1 kB / 0.5799 GB, free: 130 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002518/0.8681, allocations: 96.55 kB / 0.5799 GB, free: 129.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001076/0.8682, allocations: 45.84 kB / 0.58 GB, free: 129.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003307/0.8715, allocations: 2.355 MB / 0.5823 GB, free: 129.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.8715, allocations: 0 / 0.5823 GB, free: 129.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004825/0.8763, allocations: 1.004 MB / 0.5833 GB, free: 129 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3]) * 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 (91): * Single equations (assignments): 83 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006915/0.8833, allocations: 5.8 MB / 0.5889 GB, free: 126.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007708/0.891, allocations: 5.442 MB / 0.5942 GB, free: 121.2 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/0.8911, allocations: 0 / 0.5942 GB, free: 121.2 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003395/0.8945, allocations: 2.044 MB / 0.5962 GB, free: 119.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002286/0.8968, allocations: 396.5 kB / 0.5966 GB, free: 118.7 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05628/0.9531, allocations: 45.48 MB / 0.641 GB, free: 67.11 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003765/0.9569, allocations: 3.115 MB / 0.6441 GB, free: 63.96 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003241/0.9601, allocations: 1.807 MB / 0.6458 GB, free: 62.15 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001733/0.9619, allocations: 1.765 MB / 0.6476 GB, free: 60.38 MB / 478.1 MB Notification: Performance of SimCode: time 1.643e-06/0.9619, allocations: 0 / 0.6476 GB, free: 60.38 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1085/1.07, allocations: 66.18 MB / 0.7122 GB, free: 10.13 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.85/23.92, allocations: 4 kB / 0.7122 GB, free: 10.12 MB / 494.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/ThreeSprings/ThreeSprings.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches