Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.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.Damper2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heatCapacitor.T|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v|prismatic2.s|prismatic2.v",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2") translateModel(ModelicaTest.MultiBody.Forces.Damper2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heatCapacitor.T|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v|prismatic2.s|prismatic2.v",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2") [: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 trunk/package.mo): time 0.001707/0.001707, allocations: 205 kB / 8.54 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 225.5 MB / 234.4 MB, free: 3.332 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008553/0.0008553, allocations: 102.5 kB / 286.3 MB, free: 5.254 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2092/0.2092, allocations: 45.14 MB / 383.3 MB, free: 0.5234 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 7.163e-06/7.204e-06, allocations: 0 / 452.6 MB, free: 76.14 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1082, allocations: 63.24 MB / 0.5038 GB, free: 12.98 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3553/0.4635, allocations: 110 MB / 0.6112 GB, free: 9.125 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000232/0.4638, allocations: 76.75 kB / 0.6113 GB, free: 9.09 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.3488/0.8126, allocations: 140.1 MB / 0.7481 GB, free: 4.781 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002905/0.8129, allocations: 144 kB / 0.7482 GB, free: 4.641 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2609 * Number of variables: 2609 Notification: Performance of Generate backend data structure: time 0.1781/0.991, allocations: 6.397 MB / 0.7545 GB, free: 167.8 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.991, allocations: 8.719 kB / 0.7545 GB, free: 167.8 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01385/1.005, allocations: 2.977 MB / 0.7574 GB, free: 167.3 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01321/1.018, allocations: 6.359 MB / 0.7636 GB, free: 167 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002679/1.018, allocations: 250.8 kB / 0.7639 GB, free: 167 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002156/1.021, allocations: 449.7 kB / 0.7643 GB, free: 166.9 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01732/1.038, allocations: 11.13 MB / 0.7752 GB, free: 166.9 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02433/1.062, allocations: 16.15 MB / 0.7909 GB, free: 162.6 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002216/1.063, allocations: 90.34 kB / 0.791 GB, free: 162.6 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009699/1.064, allocations: 48.69 kB / 0.7911 GB, free: 162.6 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00256/1.066, allocations: 1.918 MB / 0.7929 GB, free: 162.6 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07213/1.138, allocations: 76.15 MB / 0.8673 GB, free: 111.5 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003606/1.142, allocations: 2.751 MB / 0.87 GB, free: 110.1 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002729/1.145, allocations: 1.928 MB / 0.8719 GB, free: 109.4 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01279/1.157, allocations: 8.536 MB / 0.8802 GB, free: 104 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00206/1.16, allocations: 1.844 MB / 0.882 GB, free: 102.5 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=257): time 4.739e-06/1.16, allocations: 3.859 kB / 0.882 GB, free: 102.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=283): time 0.03122/1.191, allocations: 15.34 MB / 0.897 GB, free: 89.36 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.419e-05/1.191, allocations: 162.5 kB / 0.8971 GB, free: 89.16 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005331/1.196, allocations: 4.316 MB / 0.9014 GB, free: 85.38 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000256/1.197, allocations: 29.7 kB / 0.9014 GB, free: 85.34 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002818/1.199, allocations: 4.831 MB / 0.9061 GB, free: 80.99 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008425/1.2, allocations: 1.058 MB / 0.9071 GB, free: 80.04 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002777/1.201, allocations: 4 kB / 0.9071 GB, free: 80.04 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003445/1.201, allocations: 0.6953 MB / 0.9078 GB, free: 79.45 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002735/1.204, allocations: 2.361 MB / 0.9101 GB, free: 77.31 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004547/1.208, allocations: 8.007 MB / 0.9179 GB, free: 67 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004573/1.213, allocations: 4.335 MB / 0.9222 GB, free: 63.29 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.878e-05/1.213, allocations: 60 kB / 0.9222 GB, free: 63.23 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1219) (initialization): time 0.01146/1.224, allocations: 9.036 MB / 0.9311 GB, free: 55.22 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/1.224, allocations: 8 kB / 0.9311 GB, free: 55.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001365/1.224, allocations: 200 kB / 0.9313 GB, free: 55.02 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001978/1.225, allocations: 296 kB / 0.9315 GB, free: 54.73 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006411/1.231, allocations: 2.284 MB / 0.9338 GB, free: 52.72 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000165/1.231, allocations: 398.5 kB / 0.9342 GB, free: 52.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005755/1.237, allocations: 396.8 kB / 0.9345 GB, free: 52.05 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005934/1.238, allocations: 0.5498 MB / 0.9351 GB, free: 51.5 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 924 * Number of states: 0 () * Number of discrete variables: 83 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],force2.connectionLineColor[3],force2.connectionLineColor[2],force2.connectionLineColor[1],force2.forceArrow.arrowLine.twoHeadedArrow,force2.forceArrow.headAtOrigin,force2.forceColor[3],force2.forceColor[2],force2.forceColor[1],prismatic2.boxColor[3],prismatic2.boxColor[2],prismatic2.boxColor[1],damper2.color_b[3],damper2.color_b[2],damper2.color_b[1],damper2.color_a[3],damper2.color_a[2],damper2.color_a[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],force1.connectionLineColor[3],force1.connectionLineColor[2],force1.connectionLineColor[1],force1.forceArrow.arrowLine.twoHeadedArrow,force1.forceArrow.headAtOrigin,force1.forceColor[3],force1.forceColor[2],force1.forceColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],force.connectionLineColor[3],force.connectionLineColor[2],force.connectionLineColor[1],force.forceArrow.arrowLine.twoHeadedArrow,force.forceArrow.headAtOrigin,force.forceColor[3],force.forceColor[2],force.forceColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[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 (1194): * Single equations (assignments): 1190 * Array equations: 3 * Algorithm blocks: 1 * 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.0007709/1.238, allocations: 0.6239 MB / 0.9357 GB, free: 50.88 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004424/1.239, allocations: 469.9 kB / 0.9361 GB, free: 50.41 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003477/1.242, allocations: 2.566 MB / 0.9386 GB, free: 48.23 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.899e-05/1.242, allocations: 28 kB / 0.9387 GB, free: 48.2 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.318e-06/1.242, allocations: 0 / 0.9387 GB, free: 48.2 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.023e-05/1.242, allocations: 16.8 kB / 0.9387 GB, free: 48.2 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01315/1.256, allocations: 9.836 MB / 0.9483 GB, free: 39.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.712e-05/1.256, allocations: 32 kB / 0.9483 GB, free: 39.59 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001891/1.258, allocations: 0.5204 MB / 0.9488 GB, free: 39.14 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.309e-05/1.258, allocations: 44 kB / 0.9489 GB, free: 39.1 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001365/1.258, allocations: 48 kB / 0.9489 GB, free: 39.05 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.748e-05/1.258, allocations: 59.27 kB / 0.949 GB, free: 39 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.967e-05/1.258, allocations: 43.81 kB / 0.949 GB, free: 38.96 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005453/1.263, allocations: 8.998 MB / 0.9578 GB, free: 29.12 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001041/1.264, allocations: 0.5131 MB / 0.9583 GB, free: 28.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005479/1.265, allocations: 43.56 kB / 0.9583 GB, free: 28.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002054/1.267, allocations: 166 kB / 0.9585 GB, free: 28.43 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002512/1.267, allocations: 224.7 kB / 0.9587 GB, free: 28.27 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001466/1.267, allocations: 115.3 kB / 0.9588 GB, free: 28.16 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.003827/1.271, allocations: 2.832 MB / 0.9616 GB, free: 25.71 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00638/1.278, allocations: 1.244 MB / 0.9628 GB, free: 24.47 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 131 * Number of states: 7 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.v,heatCapacitor.T,prismatic2.s,prismatic2.v) * Number of discrete variables: 3 ($whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (261): * Single equations (assignments): 256 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0004443/1.278, allocations: 222.6 kB / 0.963 GB, free: 24.27 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.006735/1.285, allocations: 5.431 MB / 0.9683 GB, free: 19.28 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.438e-06/1.285, allocations: 10.56 kB / 0.9683 GB, free: 19.27 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002047/1.287, allocations: 1.425 MB / 0.9697 GB, free: 17.96 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002466/1.289, allocations: 0.5456 MB / 0.9702 GB, free: 17.5 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01914/1.308, allocations: 11.83 MB / 0.9818 GB, free: 6.211 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007115/1.316, allocations: 5.421 MB / 0.9871 GB, free: 0.7969 MB / 0.5261 GB Notification: Performance of SimCode: time 8.21e-07/1.316, allocations: 0 / 0.9871 GB, free: 0.7969 MB / 0.5261 GB Notification: Performance of Templates: time 0.2493/1.565, allocations: 42.77 MB / 1.029 GB, free: 142.4 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Damper2/Damper2.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches