Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.Spring,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring") translateModel(ModelicaTest.MultiBody.Forces.Spring,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 174.8 kB / 17.41 MB, free: 4.293 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.464/1.464, allocations: 225.7 MB / 243.9 MB, free: 8.473 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008359/0.0008359, allocations: 92.31 kB / 295 MB, free: 9.5 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3816/0.3816, allocations: 44.31 MB / 390.5 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003296/0.0003297, allocations: 11.94 kB / 463.1 MB, free: 484 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3454/0.3458, allocations: 61.9 MB / 0.5127 GB, free: 37.88 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.02957/0.3754, allocations: 38.91 MB / 0.5507 GB, free: 10.31 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.023/0.3984, allocations: 11.93 MB / 0.5624 GB, free: 0.7969 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0107/0.4092, allocations: 184.1 kB / 0.5626 GB, free: 0.7656 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001596/0.4108, allocations: 442.7 kB / 0.563 GB, free: 0.5898 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004881/0.4157, allocations: 1.752 MB / 0.5647 GB, free: 15.83 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001871/0.4176, allocations: 0.7139 MB / 0.5654 GB, free: 15.53 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.009558/0.4272, allocations: 6.12 MB / 0.5714 GB, free: 13.77 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009174/0.4364, allocations: 5.438 MB / 0.5767 GB, free: 10.81 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003544/0.44, allocations: 1.301 MB / 0.5779 GB, free: 10.06 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003908/0.4439, allocations: 2.092 MB / 0.58 GB, free: 8.02 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007044/0.4446, allocations: 152 kB / 0.5801 GB, free: 7.871 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002076/0.4467, allocations: 0.8268 MB / 0.5809 GB, free: 7.043 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001722/0.4484, allocations: 1.733 MB / 0.5826 GB, free: 5.305 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002224/0.4507, allocations: 2.043 MB / 0.5846 GB, free: 3.242 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006454/0.4571, allocations: 6.364 MB / 0.5908 GB, free: 12.86 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.626e-06/0.4572, allocations: 12 kB / 0.5909 GB, free: 12.84 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4572, allocations: 0 / 0.5909 GB, free: 12.84 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001198/0.4573, allocations: 0 / 0.5909 GB, free: 12.84 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.006677/0.464, allocations: 3.957 MB / 0.5947 GB, free: 8.816 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.464, allocations: 8.031 kB / 0.5947 GB, free: 8.809 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006598/0.4707, allocations: 1.992 MB / 0.5967 GB, free: 6.809 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004272/0.4749, allocations: 2.348 MB / 0.599 GB, free: 4.398 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001868/0.4751, allocations: 254.2 kB / 0.5992 GB, free: 4.148 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005757/0.4757, allocations: 335.8 kB / 0.5995 GB, free: 3.82 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01728/0.493, allocations: 10.19 MB / 0.6095 GB, free: 8.844 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001134/0.4932, allocations: 43.59 kB / 0.6095 GB, free: 8.801 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004227/0.4936, allocations: 163.8 kB / 0.6097 GB, free: 8.641 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002604/0.4962, allocations: 1.904 MB / 0.6115 GB, free: 6.734 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01615/0.5124, allocations: 8.126 MB / 0.6195 GB, free: 14.58 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0491/0.5615, allocations: 39.43 MB / 0.658 GB, free: 5.969 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007583/0.5691, allocations: 3.273 MB / 0.6612 GB, free: 2.531 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001568/0.5707, allocations: 1.045 MB / 0.6622 GB, free: 1.473 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008921/0.5797, allocations: 5.898 MB / 0.668 GB, free: 11.2 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.552e-05/0.5798, allocations: 59.5 kB / 0.668 GB, free: 11.13 MB / 490.7 MB Notification: Performance of pre-optimization done (n=148): time 3.437e-06/0.5798, allocations: 0 / 0.668 GB, free: 11.13 MB / 490.7 MB Notification: Performance of matching and sorting (n=160): time 0.02238/0.6022, allocations: 9.424 MB / 0.6772 GB, free: 1.594 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/0.6023, allocations: 141.5 kB / 0.6773 GB, free: 1.422 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3082/0.9105, allocations: 4.025 MB / 0.6813 GB, free: 131.6 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000246/0.9108, allocations: 48.11 kB / 0.6813 GB, free: 131.6 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001687/0.9125, allocations: 3.178 MB / 0.6844 GB, free: 129.6 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006034/0.9131, allocations: 0.6373 MB / 0.685 GB, free: 129.1 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001935/0.9133, allocations: 121.4 kB / 0.6852 GB, free: 129 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003227/0.9137, allocations: 0.5578 MB / 0.6857 GB, free: 128.6 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002428/0.9161, allocations: 1.633 MB / 0.6873 GB, free: 128.1 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003569/0.9197, allocations: 5.486 MB / 0.6927 GB, free: 122.4 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006464/0.9261, allocations: 7.758 MB / 0.7002 GB, free: 115.3 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001011/0.9263, allocations: 39.47 kB / 0.7003 GB, free: 115.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01034/0.9366, allocations: 6.865 MB / 0.707 GB, free: 112.6 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.446e-05/0.9367, allocations: 63.44 kB / 0.707 GB, free: 112.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001288/0.9369, allocations: 138.9 kB / 0.7072 GB, free: 112.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001588/0.937, allocations: 184.5 kB / 0.7073 GB, free: 112.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003859/0.9409, allocations: 1.428 MB / 0.7087 GB, free: 112.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002375/0.9411, allocations: 277 kB / 0.709 GB, free: 112.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003686/0.9448, allocations: 294.5 kB / 0.7093 GB, free: 112.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004905/0.9453, allocations: 381.3 kB / 0.7097 GB, free: 112.2 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 625 * Number of states: 0 () * Number of discrete variables: 39 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (775): * Single equations (assignments): 772 * 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.002925/0.9483, allocations: 2.035 MB / 0.7116 GB, free: 111.3 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006175/0.9489, allocations: 346.4 kB / 0.712 GB, free: 111.1 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002088/0.951, allocations: 1.333 MB / 0.7133 GB, free: 110.5 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.224e-05/0.951, allocations: 22.75 kB / 0.7133 GB, free: 110.5 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.9511, allocations: 1.031 kB / 0.7133 GB, free: 110.5 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.397e-05/0.9511, allocations: 8.109 kB / 0.7133 GB, free: 110.5 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008546/0.9596, allocations: 5.815 MB / 0.719 GB, free: 107.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-05/0.9597, allocations: 22.75 kB / 0.719 GB, free: 107.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009714/0.9607, allocations: 277.3 kB / 0.7193 GB, free: 107.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.758e-05/0.9607, allocations: 24.66 kB / 0.7193 GB, free: 107.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.468e-05/0.9608, allocations: 50.39 kB / 0.7193 GB, free: 107.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.317e-05/0.9608, allocations: 35.27 kB / 0.7194 GB, free: 107.8 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.233e-05/0.9609, allocations: 28.97 kB / 0.7194 GB, free: 107.8 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003836/0.9647, allocations: 3.267 MB / 0.7226 GB, free: 105.8 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009371/0.9657, allocations: 430.6 kB / 0.723 GB, free: 105.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003128/0.966, allocations: 46.98 kB / 0.723 GB, free: 105.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001079/0.9671, allocations: 63.44 kB / 0.7231 GB, free: 105.4 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001912/0.9673, allocations: 148.4 kB / 0.7232 GB, free: 105.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001137/0.9674, allocations: 71.03 kB / 0.7233 GB, free: 105.4 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004111/0.9715, allocations: 2.476 MB / 0.7257 GB, free: 104.5 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.9715, allocations: 0 / 0.7257 GB, free: 104.5 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004897/0.9764, allocations: 0.9069 MB / 0.7266 GB, free: 104.4 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 78 * Number of states: 4 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.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 (145): * Single equations (assignments): 142 * 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.0003788/0.9768, allocations: 211.2 kB / 0.7268 GB, free: 104.3 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.00597/0.9828, allocations: 3.743 MB / 0.7305 GB, free: 103 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.389e-05/0.9828, allocations: 3 kB / 0.7305 GB, free: 103 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001011/0.9839, allocations: 0.753 MB / 0.7312 GB, free: 102.8 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01057/0.9944, allocations: 463.4 kB / 0.7317 GB, free: 102.6 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01785/1.012, allocations: 10.88 MB / 0.7423 GB, free: 92.71 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003261/1.016, allocations: 3.179 MB / 0.7454 GB, free: 90.21 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004209/1.02, allocations: 1.812 MB / 0.7472 GB, free: 89.07 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005169/1.02, allocations: 239.3 kB / 0.7474 GB, free: 88.84 MB / 490.7 MB Notification: Performance of SimCode: time 5.71e-07/1.02, allocations: 0 / 0.7474 GB, free: 88.84 MB / 490.7 MB Notification: Performance of Templates: time 0.04966/1.07, allocations: 27.44 MB / 0.7742 GB, free: 63.1 MB / 490.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches