Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_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_ModelicaTest.MultiBody.Forces.Spring") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000947/0.000947, allocations: 187.6 kB / 7.806 MB, free: 2.496 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9945/0.9945, allocations: 205.2 MB / 213.4 MB, free: 13.92 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.0008115/0.0008115, allocations: 87.09 kB / 261.4 MB, free: 13.54 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.1471/0.1471, allocations: 43.49 MB / 352.9 MB, free: 1.945 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.952e-06/5.952e-06, allocations: 4 kB / 417.7 MB, free: 40.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1912/0.1912, allocations: 58.84 MB / 476.6 MB, free: 5.188 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1086/0.2999, allocations: 104 MB / 0.567 GB, free: 10.87 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001775/0.3001, allocations: 83.95 kB / 0.5671 GB, free: 10.79 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.3284/0.6285, allocations: 83.68 MB / 0.6488 GB, free: 107 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001181/0.6286, allocations: 85.62 kB / 0.6489 GB, free: 107 MB / 474.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.005277/0.6339, allocations: 3.915 MB / 0.6527 GB, free: 105.3 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.634, allocations: 11.16 kB / 0.6527 GB, free: 105.3 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007763/0.6417, allocations: 1.979 MB / 0.6546 GB, free: 105 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009232/0.651, allocations: 5.239 MB / 0.6597 GB, free: 104.4 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.967e-05/0.6511, allocations: 140.6 kB / 0.6599 GB, free: 104.4 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005245/0.6516, allocations: 256.9 kB / 0.6601 GB, free: 104.4 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00699/0.6586, allocations: 6.394 MB / 0.6664 GB, free: 104.4 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008957/0.6676, allocations: 9.657 MB / 0.6758 GB, free: 101.4 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001159/0.6678, allocations: 68.84 kB / 0.6759 GB, free: 101.4 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004095/0.6682, allocations: 30.38 kB / 0.6759 GB, free: 101.4 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00111/0.6693, allocations: 1.112 MB / 0.677 GB, free: 101.3 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03266/0.702, allocations: 48.07 MB / 0.7239 GB, free: 63.99 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001938/0.7039, allocations: 1.908 MB / 0.7258 GB, free: 62.85 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001139/0.7051, allocations: 1.05 MB / 0.7268 GB, free: 62.45 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006109/0.7112, allocations: 5.192 MB / 0.7319 GB, free: 58.94 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.195e-05/0.7112, allocations: 56.19 kB / 0.7319 GB, free: 58.89 MB / 474.7 MB Notification: Performance of pre-optimization done (n=148): time 2.906e-06/0.7112, allocations: 1.031 kB / 0.7319 GB, free: 58.89 MB / 474.7 MB Notification: Performance of matching and sorting (n=160): time 0.01396/0.7252, allocations: 7.964 MB / 0.7397 GB, free: 54.98 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.85e-05/0.7253, allocations: 198.3 kB / 0.7399 GB, free: 54.76 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003652/0.7289, allocations: 3.117 MB / 0.7429 GB, free: 52.81 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 6.43e-05/0.729, allocations: 25.7 kB / 0.743 GB, free: 52.78 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000945/0.73, allocations: 3.033 MB / 0.7459 GB, free: 50.04 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002945/0.7303, allocations: 0.6237 MB / 0.7465 GB, free: 49.48 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000153/0.7304, allocations: 0 / 0.7465 GB, free: 49.48 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002111/0.7307, allocations: 0.5683 MB / 0.7471 GB, free: 48.98 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001546/0.7322, allocations: 1.526 MB / 0.7486 GB, free: 47.61 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002675/0.7349, allocations: 5.46 MB / 0.7539 GB, free: 40.41 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002589/0.7375, allocations: 2.905 MB / 0.7567 GB, free: 37.93 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-05/0.7375, allocations: 40 kB / 0.7568 GB, free: 37.89 MB / 474.7 MB Notification: Performance of matching and sorting (n=811) (initialization): time 0.006422/0.744, allocations: 6.012 MB / 0.7627 GB, free: 32.57 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.142e-05/0.744, allocations: 4 kB / 0.7627 GB, free: 32.56 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.079e-05/0.7441, allocations: 147.9 kB / 0.7628 GB, free: 32.42 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001265/0.7442, allocations: 211.5 kB / 0.763 GB, free: 32.21 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00363/0.7478, allocations: 1.477 MB / 0.7644 GB, free: 30.91 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001188/0.748, allocations: 279.9 kB / 0.7647 GB, free: 30.66 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003387/0.7514, allocations: 243.4 kB / 0.7649 GB, free: 30.46 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003225/0.7517, allocations: 390.1 kB / 0.7653 GB, free: 30.08 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 645 * 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 (787): * Single equations (assignments): 784 * 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.0004288/0.7521, allocations: 453.3 kB / 0.7657 GB, free: 29.63 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003201/0.7525, allocations: 324.5 kB / 0.7661 GB, free: 29.31 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001719/0.7542, allocations: 1.229 MB / 0.7673 GB, free: 28.25 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.128e-05/0.7542, allocations: 16 kB / 0.7673 GB, free: 28.24 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.168e-05/0.7542, allocations: 0 / 0.7673 GB, free: 28.24 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.516e-05/0.7543, allocations: 10.92 kB / 0.7673 GB, free: 28.23 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006444/0.7607, allocations: 4.815 MB / 0.772 GB, free: 23.97 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.426e-05/0.7607, allocations: 16 kB / 0.772 GB, free: 23.96 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009024/0.7616, allocations: 278.2 kB / 0.7723 GB, free: 23.72 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.141e-05/0.7617, allocations: 28 kB / 0.7723 GB, free: 23.69 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.351e-05/0.7617, allocations: 29.36 kB / 0.7723 GB, free: 23.66 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.921e-05/0.7618, allocations: 35.77 kB / 0.7724 GB, free: 23.63 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.187e-05/0.7618, allocations: 28.44 kB / 0.7724 GB, free: 23.61 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002679/0.7645, allocations: 5.079 MB / 0.7773 GB, free: 18.1 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006778/0.7652, allocations: 0.4927 MB / 0.7778 GB, free: 17.61 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003352/0.7655, allocations: 28.22 kB / 0.7778 GB, free: 17.59 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00116/0.7667, allocations: 65.23 kB / 0.7779 GB, free: 17.54 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000126/0.7668, allocations: 136.4 kB / 0.778 GB, free: 17.44 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.405e-05/0.7669, allocations: 67.7 kB / 0.7781 GB, free: 17.38 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.002103/0.769, allocations: 2.066 MB / 0.7801 GB, free: 15.59 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003741/0.7727, allocations: 0.7786 MB / 0.7809 GB, free: 14.81 MB / 474.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 () * 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.0002794/0.773, allocations: 181.9 kB / 0.7811 GB, free: 14.63 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003843/0.7769, allocations: 3.491 MB / 0.7845 GB, free: 11.45 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.7769, allocations: 4.844 kB / 0.7845 GB, free: 11.45 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007265/0.7776, allocations: 0.7176 MB / 0.7852 GB, free: 10.79 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001585/0.7792, allocations: 357.8 kB / 0.7855 GB, free: 10.48 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01026/0.7895, allocations: 7.196 MB / 0.7925 GB, free: 3.559 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003071/0.7926, allocations: 3.549 MB / 0.796 GB, free: 15.98 MB / 490.7 MB Notification: Performance of SimCode: time 6.31e-07/0.7926, allocations: 0 / 0.796 GB, free: 15.98 MB / 490.7 MB Notification: Performance of Templates: time 0.05106/0.8437, allocations: 27.02 MB / 0.8224 GB, free: 5.629 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring_res.mat","/var/lib/jenkins/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_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches