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.001027/0.001027, allocations: 177 kB / 17.06 MB, free: 5.094 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.279/1.279, allocations: 223.2 MB / 241 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008794/0.0008794, allocations: 94.75 kB / 292.1 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3725/0.3725, allocations: 44.21 MB / 387.5 MB, free: 38.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003711/0.0003712, allocations: 8 kB / 459.9 MB, free: 1.539 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3713/0.3717, allocations: 61.9 MB / 0.5096 GB, free: 38.05 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1422/0.5139, allocations: 106.6 MB / 0.6136 GB, free: 4.512 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002047/0.5141, allocations: 83.95 kB / 0.6137 GB, free: 4.43 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4894/1.004, allocations: 87.63 MB / 0.6993 GB, free: 95.9 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.988e-06/1.004, allocations: 2.625 kB / 0.6993 GB, free: 95.9 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003845/1.004, allocations: 84.53 kB / 0.6994 GB, free: 95.9 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.01551/1.02, allocations: 4.199 MB / 0.7035 GB, free: 94.02 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/1.02, allocations: 8.844 kB / 0.7035 GB, free: 94.02 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01233/1.032, allocations: 2.45 MB / 0.7059 GB, free: 93.73 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01638/1.048, allocations: 4.903 MB / 0.7107 GB, free: 93.15 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007832/1.049, allocations: 335.1 kB / 0.711 GB, free: 93.14 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002824/1.052, allocations: 439.6 kB / 0.7114 GB, free: 93.13 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02847/1.081, allocations: 10.74 MB / 0.7219 GB, free: 89.56 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005823/1.081, allocations: 60.84 kB / 0.722 GB, free: 89.52 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002289/1.083, allocations: 220.7 kB / 0.7222 GB, free: 89.41 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002201/1.086, allocations: 1.037 MB / 0.7232 GB, free: 89.22 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01738/1.103, allocations: 8.445 MB / 0.7314 GB, free: 86.59 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05117/1.154, allocations: 48.04 MB / 0.7783 GB, free: 49.2 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007201/1.162, allocations: 3.222 MB / 0.7815 GB, free: 47.79 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008393/1.17, allocations: 5.986 MB / 0.7873 GB, free: 43.91 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.245e-05/1.17, allocations: 54.77 kB / 0.7874 GB, free: 43.85 MB / 490.7 MB Notification: Performance of pre-optimization done (n=148): time 3.536e-06/1.17, allocations: 0 / 0.7874 GB, free: 43.85 MB / 490.7 MB Notification: Performance of matching and sorting (n=160): time 0.02278/1.193, allocations: 9.671 MB / 0.7968 GB, free: 39.19 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.771e-05/1.193, allocations: 199 kB / 0.797 GB, free: 38.97 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006426/1.199, allocations: 3.643 MB / 0.8006 GB, free: 35.89 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002701/1.2, allocations: 49.7 kB / 0.8006 GB, free: 35.83 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001843/1.202, allocations: 3.173 MB / 0.8037 GB, free: 32.98 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006148/1.202, allocations: 0.6354 MB / 0.8044 GB, free: 32.43 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001907/1.202, allocations: 127.4 kB / 0.8045 GB, free: 32.3 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002861/1.203, allocations: 0.5569 MB / 0.805 GB, free: 31.81 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00239/1.205, allocations: 1.656 MB / 0.8066 GB, free: 30.44 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003657/1.209, allocations: 5.477 MB / 0.812 GB, free: 23.43 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003551/1.212, allocations: 2.968 MB / 0.8149 GB, free: 20.78 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.041e-05/1.212, allocations: 40 kB / 0.8149 GB, free: 20.74 MB / 490.7 MB Notification: Performance of matching and sorting (n=787) (initialization): time 0.009608/1.222, allocations: 6.877 MB / 0.8216 GB, free: 14.62 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.47e-05/1.222, allocations: 66.34 kB / 0.8217 GB, free: 14.56 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000104/1.222, allocations: 136 kB / 0.8218 GB, free: 14.43 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001481/1.222, allocations: 200 kB / 0.822 GB, free: 14.23 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0038/1.226, allocations: 1.444 MB / 0.8234 GB, free: 12.96 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002039/1.226, allocations: 267.5 kB / 0.8237 GB, free: 12.73 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00569/1.232, allocations: 384.9 kB / 0.8241 GB, free: 12.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006874/1.233, allocations: 371.8 kB / 0.8244 GB, free: 12.04 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.0042/1.237, allocations: 2.032 MB / 0.8264 GB, free: 10.25 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007218/1.238, allocations: 351.3 kB / 0.8267 GB, free: 9.906 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002026/1.24, allocations: 1.345 MB / 0.828 GB, free: 8.738 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.29e-05/1.24, allocations: 23.28 kB / 0.8281 GB, free: 8.719 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/1.24, allocations: 3.875 kB / 0.8281 GB, free: 8.719 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.179e-05/1.24, allocations: 6.938 kB / 0.8281 GB, free: 8.719 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008585/1.248, allocations: 5.856 MB / 0.8338 GB, free: 2.59 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-05/1.248, allocations: 19.94 kB / 0.8338 GB, free: 2.57 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008915/1.249, allocations: 279.5 kB / 0.8341 GB, free: 2.297 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.752e-05/1.249, allocations: 27.98 kB / 0.8341 GB, free: 2.27 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.473e-05/1.249, allocations: 52 kB / 0.8342 GB, free: 2.219 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.162e-05/1.249, allocations: 39.81 kB / 0.8342 GB, free: 2.18 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.251e-05/1.249, allocations: 27.88 kB / 0.8342 GB, free: 2.152 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004719/1.254, allocations: 5.317 MB / 0.8394 GB, free: 12.01 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001152/1.255, allocations: 432.4 kB / 0.8398 GB, free: 11.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003462/1.256, allocations: 51.98 kB / 0.8399 GB, free: 11.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00123/1.257, allocations: 87.92 kB / 0.84 GB, free: 11.43 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001828/1.257, allocations: 154.8 kB / 0.8401 GB, free: 11.28 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/1.257, allocations: 75.98 kB / 0.8402 GB, free: 11.21 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004407/1.262, allocations: 2.531 MB / 0.8426 GB, free: 8.664 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.61e-07/1.262, allocations: 4 kB / 0.8426 GB, free: 8.66 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005568/1.267, allocations: 0.9218 MB / 0.8435 GB, free: 7.738 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 () * 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.0004664/1.268, allocations: 206.6 kB / 0.8437 GB, free: 7.527 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006558/1.274, allocations: 3.769 MB / 0.8474 GB, free: 3.793 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.192e-05/1.274, allocations: 4 kB / 0.8474 GB, free: 3.789 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001049/1.275, allocations: 0.742 MB / 0.8482 GB, free: 3.051 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002542/1.278, allocations: 436.4 kB / 0.8486 GB, free: 2.625 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01663/1.295, allocations: 10.38 MB / 0.8587 GB, free: 8.004 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003631/1.298, allocations: 3.264 MB / 0.8619 GB, free: 4.727 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.004952/1.303, allocations: 1.82 MB / 0.8637 GB, free: 2.91 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007767/1.304, allocations: 243.4 kB / 0.8639 GB, free: 2.672 MB / 0.5105 GB Notification: Performance of SimCode: time 1.492e-06/1.304, allocations: 3.938 kB / 0.8639 GB, free: 2.668 MB / 0.5105 GB Notification: Performance of Templates: time 0.3408/1.645, allocations: 27.11 MB / 0.8904 GB, free: 121.9 MB / 0.5261 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