Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001245/0.001245, allocations: 177.5 kB / 17.36 MB, free: 4.195 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.38/1.38, allocations: 205.6 MB / 223.7 MB, free: 8.957 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007617/0.0007617, allocations: 86.8 kB / 272.1 MB, free: 8.137 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002317/0.0002317, allocations: 4 kB / 329 MB, free: 15.07 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2231/0.2234, allocations: 47.58 MB / 376.6 MB, free: 45.59 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.02524/0.2486, allocations: 35.13 MB / 411.7 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01516/0.2638, allocations: 11.17 MB / 422.9 MB, free: 1.414 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005673/0.2695, allocations: 167.6 kB / 423.1 MB, free: 1.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0012/0.2708, allocations: 413.9 kB / 423.5 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004161/0.275, allocations: 1.724 MB / 425.2 MB, free: 15.11 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001452/0.2764, allocations: 0.6592 MB / 425.9 MB, free: 14.45 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.006471/0.2829, allocations: 5.931 MB / 431.8 MB, free: 8.508 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005556/0.2885, allocations: 4.292 MB / 436.1 MB, free: 4 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002187/0.2907, allocations: 1.292 MB / 437.4 MB, free: 2.703 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002485/0.2932, allocations: 2.017 MB / 439.4 MB, free: 0.6797 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004724/0.2937, allocations: 144 kB / 439.5 MB, free: 0.5391 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001768/0.2955, allocations: 0.8112 MB / 440.3 MB, free: 15.73 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001468/0.297, allocations: 1.655 MB / 442 MB, free: 14.07 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001948/0.2989, allocations: 1.942 MB / 443.9 MB, free: 12.1 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005994/0.3049, allocations: 5.963 MB / 449.9 MB, free: 6.117 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.305, allocations: 0 / 449.9 MB, free: 6.117 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.305, allocations: 0 / 449.9 MB, free: 6.117 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001926/0.3052, allocations: 0 / 449.9 MB, free: 6.117 MB / 330.7 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.006726/0.3119, allocations: 3.807 MB / 453.7 MB, free: 2.242 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/0.312, allocations: 12.03 kB / 453.7 MB, free: 2.23 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007156/0.3191, allocations: 1.976 MB / 455.7 MB, free: 252 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004783/0.3239, allocations: 2.339 MB / 458 MB, free: 13.84 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001853/0.3242, allocations: 229.6 kB / 458.3 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005526/0.3247, allocations: 295.8 kB / 458.5 MB, free: 13.33 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01504/0.3398, allocations: 9.639 MB / 468.2 MB, free: 2.93 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001122/0.3399, allocations: 51.53 kB / 468.2 MB, free: 2.879 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003382/0.3403, allocations: 143.9 kB / 468.4 MB, free: 2.738 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002631/0.3429, allocations: 1.919 MB / 470.3 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01421/0.3572, allocations: 7.606 MB / 477.9 MB, free: 9.191 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2468/0.604, allocations: 37.77 MB / 0.5036 GB, free: 82.29 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005914/0.6099, allocations: 2.881 MB / 0.5064 GB, free: 81.62 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001489/0.6115, allocations: 0.8723 MB / 0.5072 GB, free: 81.52 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005051/0.6165, allocations: 3.768 MB / 0.5109 GB, free: 79.25 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.506e-05/0.6166, allocations: 43.12 kB / 0.511 GB, free: 79.2 MB / 378.7 MB Notification: Performance of pre-optimization done (n=134): time 2.906e-06/0.6166, allocations: 1.625 kB / 0.511 GB, free: 79.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=152): time 0.01807/0.6347, allocations: 9.056 MB / 0.5198 GB, free: 74.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.264e-05/0.6348, allocations: 143.9 kB / 0.5199 GB, free: 74.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004041/0.6388, allocations: 3.91 MB / 0.5238 GB, free: 72.16 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001253/0.6389, allocations: 47.64 kB / 0.5238 GB, free: 72.11 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001152/0.6401, allocations: 3.094 MB / 0.5268 GB, free: 69.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003463/0.6405, allocations: 0.6023 MB / 0.5274 GB, free: 68.88 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000152/0.6406, allocations: 116.5 kB / 0.5275 GB, free: 68.76 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001972/0.6408, allocations: 0.5533 MB / 0.5281 GB, free: 68.2 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001791/0.6426, allocations: 1.561 MB / 0.5296 GB, free: 66.64 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002868/0.6455, allocations: 5.332 MB / 0.5348 GB, free: 59.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005684/0.6512, allocations: 7.512 MB / 0.5421 GB, free: 50.29 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.797e-05/0.6513, allocations: 44 kB / 0.5422 GB, free: 50.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.00804/0.6593, allocations: 6.613 MB / 0.5486 GB, free: 43.63 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.835e-05/0.6594, allocations: 60 kB / 0.5487 GB, free: 43.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.468e-05/0.6595, allocations: 136 kB / 0.5488 GB, free: 43.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001093/0.6596, allocations: 176 kB / 0.549 GB, free: 43.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003303/0.6629, allocations: 1.381 MB / 0.5503 GB, free: 41.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001377/0.6631, allocations: 266.9 kB / 0.5506 GB, free: 41.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003228/0.6663, allocations: 292.6 kB / 0.5509 GB, free: 41.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003299/0.6666, allocations: 364.9 kB / 0.5512 GB, free: 40.98 MB / 378.7 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 (746): * Single equations (assignments): 743 * 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.002138/0.6688, allocations: 1.975 MB / 0.5532 GB, free: 39 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000377/0.6692, allocations: 347.5 kB / 0.5535 GB, free: 38.65 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001537/0.6707, allocations: 1.242 MB / 0.5547 GB, free: 37.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.755e-05/0.6708, allocations: 17.41 kB / 0.5547 GB, free: 37.39 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.6708, allocations: 0 / 0.5547 GB, free: 37.39 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.137e-05/0.6708, allocations: 15.91 kB / 0.5547 GB, free: 37.38 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006327/0.6771, allocations: 5.748 MB / 0.5603 GB, free: 31.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.637e-05/0.6772, allocations: 24.44 kB / 0.5604 GB, free: 31.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008271/0.678, allocations: 275.5 kB / 0.5606 GB, free: 31.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-05/0.6781, allocations: 28 kB / 0.5607 GB, free: 31.01 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.385e-05/0.6781, allocations: 48 kB / 0.5607 GB, free: 30.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.762e-05/0.6781, allocations: 39.86 kB / 0.5607 GB, free: 30.92 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.206e-05/0.6782, allocations: 27.88 kB / 0.5608 GB, free: 30.89 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002555/0.6807, allocations: 3.207 MB / 0.5639 GB, free: 27.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006877/0.6814, allocations: 0.516 MB / 0.5644 GB, free: 26.89 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002811/0.6817, allocations: 47.98 kB / 0.5644 GB, free: 26.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000963/0.6827, allocations: 67.95 kB / 0.5645 GB, free: 26.78 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001324/0.6828, allocations: 147.4 kB / 0.5647 GB, free: 26.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.912e-05/0.6829, allocations: 68 kB / 0.5647 GB, free: 26.57 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002621/0.6855, allocations: 2.415 MB / 0.5671 GB, free: 24.17 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.6855, allocations: 0 / 0.5671 GB, free: 24.17 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003735/0.6893, allocations: 0.8645 MB / 0.5679 GB, free: 23.31 MB / 378.7 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.0002985/0.6896, allocations: 212 kB / 0.5681 GB, free: 23.11 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004569/0.6942, allocations: 3.604 MB / 0.5716 GB, free: 19.53 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.877e-06/0.6942, allocations: 4.75 kB / 0.5716 GB, free: 19.53 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007996/0.695, allocations: 0.7297 MB / 0.5724 GB, free: 18.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01006/0.7051, allocations: 455.7 kB / 0.5728 GB, free: 18.36 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01277/0.7179, allocations: 10.62 MB / 0.5832 GB, free: 7.453 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00237/0.7203, allocations: 3.107 MB / 0.5862 GB, free: 4.316 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.003745/0.724, allocations: 1.765 MB / 0.5879 GB, free: 2.543 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003714/0.7244, allocations: 235.4 kB / 0.5882 GB, free: 2.312 MB / 378.7 MB Notification: Performance of SimCode: time 6.82e-07/0.7244, allocations: 0 / 0.5882 GB, free: 2.312 MB / 378.7 MB Notification: Performance of Templates: time 0.04922/0.7737, allocations: 26.09 MB / 0.6136 GB, free: 8.348 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (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 & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches