Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001399/0.001399, allocations: 195.1 kB / 16.78 MB, free: 4.906 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.307/1.307, allocations: 226.5 MB / 244.1 MB, free: 6.48 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000808/0.0008081, allocations: 105.1 kB / 296.1 MB, free: 6.676 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3429/0.3429, allocations: 44.82 MB / 392.9 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003067/0.0003068, allocations: 11.98 kB / 465.9 MB, free: 12.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2987/0.299, allocations: 62.96 MB / 0.5165 GB, free: 37.18 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1225/0.4215, allocations: 107.4 MB / 0.6214 GB, free: 13.91 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002263/0.4218, allocations: 75.97 kB / 0.6215 GB, free: 13.83 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4003/0.8222, allocations: 87.6 MB / 0.707 GB, free: 98.54 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.534e-06/0.8222, allocations: 0 / 0.707 GB, free: 98.54 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000205/0.8224, allocations: 88.89 kB / 0.7071 GB, free: 98.54 MB / 490.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.0108/0.8332, allocations: 4.141 MB / 0.7111 GB, free: 96.62 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.8333, allocations: 10.94 kB / 0.7112 GB, free: 96.62 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01074/0.844, allocations: 2.388 MB / 0.7135 GB, free: 96.32 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007801/0.8519, allocations: 3.529 MB / 0.7169 GB, free: 95.66 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003481/0.8523, allocations: 332.9 kB / 0.7172 GB, free: 95.65 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001894/0.8542, allocations: 435.7 kB / 0.7177 GB, free: 95.65 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01829/0.8725, allocations: 10.67 MB / 0.7281 GB, free: 90.83 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001459/0.8727, allocations: 62.16 kB / 0.7281 GB, free: 90.8 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005975/0.8733, allocations: 219.3 kB / 0.7283 GB, free: 90.68 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001157/0.8744, allocations: 1.039 MB / 0.7294 GB, free: 90.49 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01431/0.8887, allocations: 8.314 MB / 0.7375 GB, free: 87.89 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03899/0.9278, allocations: 48.02 MB / 0.7844 GB, free: 50.49 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006409/0.9342, allocations: 3.22 MB / 0.7875 GB, free: 49.06 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001215/0.9355, allocations: 1.042 MB / 0.7885 GB, free: 48.38 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006781/0.9423, allocations: 5.929 MB / 0.7943 GB, free: 42.87 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.544e-05/0.9423, allocations: 55.5 kB / 0.7944 GB, free: 42.8 MB / 490.7 MB Notification: Performance of pre-optimization done (n=148): time 4.859e-06/0.9423, allocations: 3.891 kB / 0.7944 GB, free: 42.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=160): time 0.01967/0.962, allocations: 9.413 MB / 0.8036 GB, free: 33.39 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.015e-05/0.9621, allocations: 204.9 kB / 0.8038 GB, free: 33.15 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004864/0.967, allocations: 4.071 MB / 0.8077 GB, free: 29.05 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001461/0.9672, allocations: 53.7 kB / 0.8078 GB, free: 28.99 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001224/0.9684, allocations: 3.172 MB / 0.8109 GB, free: 25.82 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003748/0.9688, allocations: 0.6337 MB / 0.8115 GB, free: 25.19 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001871/0.969, allocations: 120 kB / 0.8116 GB, free: 25.07 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002168/0.9692, allocations: 0.5582 MB / 0.8122 GB, free: 24.51 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002254/0.9715, allocations: 1.655 MB / 0.8138 GB, free: 22.85 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003365/0.9748, allocations: 5.506 MB / 0.8192 GB, free: 15.41 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005911/0.9808, allocations: 7.754 MB / 0.8267 GB, free: 5.75 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.725e-05/0.9809, allocations: 40 kB / 0.8268 GB, free: 5.711 MB / 490.7 MB Notification: Performance of matching and sorting (n=787) (initialization): time 0.009662/0.9905, allocations: 6.889 MB / 0.8335 GB, free: 14.82 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001318/0.9907, allocations: 68.03 kB / 0.8336 GB, free: 14.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001928/0.9909, allocations: 136 kB / 0.8337 GB, free: 14.62 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002099/0.9911, allocations: 180 kB / 0.8339 GB, free: 14.45 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004375/0.9955, allocations: 1.439 MB / 0.8353 GB, free: 13 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002282/0.9958, allocations: 271 kB / 0.8355 GB, free: 12.74 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004347/1, allocations: 386.8 kB / 0.8359 GB, free: 12.36 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000799/1.001, allocations: 375.9 kB / 0.8363 GB, free: 12 MB / 0.4948 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 () * Number of clocked 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.004326/1.005, allocations: 2.036 MB / 0.8383 GB, free: 9.953 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007345/1.006, allocations: 347.4 kB / 0.8386 GB, free: 9.609 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002765/1.009, allocations: 1.332 MB / 0.8399 GB, free: 8.266 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.933e-05/1.009, allocations: 20 kB / 0.8399 GB, free: 8.246 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.728e-06/1.009, allocations: 0 / 0.8399 GB, free: 8.246 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.545e-05/1.009, allocations: 7.969 kB / 0.8399 GB, free: 8.238 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01142/1.02, allocations: 5.858 MB / 0.8456 GB, free: 2.098 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.074e-05/1.02, allocations: 20.94 kB / 0.8457 GB, free: 2.078 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009919/1.021, allocations: 283.5 kB / 0.8459 GB, free: 1.801 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-05/1.021, allocations: 28 kB / 0.8459 GB, free: 1.773 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001067/1.022, allocations: 47.94 kB / 0.846 GB, free: 1.727 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.742e-05/1.022, allocations: 35.86 kB / 0.846 GB, free: 1.691 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-05/1.022, allocations: 24.41 kB / 0.8461 GB, free: 1.668 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004054/1.026, allocations: 3.281 MB / 0.8493 GB, free: 14.14 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001034/1.027, allocations: 432.4 kB / 0.8497 GB, free: 13.69 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006874/1.027, allocations: 55.92 kB / 0.8497 GB, free: 13.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001669/1.029, allocations: 91.92 kB / 0.8498 GB, free: 13.55 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001847/1.029, allocations: 151 kB / 0.85 GB, free: 13.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001068/1.029, allocations: 71.94 kB / 0.85 GB, free: 13.33 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005156/1.035, allocations: 2.543 MB / 0.8525 GB, free: 10.78 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.5e-07/1.035, allocations: 0 / 0.8525 GB, free: 10.78 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005302/1.04, allocations: 0.9179 MB / 0.8534 GB, free: 9.859 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 () * Number of clocked 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.0005599/1.04, allocations: 208.3 kB / 0.8536 GB, free: 9.652 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.006541/1.047, allocations: 3.76 MB / 0.8573 GB, free: 5.926 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.27e-05/1.047, allocations: 4 kB / 0.8573 GB, free: 5.922 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001064/1.048, allocations: 0.7416 MB / 0.858 GB, free: 5.184 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01105/1.059, allocations: 471.5 kB / 0.8584 GB, free: 4.73 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0158/1.075, allocations: 10.89 MB / 0.8691 GB, free: 9.586 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003271/1.078, allocations: 3.178 MB / 0.8722 GB, free: 6.375 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008013/1.079, allocations: 291.4 kB / 0.8725 GB, free: 6.09 MB / 0.5261 GB Notification: Performance of SimCode: time 1.042e-06/1.079, allocations: 0 / 0.8725 GB, free: 6.09 MB / 0.5261 GB Notification: Performance of Templates: time 0.2861/1.365, allocations: 52.52 MB / 0.9238 GB, free: 120.4 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches