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.00215/0.002149, allocations: 181.9 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.185/2.185, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001056/0.001056, allocations: 94.67 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2785/0.2785, allocations: 43.5 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.326e-05/3.331e-05, allocations: 4 kB / 425.3 MB, free: 23.38 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1114, allocations: 58.85 MB / 484.1 MB, free: 12.47 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5092/0.6206, allocations: 104.8 MB / 0.5751 GB, free: 15.11 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002658/0.6209, allocations: 77.44 kB / 0.5752 GB, free: 15.08 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4119/1.033, allocations: 86.76 MB / 0.6599 GB, free: 168 kB / 458.7 MB Notification: Performance of FrontEnd: time 2.896e-06/1.033, allocations: 0 / 0.6599 GB, free: 168 kB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002776/1.033, allocations: 80.19 kB / 0.66 GB, free: 88 kB / 458.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.0153/1.049, allocations: 3.995 MB / 0.6639 GB, free: 12.02 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.531e-05/1.049, allocations: 8.031 kB / 0.6639 GB, free: 12.02 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01984/1.068, allocations: 2.443 MB / 0.6663 GB, free: 9.562 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0193/1.088, allocations: 5.168 MB / 0.6713 GB, free: 4.328 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004539/1.088, allocations: 328.7 kB / 0.6716 GB, free: 4.004 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002162/1.091, allocations: 443.7 kB / 0.672 GB, free: 3.57 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03039/1.121, allocations: 10.6 MB / 0.6824 GB, free: 7.828 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002244/1.121, allocations: 67.34 kB / 0.6825 GB, free: 7.762 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009863/1.122, allocations: 215.8 kB / 0.6827 GB, free: 7.551 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002507/1.125, allocations: 1.041 MB / 0.6837 GB, free: 6.504 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02742/1.152, allocations: 8.173 MB / 0.6917 GB, free: 14.31 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4138/1.566, allocations: 48.08 MB / 0.7386 GB, free: 85.27 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01372/1.58, allocations: 3.211 MB / 0.7418 GB, free: 84.54 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002686/1.583, allocations: 1.023 MB / 0.7428 GB, free: 84.5 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01392/1.597, allocations: 6.001 MB / 0.7486 GB, free: 81.75 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.955e-05/1.597, allocations: 50.94 kB / 0.7487 GB, free: 81.71 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=148): time 6.181e-06/1.597, allocations: 0 / 0.7487 GB, free: 81.71 MB / 0.4948 GB Notification: Performance of matching and sorting (n=160): time 0.03405/1.631, allocations: 8.762 MB / 0.7572 GB, free: 78.87 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.891e-05/1.631, allocations: 201.2 kB / 0.7574 GB, free: 78.65 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007114/1.638, allocations: 3.57 MB / 0.7609 GB, free: 78.26 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003149/1.638, allocations: 51.61 kB / 0.7609 GB, free: 78.23 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002406/1.641, allocations: 3.104 MB / 0.764 GB, free: 76.54 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008142/1.642, allocations: 0.6404 MB / 0.7646 GB, free: 76.19 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004152/1.642, allocations: 115.4 kB / 0.7647 GB, free: 76.19 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003475/1.642, allocations: 0.5687 MB / 0.7653 GB, free: 75.86 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003534/1.646, allocations: 1.55 MB / 0.7668 GB, free: 75.84 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005806/1.652, allocations: 5.374 MB / 0.772 GB, free: 70.87 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006152/1.658, allocations: 2.891 MB / 0.7749 GB, free: 70.85 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001133/1.658, allocations: 37.28 kB / 0.7749 GB, free: 70.85 MB / 0.4948 GB Notification: Performance of matching and sorting (n=787) (initialization): time 0.01676/1.675, allocations: 6.562 MB / 0.7813 GB, free: 70.08 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001073/1.675, allocations: 65.19 kB / 0.7814 GB, free: 70.08 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001933/1.675, allocations: 133.1 kB / 0.7815 GB, free: 70.08 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002247/1.676, allocations: 201.7 kB / 0.7817 GB, free: 70.08 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008579/1.684, allocations: 1.443 MB / 0.7831 GB, free: 69.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002632/1.684, allocations: 269.1 kB / 0.7833 GB, free: 69.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007412/1.692, allocations: 379.6 kB / 0.7837 GB, free: 69.73 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001236/1.693, allocations: 371.1 kB / 0.7841 GB, free: 69.68 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 () * 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.001106/1.694, allocations: 0.5816 MB / 0.7846 GB, free: 69.2 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008257/1.695, allocations: 352.6 kB / 0.785 GB, free: 69.01 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003114/1.698, allocations: 1.324 MB / 0.7863 GB, free: 68.48 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.96e-05/1.698, allocations: 19.78 kB / 0.7863 GB, free: 68.48 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.114e-05/1.698, allocations: 4 kB / 0.7863 GB, free: 68.48 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.011e-05/1.698, allocations: 9.109 kB / 0.7863 GB, free: 68.48 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0148/1.713, allocations: 5.832 MB / 0.792 GB, free: 65.86 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.018e-05/1.713, allocations: 17.84 kB / 0.792 GB, free: 65.86 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001978/1.715, allocations: 290 kB / 0.7923 GB, free: 65.82 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.569e-05/1.715, allocations: 27.98 kB / 0.7923 GB, free: 65.82 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001221/1.716, allocations: 42.91 kB / 0.7923 GB, free: 65.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.093e-05/1.716, allocations: 42.17 kB / 0.7924 GB, free: 65.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-05/1.716, allocations: 26.09 kB / 0.7924 GB, free: 65.79 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005582/1.721, allocations: 5.303 MB / 0.7976 GB, free: 61.2 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001643/1.723, allocations: 0.529 MB / 0.7981 GB, free: 60.85 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005432/1.723, allocations: 53.66 kB / 0.7982 GB, free: 60.83 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002266/1.726, allocations: 92.28 kB / 0.7982 GB, free: 60.81 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002203/1.726, allocations: 145.3 kB / 0.7984 GB, free: 60.76 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001321/1.726, allocations: 71.77 kB / 0.7985 GB, free: 60.75 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005199/1.731, allocations: 2.462 MB / 0.8009 GB, free: 59.87 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.703e-06/1.731, allocations: 0 / 0.8009 GB, free: 59.87 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00671/1.738, allocations: 0.9243 MB / 0.8018 GB, free: 59.75 MB / 0.4948 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.0005453/1.739, allocations: 209.5 kB / 0.802 GB, free: 59.59 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.007945/1.747, allocations: 3.637 MB / 0.8055 GB, free: 58.37 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-05/1.747, allocations: 3.906 kB / 0.8055 GB, free: 58.37 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001561/1.748, allocations: 0.7364 MB / 0.8062 GB, free: 58.12 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003518/1.752, allocations: 442.8 kB / 0.8067 GB, free: 57.93 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02008/1.772, allocations: 7.643 MB / 0.8141 GB, free: 54.48 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006382/1.778, allocations: 3.276 MB / 0.8173 GB, free: 52.32 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001254/1.78, allocations: 290.2 kB / 0.8176 GB, free: 52.04 MB / 0.4948 GB Notification: Performance of SimCode: time 1.282e-06/1.78, allocations: 3.938 kB / 0.8176 GB, free: 52.04 MB / 0.4948 GB Notification: Performance of Templates: time 0.1029/1.883, allocations: 52.01 MB / 0.8684 GB, free: 10.48 MB / 0.4948 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