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.001735/0.00174, allocations: 180.9 kB / 17.41 MB, free: 4.281 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.338/2.338, allocations: 205.4 MB / 223.6 MB, free: 9.012 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.0009792/0.0009794, allocations: 96.98 kB / 271.9 MB, free: 8.242 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.5036/0.5036, allocations: 43.55 MB / 363.8 MB, free: 51.86 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006555/0.0006557, allocations: 12 kB / 432.6 MB, free: 5.648 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.179/0.1797, allocations: 58.85 MB / 491.4 MB, free: 10.71 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4909/0.6707, allocations: 105 MB / 0.5824 GB, free: 13.25 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000349/0.6711, allocations: 79.95 kB / 0.5825 GB, free: 13.17 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3461/1.017, allocations: 85.39 MB / 0.6659 GB, free: 7.242 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.925e-06/1.017, allocations: 0 / 0.6659 GB, free: 7.242 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004052/1.018, allocations: 80 kB / 0.666 GB, free: 7.164 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.02019/1.038, allocations: 4.165 MB / 0.6701 GB, free: 2.922 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.969e-05/1.038, allocations: 12.03 kB / 0.6701 GB, free: 2.91 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01751/1.056, allocations: 2.382 MB / 0.6724 GB, free: 0.5195 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3732/1.429, allocations: 4.011 MB / 0.6763 GB, free: 91.26 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007417/1.43, allocations: 333.6 kB / 0.6766 GB, free: 91.25 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00317/1.433, allocations: 436.3 kB / 0.677 GB, free: 91.24 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04166/1.474, allocations: 10.67 MB / 0.6875 GB, free: 88.26 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005971/1.475, allocations: 66.41 kB / 0.6875 GB, free: 88.25 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003172/1.478, allocations: 214.6 kB / 0.6877 GB, free: 88.25 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002823/1.481, allocations: 1.039 MB / 0.6887 GB, free: 88.25 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02709/1.508, allocations: 8.325 MB / 0.6969 GB, free: 88.15 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07873/1.587, allocations: 48.04 MB / 0.7438 GB, free: 54.25 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01495/1.602, allocations: 3.227 MB / 0.7469 GB, free: 52.84 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003351/1.606, allocations: 1.042 MB / 0.748 GB, free: 52.45 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01594/1.622, allocations: 5.953 MB / 0.7538 GB, free: 48.72 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.691e-05/1.622, allocations: 51.12 kB / 0.7538 GB, free: 48.67 MB / 490.7 MB Notification: Performance of pre-optimization done (n=148): time 9.918e-06/1.622, allocations: 3.75 kB / 0.7538 GB, free: 48.67 MB / 490.7 MB Notification: Performance of matching and sorting (n=160): time 0.0418/1.664, allocations: 9.523 MB / 0.7631 GB, free: 44.35 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001064/1.664, allocations: 194.3 kB / 0.7633 GB, free: 44.13 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01145/1.675, allocations: 4.114 MB / 0.7673 GB, free: 42.64 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004825/1.676, allocations: 48.94 kB / 0.7674 GB, free: 42.59 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003435/1.679, allocations: 3.193 MB / 0.7705 GB, free: 40.13 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009928/1.68, allocations: 0.6344 MB / 0.7711 GB, free: 39.68 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005282/1.681, allocations: 118.8 kB / 0.7712 GB, free: 39.59 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004295/1.681, allocations: 0.5555 MB / 0.7718 GB, free: 39.17 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005028/1.686, allocations: 1.662 MB / 0.7734 GB, free: 38.68 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009126/1.696, allocations: 5.494 MB / 0.7788 GB, free: 32.9 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01265/1.708, allocations: 7.749 MB / 0.7863 GB, free: 25.82 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002257/1.709, allocations: 39.22 kB / 0.7864 GB, free: 25.82 MB / 490.7 MB Notification: Performance of matching and sorting (n=787) (initialization): time 0.02262/1.731, allocations: 6.891 MB / 0.7931 GB, free: 23.16 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002962/1.732, allocations: 65.62 kB / 0.7932 GB, free: 23.16 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003692/1.732, allocations: 135.3 kB / 0.7933 GB, free: 23.16 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003276/1.732, allocations: 189.8 kB / 0.7935 GB, free: 23.16 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00828/1.741, allocations: 1.435 MB / 0.7949 GB, free: 22.98 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004356/1.741, allocations: 272.9 kB / 0.7951 GB, free: 22.92 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009251/1.75, allocations: 386.1 kB / 0.7955 GB, free: 22.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001879/1.752, allocations: 371.1 kB / 0.7958 GB, free: 22.76 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.008554/1.761, allocations: 2.029 MB / 0.7978 GB, free: 21.8 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001543/1.763, allocations: 353.5 kB / 0.7982 GB, free: 21.6 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004964/1.768, allocations: 1.35 MB / 0.7995 GB, free: 21.04 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.808e-05/1.768, allocations: 14.72 kB / 0.7995 GB, free: 21.04 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.122e-05/1.768, allocations: 6.312 kB / 0.7995 GB, free: 21.04 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-05/1.768, allocations: 7.453 kB / 0.7995 GB, free: 21.04 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02056/1.788, allocations: 5.863 MB / 0.8052 GB, free: 18.38 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.082e-05/1.788, allocations: 20.45 kB / 0.8053 GB, free: 18.38 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001984/1.79, allocations: 275.5 kB / 0.8055 GB, free: 18.36 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-05/1.79, allocations: 24.44 kB / 0.8055 GB, free: 18.36 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002282/1.791, allocations: 55 kB / 0.8056 GB, free: 18.34 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.812e-05/1.791, allocations: 39.91 kB / 0.8056 GB, free: 18.32 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-05/1.791, allocations: 32.5 kB / 0.8057 GB, free: 18.31 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006878/1.798, allocations: 3.278 MB / 0.8089 GB, free: 16.3 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002694/1.801, allocations: 0.5292 MB / 0.8094 GB, free: 15.95 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001619/1.802, allocations: 56.42 kB / 0.8094 GB, free: 15.93 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003835/1.806, allocations: 91.27 kB / 0.8095 GB, free: 15.91 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000433/1.807, allocations: 149.7 kB / 0.8097 GB, free: 15.86 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002643/1.807, allocations: 78.58 kB / 0.8097 GB, free: 15.84 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.009888/1.817, allocations: 2.555 MB / 0.8122 GB, free: 14.98 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.503e-06/1.817, allocations: 4 kB / 0.8122 GB, free: 14.98 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01153/1.828, allocations: 0.92 MB / 0.8131 GB, free: 14.28 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.001213/1.83, allocations: 210.8 kB / 0.8133 GB, free: 14.08 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01184/1.842, allocations: 3.767 MB / 0.817 GB, free: 10.78 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-05/1.842, allocations: 4 kB / 0.817 GB, free: 10.77 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002148/1.844, allocations: 0.7469 MB / 0.8177 GB, free: 10.11 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02013/1.864, allocations: 461.8 kB / 0.8182 GB, free: 9.715 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02929/1.893, allocations: 10.95 MB / 0.8289 GB, free: 15.54 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008008/1.901, allocations: 3.188 MB / 0.832 GB, free: 13.05 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001592/1.903, allocations: 290.6 kB / 0.8323 GB, free: 12.78 MB / 0.4948 GB Notification: Performance of SimCode: time 1.072e-06/1.903, allocations: 0 / 0.8323 GB, free: 12.78 MB / 0.4948 GB Notification: Performance of Templates: time 0.5309/2.434, allocations: 52.63 MB / 0.8837 GB, free: 91.23 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