Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_ModelicaTest.MultiBody.Forces.Spring") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001228/0.001228, allocations: 198.6 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.243/1.243, allocations: 227.2 MB / 245 MB, free: 5.738 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001054/0.001054, allocations: 104.2 kB / 297.3 MB, free: 5.945 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2964/0.2964, allocations: 45.23 MB / 394.7 MB, free: 31.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000238/0.0002381, allocations: 8 kB / 468.4 MB, free: 7.707 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3121/0.3124, allocations: 63.25 MB / 0.5192 GB, free: 37.41 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.122/0.4344, allocations: 107.5 MB / 0.6242 GB, free: 11.91 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002081/0.4346, allocations: 75.95 kB / 0.6242 GB, free: 11.84 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4517/0.8864, allocations: 89.96 MB / 0.7121 GB, free: 100.8 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.8864, allocations: 0 / 0.7121 GB, free: 100.8 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003052/0.8867, allocations: 79.41 kB / 0.7122 GB, free: 100.8 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.01246/0.8992, allocations: 4.197 MB / 0.7163 GB, free: 98.87 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.8993, allocations: 9.188 kB / 0.7163 GB, free: 98.87 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01111/0.9104, allocations: 2.453 MB / 0.7187 GB, free: 98.57 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01082/0.9212, allocations: 4.262 MB / 0.7228 GB, free: 97.88 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002982/0.9216, allocations: 334.4 kB / 0.7231 GB, free: 97.86 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001633/0.9232, allocations: 441.1 kB / 0.7236 GB, free: 97.86 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01733/0.9406, allocations: 10.74 MB / 0.734 GB, free: 92.24 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001307/0.9407, allocations: 65.12 kB / 0.7341 GB, free: 92.2 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005771/0.9413, allocations: 217.2 kB / 0.7343 GB, free: 92.09 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001091/0.9424, allocations: 1.042 MB / 0.7353 GB, free: 91.9 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01238/0.9548, allocations: 8.444 MB / 0.7436 GB, free: 89.26 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0367/0.9915, allocations: 48.03 MB / 0.7905 GB, free: 47.53 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006393/0.9979, allocations: 3.236 MB / 0.7936 GB, free: 44.13 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007495/1.005, allocations: 5.983 MB / 0.7995 GB, free: 37.82 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.804e-05/1.006, allocations: 51.5 kB / 0.7995 GB, free: 37.76 MB / 490.7 MB Notification: Performance of pre-optimization done (n=148): time 3.887e-06/1.006, allocations: 3.938 kB / 0.7995 GB, free: 37.76 MB / 490.7 MB Notification: Performance of matching and sorting (n=160): time 0.02105/1.027, allocations: 9.67 MB / 0.809 GB, free: 27.93 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.645e-05/1.027, allocations: 196.9 kB / 0.8092 GB, free: 27.69 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004978/1.032, allocations: 3.646 MB / 0.8127 GB, free: 24.02 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000119/1.032, allocations: 45.7 kB / 0.8128 GB, free: 23.97 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001213/1.033, allocations: 3.176 MB / 0.8159 GB, free: 20.8 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003654/1.033, allocations: 0.6433 MB / 0.8165 GB, free: 20.16 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000169/1.034, allocations: 120 kB / 0.8166 GB, free: 20.04 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002106/1.034, allocations: 0.5621 MB / 0.8172 GB, free: 19.47 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00213/1.036, allocations: 1.655 MB / 0.8188 GB, free: 17.81 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003154/1.039, allocations: 5.479 MB / 0.8241 GB, free: 10.41 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003107/1.042, allocations: 2.953 MB / 0.827 GB, free: 7.453 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.789e-05/1.042, allocations: 40 kB / 0.8271 GB, free: 7.414 MB / 490.7 MB Notification: Performance of matching and sorting (n=787) (initialization): time 0.007959/1.05, allocations: 6.887 MB / 0.8338 GB, free: 0.5234 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.851e-05/1.05, allocations: 63.95 kB / 0.8338 GB, free: 472 kB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.079e-05/1.05, allocations: 138.7 kB / 0.834 GB, free: 336 kB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001175/1.051, allocations: 203.9 kB / 0.8342 GB, free: 132 kB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003724/1.054, allocations: 1.439 MB / 0.8356 GB, free: 14.69 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001778/1.054, allocations: 267 kB / 0.8358 GB, free: 14.43 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003626/1.058, allocations: 383 kB / 0.8362 GB, free: 14.05 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004219/1.059, allocations: 379 kB / 0.8366 GB, free: 13.69 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 () * 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.002867/1.061, allocations: 2.032 MB / 0.8385 GB, free: 11.64 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004932/1.062, allocations: 351.5 kB / 0.8389 GB, free: 11.3 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002076/1.064, allocations: 1.341 MB / 0.8402 GB, free: 9.941 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.544e-05/1.064, allocations: 16 kB / 0.8402 GB, free: 9.926 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/1.064, allocations: 4.125 kB / 0.8402 GB, free: 9.922 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.5e-05/1.064, allocations: 11.97 kB / 0.8402 GB, free: 9.91 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009474/1.074, allocations: 5.862 MB / 0.8459 GB, free: 3.762 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.248e-05/1.074, allocations: 16 kB / 0.846 GB, free: 3.746 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009752/1.075, allocations: 283.5 kB / 0.8462 GB, free: 3.469 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-05/1.075, allocations: 28 kB / 0.8463 GB, free: 3.441 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.9e-05/1.075, allocations: 47.36 kB / 0.8463 GB, free: 3.398 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.75e-05/1.075, allocations: 35.86 kB / 0.8463 GB, free: 3.363 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.705e-05/1.075, allocations: 27.88 kB / 0.8464 GB, free: 3.336 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004681/1.079, allocations: 5.324 MB / 0.8516 GB, free: 13.19 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001101/1.081, allocations: 420.5 kB / 0.852 GB, free: 12.76 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003166/1.081, allocations: 51.98 kB / 0.852 GB, free: 12.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001206/1.082, allocations: 100.4 kB / 0.8521 GB, free: 12.61 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001569/1.082, allocations: 143.4 kB / 0.8522 GB, free: 12.47 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.06e-05/1.082, allocations: 72 kB / 0.8523 GB, free: 12.4 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003863/1.086, allocations: 2.539 MB / 0.8548 GB, free: 9.848 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3e-07/1.086, allocations: 0 / 0.8548 GB, free: 9.848 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0042/1.09, allocations: 0.9286 MB / 0.8557 GB, free: 8.922 MB / 0.5105 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.0003901/1.091, allocations: 205.5 kB / 0.8559 GB, free: 8.715 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.005494/1.096, allocations: 3.761 MB / 0.8596 GB, free: 4.988 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.056e-06/1.096, allocations: 4 kB / 0.8596 GB, free: 4.984 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0009161/1.097, allocations: 0.7419 MB / 0.8603 GB, free: 4.246 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001782/1.099, allocations: 442 kB / 0.8607 GB, free: 3.812 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01359/1.113, allocations: 10.39 MB / 0.8709 GB, free: 9.152 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003242/1.116, allocations: 3.262 MB / 0.8741 GB, free: 5.867 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.004227/1.12, allocations: 1.816 MB / 0.8758 GB, free: 4.043 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005069/1.121, allocations: 243.4 kB / 0.8761 GB, free: 3.809 MB / 0.5261 GB Notification: Performance of SimCode: time 1.172e-06/1.121, allocations: 0 / 0.8761 GB, free: 3.809 MB / 0.5261 GB Notification: Performance of Templates: time 0.246/1.367, allocations: 27.12 MB / 0.9025 GB, free: 128.5 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches