Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.SpringMassSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",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.001433/0.001432, allocations: 114.5 kB / 17.73 MB, free: 5.336 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.001724/0.001724, allocations: 187 kB / 18.67 MB, free: 4.402 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.384/1.384, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001377/0.001377, allocations: 43.94 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0991/0.1005, allocations: 46.62 MB / 374.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.2315/0.332, allocations: 10.75 MB / 385.4 MB, free: 7.215 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00879/0.3409, allocations: 3.869 MB / 389.3 MB, free: 5.191 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002357/0.3433, allocations: 67.25 kB / 389.3 MB, free: 5.176 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004712/0.3481, allocations: 2.236 MB / 391.6 MB, free: 4.129 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005913/0.354, allocations: 1.882 MB / 393.5 MB, free: 3.266 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001884/0.3559, allocations: 0.7161 MB / 394.2 MB, free: 2.98 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00724/0.3632, allocations: 4.261 MB / 398.4 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003558/0.3667, allocations: 2.918 MB / 401.4 MB, free: 132 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002826/0.3696, allocations: 1.489 MB / 402.8 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002689/0.3723, allocations: 2.095 MB / 404.9 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006436/0.3729, allocations: 293.6 kB / 405.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002045/0.375, allocations: 0.9366 MB / 406.2 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001909/0.3769, allocations: 1.835 MB / 408 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002327/0.3793, allocations: 2.116 MB / 410.1 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00787/0.3871, allocations: 6.482 MB / 416.6 MB, free: 5.801 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.3872, allocations: 0 / 416.6 MB, free: 5.801 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3872, allocations: 0 / 416.6 MB, free: 5.801 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001921/0.3874, allocations: 0 / 416.6 MB, free: 5.801 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: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.01383/0.4012, allocations: 4.779 MB / 421.4 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.828e-05/0.4013, allocations: 11.97 kB / 421.4 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001769/0.4031, allocations: 0.6912 MB / 422.1 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01292/0.416, allocations: 1.973 MB / 424 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01139/0.4275, allocations: 3.203 MB / 427.2 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003182/0.4279, allocations: 230.8 kB / 427.5 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001232/0.4291, allocations: 303.7 kB / 427.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02637/0.4555, allocations: 9.631 MB / 437.4 MB, free: 76 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001664/0.4557, allocations: 47.58 kB / 437.4 MB, free: 28 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006574/0.4564, allocations: 147.9 kB / 437.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00448/0.4609, allocations: 1.915 MB / 439.5 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01751/0.4784, allocations: 7.637 MB / 447.1 MB, free: 6.305 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04829/0.5268, allocations: 37.69 MB / 484.8 MB, free: 15.46 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00707/0.5339, allocations: 2.879 MB / 487.7 MB, free: 12.43 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001402/0.5353, allocations: 0.8889 MB / 488.6 MB, free: 11.54 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007059/0.5424, allocations: 3.768 MB / 492.4 MB, free: 7.566 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.537e-05/0.5425, allocations: 51.22 kB / 492.4 MB, free: 7.504 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 3.998e-06/0.5425, allocations: 0 / 492.4 MB, free: 7.504 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.02378/0.5663, allocations: 9.366 MB / 0.49 GB, free: 14.04 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.332e-05/0.5664, allocations: 149.5 kB / 0.4902 GB, free: 13.86 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006682/0.5731, allocations: 3.978 MB / 0.4941 GB, free: 9.848 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001654/0.5733, allocations: 45.7 kB / 0.4941 GB, free: 9.797 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002384/0.5757, allocations: 3.213 MB / 0.4972 GB, free: 6.555 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000679/0.5764, allocations: 0.632 MB / 0.4979 GB, free: 5.918 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001784/0.5782, allocations: 1.171 MB / 0.499 GB, free: 4.734 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.297e-05/0.5783, allocations: 301.1 kB / 0.4993 GB, free: 4.438 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002574/0.5809, allocations: 1.569 MB / 0.5008 GB, free: 2.863 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004921/0.5858, allocations: 5.334 MB / 0.506 GB, free: 11.63 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007774/0.5936, allocations: 7.526 MB / 0.5134 GB, free: 2.223 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001166/0.5937, allocations: 44 kB / 0.5134 GB, free: 2.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.01136/0.6051, allocations: 6.622 MB / 0.5199 GB, free: 11.55 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000135/0.6052, allocations: 64 kB / 0.5199 GB, free: 11.49 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002021/0.6054, allocations: 132.1 kB / 0.5201 GB, free: 11.36 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001884/0.6056, allocations: 176 kB / 0.5202 GB, free: 11.19 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003965/0.6096, allocations: 1.385 MB / 0.5216 GB, free: 9.805 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002735/0.6099, allocations: 263 kB / 0.5218 GB, free: 9.547 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004135/0.614, allocations: 283.7 kB / 0.5221 GB, free: 9.27 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006118/0.6147, allocations: 364 kB / 0.5225 GB, free: 8.914 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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): 735 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003595/0.6183, allocations: 1.97 MB / 0.5244 GB, free: 6.93 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007788/0.6191, allocations: 361.5 kB / 0.5247 GB, free: 6.574 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002377/0.6215, allocations: 1.256 MB / 0.526 GB, free: 5.301 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.511e-05/0.6215, allocations: 19.98 kB / 0.526 GB, free: 5.281 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.267e-05/0.6215, allocations: 0 / 0.526 GB, free: 5.281 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.684e-05/0.6215, allocations: 15.91 kB / 0.526 GB, free: 5.266 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01124/0.6328, allocations: 5.749 MB / 0.5316 GB, free: 15.18 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.899e-05/0.6329, allocations: 20 kB / 0.5316 GB, free: 15.16 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009799/0.6338, allocations: 271.6 kB / 0.5319 GB, free: 14.89 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.698e-05/0.6339, allocations: 28 kB / 0.5319 GB, free: 14.87 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001121/0.634, allocations: 52.55 kB / 0.532 GB, free: 14.82 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.201e-05/0.6341, allocations: 43.8 kB / 0.532 GB, free: 14.77 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.805e-05/0.6341, allocations: 31.88 kB / 0.532 GB, free: 14.74 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004088/0.6382, allocations: 3.23 MB / 0.5352 GB, free: 11.25 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00132/0.6395, allocations: 0.5298 MB / 0.5357 GB, free: 10.7 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007543/0.6403, allocations: 52.44 kB / 0.5358 GB, free: 10.65 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001492/0.6418, allocations: 63.91 kB / 0.5358 GB, free: 10.59 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001666/0.642, allocations: 143.4 kB / 0.5359 GB, free: 10.45 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001031/0.6421, allocations: 68 kB / 0.536 GB, free: 10.38 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004153/0.6462, allocations: 2.471 MB / 0.5384 GB, free: 7.898 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.6462, allocations: 3.938 kB / 0.5384 GB, free: 7.895 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004895/0.6511, allocations: 0.8632 MB / 0.5393 GB, free: 7.031 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v) * 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 (142): * Single equations (assignments): 139 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004518/0.6557, allocations: 3.919 MB / 0.5431 GB, free: 2.84 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.2107/0.8664, allocations: 3.655 MB / 0.5467 GB, free: 151.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.288e-05/0.8665, allocations: 4.625 kB / 0.5467 GB, free: 151.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001308/0.8678, allocations: 0.7289 MB / 0.5474 GB, free: 151.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003357/0.8712, allocations: 465.7 kB / 0.5478 GB, free: 151.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05577/0.927, allocations: 40.55 MB / 0.5874 GB, free: 123.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00282/0.9298, allocations: 3.105 MB / 0.5905 GB, free: 121.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003292/0.9331, allocations: 1.771 MB / 0.5922 GB, free: 120 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001624/0.9348, allocations: 1.792 MB / 0.5939 GB, free: 118.2 MB / 478.1 MB Notification: Performance of SimCode: time 6.81e-07/0.9348, allocations: 0 / 0.5939 GB, free: 118.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08718/1.022, allocations: 56.37 MB / 0.649 GB, free: 61.82 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.03/19.05, allocations: 16.61 kB / 0.649 GB, free: 61.81 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches