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.001035/0.001035, allocations: 178.7 kB / 18.09 MB, free: 3.746 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.326/1.326, allocations: 223.3 MB / 242.1 MB, free: 11.68 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.001002/0.001002, allocations: 91.05 kB / 293.3 MB, free: 10.76 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.344/0.344, allocations: 44.15 MB / 388.5 MB, free: 38.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006081/0.0006082, allocations: 8 kB / 461.1 MB, free: 1.297 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3716/0.3722, allocations: 61.88 MB / 0.5107 GB, free: 38.27 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1385/0.5108, allocations: 106.7 MB / 0.6149 GB, free: 4.328 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002216/0.511, allocations: 79.95 kB / 0.615 GB, free: 4.254 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4673/0.9783, allocations: 86.34 MB / 0.6993 GB, free: 95.68 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.845e-06/0.9784, allocations: 2.406 kB / 0.6993 GB, free: 95.68 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001585/0.9785, allocations: 91.41 kB / 0.6994 GB, free: 95.68 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.01132/0.9899, allocations: 4.132 MB / 0.7034 GB, free: 93.79 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/0.9899, allocations: 10.14 kB / 0.7034 GB, free: 93.79 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01205/1.002, allocations: 2.394 MB / 0.7058 GB, free: 93.5 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009161/1.011, allocations: 3.703 MB / 0.7094 GB, free: 92.89 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003495/1.012, allocations: 332.8 kB / 0.7097 GB, free: 92.88 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001961/1.014, allocations: 443.2 kB / 0.7101 GB, free: 92.88 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02073/1.034, allocations: 10.67 MB / 0.7206 GB, free: 89.75 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000203/1.035, allocations: 65.92 kB / 0.7206 GB, free: 89.71 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006781/1.035, allocations: 218.9 kB / 0.7208 GB, free: 89.59 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001667/1.037, allocations: 1.038 MB / 0.7218 GB, free: 89.4 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01556/1.052, allocations: 8.319 MB / 0.73 GB, free: 86.8 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04431/1.097, allocations: 48.01 MB / 0.7768 GB, free: 49.41 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006395/1.103, allocations: 3.224 MB / 0.78 GB, free: 47.98 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00123/1.105, allocations: 1.044 MB / 0.781 GB, free: 47.59 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007422/1.112, allocations: 5.935 MB / 0.7868 GB, free: 43.71 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.262e-05/1.112, allocations: 49.3 kB / 0.7869 GB, free: 43.67 MB / 490.7 MB Notification: Performance of pre-optimization done (n=148): time 4.519e-06/1.112, allocations: 0 / 0.7869 GB, free: 43.67 MB / 490.7 MB Notification: Performance of matching and sorting (n=160): time 0.01939/1.131, allocations: 9.42 MB / 0.7961 GB, free: 39.29 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.184e-05/1.132, allocations: 192.7 kB / 0.7962 GB, free: 39.07 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005275/1.137, allocations: 4.082 MB / 0.8002 GB, free: 36.51 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002315/1.137, allocations: 45.7 kB / 0.8003 GB, free: 36.46 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001468/1.139, allocations: 3.177 MB / 0.8034 GB, free: 33.6 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005202/1.139, allocations: 0.6358 MB / 0.804 GB, free: 33.05 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002003/1.139, allocations: 116 kB / 0.8041 GB, free: 32.93 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002563/1.14, allocations: 0.5582 MB / 0.8046 GB, free: 32.44 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002379/1.142, allocations: 1.661 MB / 0.8063 GB, free: 31.06 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003756/1.146, allocations: 5.501 MB / 0.8116 GB, free: 24.02 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007115/1.153, allocations: 7.758 MB / 0.8192 GB, free: 14.81 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001082/1.153, allocations: 36 kB / 0.8193 GB, free: 14.77 MB / 490.7 MB Notification: Performance of matching and sorting (n=787) (initialization): time 0.01259/1.166, allocations: 6.897 MB / 0.826 GB, free: 8.641 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.87e-05/1.166, allocations: 64 kB / 0.826 GB, free: 8.578 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001928/1.166, allocations: 136 kB / 0.8262 GB, free: 8.445 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001477/1.166, allocations: 180 kB / 0.8263 GB, free: 8.27 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00425/1.17, allocations: 1.446 MB / 0.8278 GB, free: 7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001557/1.171, allocations: 261.1 kB / 0.828 GB, free: 6.77 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004403/1.175, allocations: 384.9 kB / 0.8284 GB, free: 6.441 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005999/1.176, allocations: 374.9 kB / 0.8287 GB, free: 6.078 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.003161/1.179, allocations: 2.035 MB / 0.8307 GB, free: 4.285 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005799/1.179, allocations: 352.5 kB / 0.8311 GB, free: 3.938 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002171/1.181, allocations: 1.336 MB / 0.8324 GB, free: 2.777 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.103e-05/1.182, allocations: 20 kB / 0.8324 GB, free: 2.758 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.788e-06/1.182, allocations: 0 / 0.8324 GB, free: 2.758 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.226e-05/1.182, allocations: 3.844 kB / 0.8324 GB, free: 2.758 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00921/1.191, allocations: 5.862 MB / 0.8381 GB, free: 13.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.223e-05/1.191, allocations: 20 kB / 0.8381 GB, free: 13.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009414/1.192, allocations: 283.6 kB / 0.8384 GB, free: 12.92 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.407e-05/1.192, allocations: 28 kB / 0.8384 GB, free: 12.89 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.623e-05/1.192, allocations: 54.94 kB / 0.8385 GB, free: 12.84 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.502e-05/1.192, allocations: 31.92 kB / 0.8385 GB, free: 12.81 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.836e-05/1.192, allocations: 27.88 kB / 0.8385 GB, free: 12.78 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003879/1.196, allocations: 3.276 MB / 0.8417 GB, free: 9.254 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009796/1.197, allocations: 424.4 kB / 0.8421 GB, free: 8.816 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003073/1.197, allocations: 55.92 kB / 0.8422 GB, free: 8.762 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00117/1.198, allocations: 95.91 kB / 0.8423 GB, free: 8.668 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001805/1.199, allocations: 147.4 kB / 0.8424 GB, free: 8.523 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.5e-05/1.199, allocations: 67.94 kB / 0.8425 GB, free: 8.457 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004605/1.203, allocations: 2.547 MB / 0.845 GB, free: 5.898 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7.11e-07/1.203, allocations: 0 / 0.845 GB, free: 5.898 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005787/1.209, allocations: 0.9139 MB / 0.8459 GB, free: 4.988 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.0005545/1.21, allocations: 202.7 kB / 0.8461 GB, free: 4.781 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.007203/1.217, allocations: 3.771 MB / 0.8497 GB, free: 1.047 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.017e-05/1.217, allocations: 4 kB / 0.8497 GB, free: 1.043 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001204/1.218, allocations: 0.7467 MB / 0.8505 GB, free: 308 kB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01332/1.231, allocations: 459.2 kB / 0.8509 GB, free: 15.86 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02161/1.253, allocations: 10.44 MB / 0.8611 GB, free: 5.176 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005863/1.259, allocations: 3.172 MB / 0.8642 GB, free: 1.984 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.005072/1.264, allocations: 1.819 MB / 0.866 GB, free: 172 kB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005703/1.265, allocations: 239.5 kB / 0.8662 GB, free: 15.93 MB / 0.5261 GB Notification: Performance of SimCode: time 1.513e-06/1.265, allocations: 0 / 0.8662 GB, free: 15.93 MB / 0.5261 GB Notification: Performance of Templates: time 0.3359/1.601, allocations: 27.23 MB / 0.8928 GB, free: 124.7 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/jenkins1/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