Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00151/0.00151, allocations: 186.2 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.897/1.897, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001108/0.001108, allocations: 89.8 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5029/0.5029, allocations: 43.55 MB / 362.7 MB, free: 51.86 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000642/0.0006421, allocations: 20 kB / 431.4 MB, free: 5.945 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1252, allocations: 58.84 MB / 490.2 MB, free: 11.02 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4885/0.6137, allocations: 104.9 MB / 0.5811 GB, free: 13.69 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002797/0.614, allocations: 78.12 kB / 0.5812 GB, free: 13.62 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3722/0.9863, allocations: 86.71 MB / 0.6659 GB, free: 6.359 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.9863, allocations: 0 / 0.6659 GB, free: 6.359 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002786/0.9866, allocations: 80 kB / 0.666 GB, free: 6.281 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.0163/1.003, allocations: 4.227 MB / 0.6701 GB, free: 1.98 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.049e-05/1.003, allocations: 12.03 kB / 0.6701 GB, free: 1.969 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3584/1.361, allocations: 2.439 MB / 0.6725 GB, free: 91.56 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01983/1.381, allocations: 5.198 MB / 0.6775 GB, free: 91.3 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005211/1.382, allocations: 334.1 kB / 0.6779 GB, free: 91.29 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002356/1.384, allocations: 440.3 kB / 0.6783 GB, free: 91.29 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03284/1.417, allocations: 10.74 MB / 0.6888 GB, free: 88.31 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003187/1.417, allocations: 66.03 kB / 0.6888 GB, free: 88.3 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001813/1.419, allocations: 218.7 kB / 0.689 GB, free: 88.3 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00253/1.422, allocations: 1.042 MB / 0.6901 GB, free: 88.3 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02804/1.45, allocations: 8.438 MB / 0.6983 GB, free: 88.21 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07077/1.521, allocations: 48.08 MB / 0.7453 GB, free: 54.01 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01404/1.535, allocations: 3.232 MB / 0.7484 GB, free: 52.61 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01347/1.548, allocations: 6.009 MB / 0.7543 GB, free: 48.87 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.534e-05/1.549, allocations: 43.47 kB / 0.7543 GB, free: 48.82 MB / 490.7 MB Notification: Performance of pre-optimization done (n=148): time 5.68e-06/1.549, allocations: 3.938 kB / 0.7543 GB, free: 48.82 MB / 490.7 MB Notification: Performance of matching and sorting (n=160): time 0.04001/1.589, allocations: 9.787 MB / 0.7639 GB, free: 44.2 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.931e-05/1.589, allocations: 191.8 kB / 0.7641 GB, free: 43.98 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009053/1.598, allocations: 3.676 MB / 0.7677 GB, free: 42.65 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003238/1.598, allocations: 52.28 kB / 0.7677 GB, free: 42.6 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002587/1.601, allocations: 3.111 MB / 0.7707 GB, free: 40.14 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008723/1.602, allocations: 0.6352 MB / 0.7714 GB, free: 39.69 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007127/1.602, allocations: 122 kB / 0.7715 GB, free: 39.59 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003905/1.603, allocations: 0.5573 MB / 0.772 GB, free: 39.18 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005074/1.608, allocations: 1.658 MB / 0.7736 GB, free: 38.68 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007589/1.616, allocations: 5.479 MB / 0.779 GB, free: 32.88 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007514/1.623, allocations: 2.959 MB / 0.7819 GB, free: 31.69 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001405/1.623, allocations: 39.75 kB / 0.7819 GB, free: 31.69 MB / 490.7 MB Notification: Performance of matching and sorting (n=787) (initialization): time 0.01902/1.642, allocations: 6.77 MB / 0.7885 GB, free: 29.11 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001221/1.642, allocations: 65.08 kB / 0.7886 GB, free: 29.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002428/1.643, allocations: 136.7 kB / 0.7887 GB, free: 29.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002704/1.643, allocations: 199.8 kB / 0.7889 GB, free: 29.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008663/1.652, allocations: 1.443 MB / 0.7903 GB, free: 28.92 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002551/1.652, allocations: 269.4 kB / 0.7906 GB, free: 28.86 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006965/1.659, allocations: 382.1 kB / 0.791 GB, free: 28.75 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001156/1.66, allocations: 376.6 kB / 0.7913 GB, free: 28.7 MB / 490.7 MB 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.00508/1.665, allocations: 2.031 MB / 0.7933 GB, free: 27.73 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008512/1.666, allocations: 356.6 kB / 0.7936 GB, free: 27.54 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003473/1.67, allocations: 1.343 MB / 0.7949 GB, free: 26.98 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.88e-05/1.67, allocations: 16.41 kB / 0.795 GB, free: 26.98 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-05/1.67, allocations: 3.5 kB / 0.795 GB, free: 26.98 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.763e-05/1.67, allocations: 8.438 kB / 0.795 GB, free: 26.98 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0146/1.684, allocations: 5.859 MB / 0.8007 GB, free: 24.33 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.922e-05/1.684, allocations: 19.16 kB / 0.8007 GB, free: 24.33 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001888/1.686, allocations: 279.1 kB / 0.801 GB, free: 24.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.039e-05/1.686, allocations: 26.41 kB / 0.801 GB, free: 24.3 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001252/1.687, allocations: 54.78 kB / 0.8011 GB, free: 24.28 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.969e-05/1.687, allocations: 33.34 kB / 0.8011 GB, free: 24.27 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.039e-05/1.687, allocations: 29.09 kB / 0.8011 GB, free: 24.27 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006092/1.693, allocations: 5.333 MB / 0.8063 GB, free: 19.65 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001673/1.694, allocations: 0.5384 MB / 0.8069 GB, free: 19.3 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006103/1.695, allocations: 56 kB / 0.8069 GB, free: 19.28 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002198/1.697, allocations: 91.88 kB / 0.807 GB, free: 19.26 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002366/1.698, allocations: 151.3 kB / 0.8071 GB, free: 19.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001292/1.698, allocations: 65.75 kB / 0.8072 GB, free: 19.19 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.007081/1.705, allocations: 2.566 MB / 0.8097 GB, free: 18.32 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.51e-07/1.705, allocations: 0 / 0.8097 GB, free: 18.32 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006945/1.712, allocations: 0.9249 MB / 0.8106 GB, free: 17.75 MB / 490.7 MB 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.0006649/1.712, allocations: 209.4 kB / 0.8108 GB, free: 17.56 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009217/1.722, allocations: 3.761 MB / 0.8145 GB, free: 14.27 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.997e-05/1.722, allocations: 4 kB / 0.8145 GB, free: 14.26 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00166/1.723, allocations: 0.7482 MB / 0.8152 GB, free: 13.6 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003385/1.727, allocations: 433.7 kB / 0.8156 GB, free: 13.23 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02261/1.749, allocations: 10.87 MB / 0.8262 GB, free: 3.012 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005861/1.755, allocations: 3.273 MB / 0.8294 GB, free: 0.5234 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001212/1.757, allocations: 294.8 kB / 0.8297 GB, free: 248 kB / 490.7 MB Notification: Performance of SimCode: time 8.52e-07/1.757, allocations: 0 / 0.8297 GB, free: 248 kB / 490.7 MB Notification: Performance of Templates: time 0.4819/2.239, allocations: 52.14 MB / 0.8806 GB, free: 97.85 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches