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.001898/0.001898, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.002466/0.002466, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.502/2.502, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.002119/0.002119, allocations: 59.86 kB / 280.8 MB, free: 3.074 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1422/0.1443, allocations: 46.62 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01921/0.1636, allocations: 10.74 MB / 338.1 MB, free: 9.57 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01212/0.1758, allocations: 3.881 MB / 342 MB, free: 5.676 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002693/0.1786, allocations: 63.81 kB / 342.1 MB, free: 5.613 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006728/0.1853, allocations: 2.223 MB / 344.3 MB, free: 3.383 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008852/0.1942, allocations: 1.844 MB / 346.1 MB, free: 1.531 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003172/0.1975, allocations: 0.7136 MB / 346.9 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.009515/0.207, allocations: 4.265 MB / 351.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007365/0.2144, allocations: 2.92 MB / 354 MB, free: 9.566 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004498/0.219, allocations: 1.487 MB / 355.5 MB, free: 8.074 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00507/0.2241, allocations: 2.095 MB / 357.6 MB, free: 5.973 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001741/0.2259, allocations: 292 kB / 357.9 MB, free: 5.688 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004027/0.2299, allocations: 0.9362 MB / 358.8 MB, free: 4.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003929/0.2339, allocations: 1.816 MB / 360.7 MB, free: 2.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005692/0.2396, allocations: 2.108 MB / 362.8 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01311/0.2528, allocations: 6.21 MB / 369 MB, free: 10.58 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.178e-05/0.2529, allocations: 4 kB / 369 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.2529, allocations: 0 / 369 MB, free: 10.57 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003798/0.2533, allocations: 4 kB / 369 MB, free: 10.57 MB / 318.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.02252/0.2758, allocations: 4.653 MB / 373.6 MB, free: 5.848 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.28e-05/0.2759, allocations: 12.03 kB / 373.6 MB, free: 5.836 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003031/0.2789, allocations: 0.6834 MB / 374.3 MB, free: 5.141 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01412/0.2931, allocations: 1.953 MB / 376.3 MB, free: 3.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2295/0.5227, allocations: 3.146 MB / 379.4 MB, free: 48.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003816/0.5231, allocations: 226.5 kB / 379.7 MB, free: 48.92 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001894/0.525, allocations: 293.4 kB / 379.9 MB, free: 48.92 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02827/0.5533, allocations: 9.639 MB / 389.6 MB, free: 44.85 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002248/0.5536, allocations: 44.77 kB / 389.6 MB, free: 44.83 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00085/0.5545, allocations: 149.2 kB / 389.8 MB, free: 44.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004317/0.5588, allocations: 1.923 MB / 391.7 MB, free: 44.42 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02308/0.5819, allocations: 7.639 MB / 399.3 MB, free: 41.18 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06324/0.6452, allocations: 37.77 MB / 437.1 MB, free: 2.539 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01079/0.6561, allocations: 2.885 MB / 440 MB, free: 15.51 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002646/0.6588, allocations: 0.8694 MB / 440.8 MB, free: 14.63 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01157/0.6704, allocations: 3.78 MB / 444.6 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.798e-05/0.6705, allocations: 51.14 kB / 444.7 MB, free: 10.59 MB / 334.1 MB Notification: Performance of pre-optimization done (n=134): time 7.123e-06/0.6706, allocations: 0 / 444.7 MB, free: 10.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=152): time 0.0368/0.7074, allocations: 9.138 MB / 453.8 MB, free: 1.336 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001258/0.7075, allocations: 149.5 kB / 454 MB, free: 1.156 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009441/0.717, allocations: 3.966 MB / 457.9 MB, free: 13.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000334/0.7174, allocations: 49.7 kB / 458 MB, free: 13.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003642/0.721, allocations: 3.086 MB / 461.1 MB, free: 9.977 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001066/0.7221, allocations: 0.6057 MB / 461.7 MB, free: 9.363 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002368/0.7245, allocations: 1.159 MB / 462.8 MB, free: 8.191 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.7247, allocations: 305.1 kB / 463.1 MB, free: 7.891 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004451/0.7291, allocations: 1.573 MB / 464.7 MB, free: 6.312 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008739/0.7379, allocations: 5.334 MB / 470 MB, free: 15.08 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01441/0.7524, allocations: 7.516 MB / 477.5 MB, free: 5.68 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001536/0.7526, allocations: 36 kB / 477.6 MB, free: 5.645 MB / 366.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.02078/0.7734, allocations: 6.608 MB / 484.2 MB, free: 15.03 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001523/0.7736, allocations: 64.19 kB / 484.3 MB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000283/0.7739, allocations: 135.9 kB / 484.4 MB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002734/0.7742, allocations: 184.7 kB / 484.6 MB, free: 14.65 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007759/0.7819, allocations: 1.372 MB / 485.9 MB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003216/0.7823, allocations: 259 kB / 486.2 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008004/0.7903, allocations: 287.6 kB / 486.5 MB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001301/0.7917, allocations: 360 kB / 486.8 MB, free: 12.39 MB / 382.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.005646/0.7973, allocations: 1.99 MB / 488.8 MB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000943/0.7983, allocations: 335.6 kB / 489.1 MB, free: 10.06 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002793/0.8011, allocations: 1.25 MB / 490.4 MB, free: 8.801 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.455e-05/0.8012, allocations: 16 kB / 490.4 MB, free: 8.785 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.25e-05/0.8012, allocations: 4 kB / 490.4 MB, free: 8.781 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.714e-05/0.8012, allocations: 11.92 kB / 490.4 MB, free: 8.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.013/0.8142, allocations: 5.758 MB / 496.2 MB, free: 2.672 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.515e-05/0.8143, allocations: 20 kB / 496.2 MB, free: 2.652 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001371/0.8157, allocations: 271.5 kB / 496.5 MB, free: 2.387 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.045e-05/0.8157, allocations: 28 kB / 496.5 MB, free: 2.359 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.499e-05/0.8158, allocations: 51.98 kB / 496.5 MB, free: 2.309 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.908e-05/0.8159, allocations: 35.86 kB / 496.6 MB, free: 2.273 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.891e-05/0.8159, allocations: 31.88 kB / 496.6 MB, free: 2.242 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004208/0.8201, allocations: 3.223 MB / 499.8 MB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001157/0.8213, allocations: 0.5084 MB / 0.4886 GB, free: 14.22 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003862/0.8217, allocations: 55.98 kB / 0.4887 GB, free: 14.17 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001199/0.8229, allocations: 51.97 kB / 0.4887 GB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002554/0.8232, allocations: 151.4 kB / 0.4889 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001518/0.8233, allocations: 67.98 kB / 0.4889 GB, free: 13.9 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00683/0.8302, allocations: 2.467 MB / 0.4913 GB, free: 11.42 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.8302, allocations: 0 / 0.4913 GB, free: 11.42 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.009909/0.8401, allocations: 0.858 MB / 0.4922 GB, free: 10.57 MB / 398.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.008731/0.8489, allocations: 3.903 MB / 0.496 GB, free: 6.395 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.01045/0.8594, allocations: 3.789 MB / 0.4997 GB, free: 2.652 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-05/0.8595, allocations: 4 kB / 0.4997 GB, free: 2.648 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00179/0.8613, allocations: 0.7361 MB / 0.5004 GB, free: 1.918 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005073/0.8664, allocations: 452.6 kB / 0.5008 GB, free: 1.48 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3688/1.235, allocations: 45.79 MB / 0.5456 GB, free: 130.2 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008695/1.244, allocations: 3.109 MB / 0.5486 GB, free: 129 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.009748/1.254, allocations: 1.766 MB / 0.5503 GB, free: 128.8 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005122/1.259, allocations: 1.796 MB / 0.5521 GB, free: 127.4 MB / 430.1 MB Notification: Performance of SimCode: time 3.827e-06/1.259, allocations: 0 / 0.5521 GB, free: 127.4 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1415/1.401, allocations: 60.19 MB / 0.6109 GB, free: 75.18 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.71/17.12, allocations: 15.88 kB / 0.6109 GB, free: 75.17 MB / 430.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