Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009606/0.0009607, allocations: 180.5 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.241/1.241, allocations: 221.3 MB / 236 MB, free: 2.914 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00082/0.00082, allocations: 94.53 kB / 287 MB, free: 196 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1859/0.1859, allocations: 44.16 MB / 382 MB, free: 14.67 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.526e-05/2.529e-05, allocations: 224 / 451.8 MB, free: 9.445 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.123, allocations: 61.92 MB / 0.5017 GB, free: 11.47 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3811/0.5041, allocations: 106.5 MB / 0.6057 GB, free: 14.79 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001795/0.5044, allocations: 71.97 kB / 0.6058 GB, free: 14.72 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2161/0.7205, allocations: 87.69 MB / 0.6914 GB, free: 6.449 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.954e-06/0.7206, allocations: 4 kB / 0.6914 GB, free: 6.445 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001584/0.7207, allocations: 83.94 kB / 0.6915 GB, free: 6.363 MB / 0.4948 GB 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.007777/0.7285, allocations: 3.964 MB / 0.6954 GB, free: 2.332 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.7286, allocations: 12.03 kB / 0.6954 GB, free: 2.32 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01005/0.7386, allocations: 2.443 MB / 0.6978 GB, free: 15.87 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01151/0.7502, allocations: 4.887 MB / 0.7025 GB, free: 10.91 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002525/0.7504, allocations: 336.7 kB / 0.7029 GB, free: 10.58 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001002/0.7515, allocations: 435.8 kB / 0.7033 GB, free: 10.16 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.298/1.049, allocations: 10.59 MB / 0.7136 GB, free: 120.5 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000265/1.05, allocations: 63.47 kB / 0.7137 GB, free: 120.5 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001153/1.051, allocations: 218.1 kB / 0.7139 GB, free: 120.5 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001965/1.053, allocations: 1.036 MB / 0.7149 GB, free: 120.5 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01832/1.071, allocations: 8.175 MB / 0.7229 GB, free: 120.5 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0447/1.116, allocations: 48.05 MB / 0.7698 GB, free: 89.03 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00666/1.123, allocations: 3.202 MB / 0.7729 GB, free: 87.63 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001194/1.124, allocations: 1.02 MB / 0.7739 GB, free: 87.23 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007161/1.131, allocations: 5.97 MB / 0.7798 GB, free: 83.5 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.98e-05/1.131, allocations: 65.97 kB / 0.7798 GB, free: 83.45 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=148): time 3.797e-06/1.131, allocations: 0 / 0.7798 GB, free: 83.45 MB / 0.5105 GB Notification: Performance of matching and sorting (n=160): time 0.01791/1.149, allocations: 8.645 MB / 0.7883 GB, free: 79.67 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.156e-05/1.149, allocations: 205.4 kB / 0.7885 GB, free: 79.44 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004006/1.153, allocations: 3.548 MB / 0.7919 GB, free: 78.16 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001178/1.153, allocations: 48.83 kB / 0.792 GB, free: 78.11 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001255/1.155, allocations: 3.182 MB / 0.7951 GB, free: 75.66 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003776/1.155, allocations: 0.6385 MB / 0.7957 GB, free: 75.21 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001671/1.155, allocations: 115.3 kB / 0.7958 GB, free: 75.12 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000225/1.155, allocations: 0.5553 MB / 0.7964 GB, free: 74.7 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001863/1.157, allocations: 1.554 MB / 0.7979 GB, free: 74.21 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003247/1.16, allocations: 5.372 MB / 0.8031 GB, free: 68.5 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003561/1.164, allocations: 2.891 MB / 0.8059 GB, free: 67.52 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.712e-05/1.164, allocations: 42.22 kB / 0.806 GB, free: 67.52 MB / 0.5105 GB Notification: Performance of matching and sorting (n=787) (initialization): time 0.008609/1.173, allocations: 6.674 MB / 0.8125 GB, free: 65.03 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 6.741e-05/1.173, allocations: 66.55 kB / 0.8126 GB, free: 65.03 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001053/1.173, allocations: 137 kB / 0.8127 GB, free: 65.03 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001532/1.173, allocations: 195.6 kB / 0.8129 GB, free: 65.03 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003773/1.177, allocations: 1.442 MB / 0.8143 GB, free: 64.85 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001491/1.177, allocations: 274.7 kB / 0.8146 GB, free: 64.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004199/1.181, allocations: 377.9 kB / 0.8149 GB, free: 64.68 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005283/1.182, allocations: 375 kB / 0.8153 GB, free: 64.63 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 621 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (763): * Single equations (assignments): 760 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000641/1.182, allocations: 0.5743 MB / 0.8158 GB, free: 64.16 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004926/1.183, allocations: 353.4 kB / 0.8162 GB, free: 63.96 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001822/1.185, allocations: 1.306 MB / 0.8174 GB, free: 63.45 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.558e-05/1.185, allocations: 20.12 kB / 0.8175 GB, free: 63.45 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/1.185, allocations: 0 / 0.8175 GB, free: 63.45 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.222e-05/1.185, allocations: 6.75 kB / 0.8175 GB, free: 63.45 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007118/1.192, allocations: 5.841 MB / 0.8232 GB, free: 60.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.67e-05/1.192, allocations: 16.28 kB / 0.8232 GB, free: 60.82 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008724/1.193, allocations: 288.5 kB / 0.8235 GB, free: 60.78 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.281e-05/1.193, allocations: 25.59 kB / 0.8235 GB, free: 60.78 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.892e-05/1.193, allocations: 53.31 kB / 0.8235 GB, free: 60.76 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.837e-05/1.193, allocations: 36.77 kB / 0.8236 GB, free: 60.75 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.207e-05/1.193, allocations: 26.69 kB / 0.8236 GB, free: 60.75 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002931/1.196, allocations: 5.29 MB / 0.8288 GB, free: 56.16 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006127/1.197, allocations: 427.9 kB / 0.8292 GB, free: 55.85 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002742/1.197, allocations: 53.08 kB / 0.8292 GB, free: 55.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001136/1.198, allocations: 100.7 kB / 0.8293 GB, free: 55.8 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001278/1.198, allocations: 143.6 kB / 0.8295 GB, free: 55.75 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.897e-05/1.198, allocations: 70.3 kB / 0.8295 GB, free: 55.73 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00278/1.201, allocations: 2.443 MB / 0.8319 GB, free: 53.77 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.31e-07/1.201, allocations: 0 / 0.8319 GB, free: 53.77 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004075/1.205, allocations: 0.9197 MB / 0.8328 GB, free: 52.86 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 79 * Number of states: 4 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (146): * Single equations (assignments): 143 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003816/1.206, allocations: 208.3 kB / 0.833 GB, free: 52.66 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.004713/1.21, allocations: 3.631 MB / 0.8366 GB, free: 49.33 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/1.21, allocations: 4 kB / 0.8366 GB, free: 49.32 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0007362/1.211, allocations: 0.7342 MB / 0.8373 GB, free: 48.65 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00202/1.213, allocations: 444.6 kB / 0.8377 GB, free: 48.27 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01106/1.224, allocations: 7.182 MB / 0.8447 GB, free: 41.57 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003092/1.227, allocations: 3.263 MB / 0.8479 GB, free: 39.09 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.004257/1.232, allocations: 1.819 MB / 0.8497 GB, free: 37.95 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005552/1.232, allocations: 242.8 kB / 0.8499 GB, free: 37.72 MB / 0.5105 GB Notification: Performance of SimCode: time 1.653e-06/1.232, allocations: 0 / 0.8499 GB, free: 37.72 MB / 0.5105 GB Notification: Performance of Templates: time 0.04726/1.279, allocations: 27.13 MB / 0.8764 GB, free: 16.46 MB / 0.5105 GB 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