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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001018/0.001018, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 225.6 MB / 234.8 MB, free: 3.293 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000915/0.000915, allocations: 96.36 kB / 286.7 MB, free: 5.273 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2046/0.2046, allocations: 45.14 MB / 383.8 MB, free: 296 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.566e-05/1.56e-05, allocations: 4 kB / 453.2 MB, free: 75.83 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1101, allocations: 63.24 MB / 0.5044 GB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3974/0.5076, allocations: 110.1 MB / 0.6119 GB, free: 8.762 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002154/0.5078, allocations: 79.58 kB / 0.6119 GB, free: 8.723 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3547/0.8625, allocations: 141.7 MB / 0.7504 GB, free: 2.66 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.104e-06/0.8626, allocations: 4 kB / 0.7504 GB, free: 2.656 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.000438/0.863, allocations: 140 kB / 0.7505 GB, free: 2.52 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.4782/1.341, allocations: 6.438 MB / 0.7568 GB, free: 107.9 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/1.341, allocations: 9.031 kB / 0.7568 GB, free: 107.9 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01636/1.358, allocations: 3.549 MB / 0.7603 GB, free: 107.4 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01606/1.374, allocations: 6.311 MB / 0.7664 GB, free: 107.1 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004492/1.374, allocations: 253.8 kB / 0.7667 GB, free: 107.1 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003018/1.377, allocations: 448.6 kB / 0.7671 GB, free: 107.1 MB / 0.5262 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01744/1.395, allocations: 10.76 MB / 0.7776 GB, free: 107 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0288/1.424, allocations: 15.81 MB / 0.793 GB, free: 102.8 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003909/1.424, allocations: 94.72 kB / 0.7931 GB, free: 102.8 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001735/1.426, allocations: 48.81 kB / 0.7932 GB, free: 102.8 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002452/1.428, allocations: 1.823 MB / 0.795 GB, free: 102.7 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06765/1.496, allocations: 75.24 MB / 0.8684 GB, free: 51.41 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004427/1.5, allocations: 3.142 MB / 0.8715 GB, free: 49.78 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002191/1.503, allocations: 1.726 MB / 0.8732 GB, free: 49.11 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00112/1.504, allocations: 1.769 MB / 0.8749 GB, free: 47.54 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002406/1.506, allocations: 1.87 MB / 0.8767 GB, free: 46.89 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=267): time 4.588e-06/1.506, allocations: 0 / 0.8767 GB, free: 46.89 MB / 0.5262 GB Notification: Performance of matching and sorting (n=295): time 0.02947/1.536, allocations: 15.47 MB / 0.8918 GB, free: 39.96 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.856e-05/1.536, allocations: 158.5 kB / 0.892 GB, free: 39.78 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004633/1.54, allocations: 4.258 MB / 0.8961 GB, free: 36.05 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.0003333/1.541, allocations: 29.7 kB / 0.8962 GB, free: 36.02 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.002913/1.544, allocations: 5.115 MB / 0.9012 GB, free: 31.38 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009026/1.545, allocations: 1.095 MB / 0.9022 GB, free: 30.39 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002592/1.545, allocations: 2.938 kB / 0.9022 GB, free: 30.39 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.0003511/1.545, allocations: 0.7032 MB / 0.9029 GB, free: 29.79 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002583/1.548, allocations: 2.319 MB / 0.9052 GB, free: 27.71 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004356/1.552, allocations: 7.955 MB / 0.913 GB, free: 17.46 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004521/1.557, allocations: 4.254 MB / 0.9171 GB, free: 13.85 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.992e-05/1.557, allocations: 58.34 kB / 0.9172 GB, free: 13.79 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1231) (initialization): time 0.01584/1.573, allocations: 9.04 MB / 0.926 GB, free: 5.789 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001278/1.573, allocations: 125.9 kB / 0.9261 GB, free: 5.66 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002033/1.573, allocations: 204 kB / 0.9263 GB, free: 5.461 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002199/1.573, allocations: 296 kB / 0.9266 GB, free: 5.172 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007257/1.58, allocations: 2.303 MB / 0.9288 GB, free: 3.16 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002195/1.581, allocations: 400.8 kB / 0.9292 GB, free: 2.809 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00682/1.587, allocations: 424.1 kB / 0.9296 GB, free: 2.473 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001485/1.589, allocations: 0.5505 MB / 0.9302 GB, free: 1.926 MB / 0.5262 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 (1206): * Single equations (assignments): 1202 * 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.001912/1.591, allocations: 0.6244 MB / 0.9308 GB, free: 1.301 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001006/1.592, allocations: 473.3 kB / 0.9312 GB, free: 0.8359 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006515/1.598, allocations: 2.686 MB / 0.9339 GB, free: 15.03 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.266e-05/1.599, allocations: 31.75 kB / 0.9339 GB, free: 15 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.294e-05/1.599, allocations: 7.938 kB / 0.9339 GB, free: 15 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.097e-05/1.599, allocations: 14.58 kB / 0.9339 GB, free: 15 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02218/1.621, allocations: 10.79 MB / 0.9445 GB, free: 5.629 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.074e-05/1.621, allocations: 32 kB / 0.9445 GB, free: 5.598 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00205/1.623, allocations: 0.5316 MB / 0.945 GB, free: 5.141 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.896e-05/1.623, allocations: 51.94 kB / 0.9451 GB, free: 5.09 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002027/1.623, allocations: 47.56 kB / 0.9451 GB, free: 5.047 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.334e-05/1.623, allocations: 66.64 kB / 0.9452 GB, free: 4.992 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.979e-05/1.623, allocations: 47.81 kB / 0.9452 GB, free: 4.945 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008492/1.632, allocations: 9.324 MB / 0.9543 GB, free: 10.72 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001421/1.633, allocations: 0.5165 MB / 0.9548 GB, free: 10.2 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001/1.634, allocations: 48.11 kB / 0.9549 GB, free: 10.16 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002626/1.637, allocations: 166.4 kB / 0.955 GB, free: 10.04 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003445/1.637, allocations: 275.8 kB / 0.9553 GB, free: 9.832 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002368/1.638, allocations: 115.9 kB / 0.9554 GB, free: 9.723 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.005789/1.643, allocations: 2.772 MB / 0.9581 GB, free: 7.328 MB / 0.5574 GB Notification: Performance of sort global known variables: time 3.2e-07/1.643, allocations: 0 / 0.9581 GB, free: 7.328 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.009806/1.653, allocations: 1.257 MB / 0.9593 GB, free: 6.082 MB / 0.5574 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 137 * 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 (273): * Single equations (assignments): 268 * 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.0008123/1.654, allocations: 225.1 kB / 0.9595 GB, free: 5.871 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.009637/1.664, allocations: 5.359 MB / 0.9648 GB, free: 0.9688 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 2.604e-05/1.664, allocations: 8 kB / 0.9648 GB, free: 0.9609 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.26/1.924, allocations: 1.449 MB / 0.9662 GB, free: 125.3 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003341/1.927, allocations: 0.5623 MB / 0.9667 GB, free: 125.3 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02136/1.948, allocations: 11.81 MB / 0.9783 GB, free: 121.9 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00648/1.955, allocations: 5.019 MB / 0.9832 GB, free: 121.1 MB / 0.5574 GB Notification: Performance of simCode: alias equations: time 0.005984/1.961, allocations: 2.648 MB / 0.9858 GB, free: 121 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006923/1.962, allocations: 345.5 kB / 0.9861 GB, free: 121 MB / 0.5574 GB Notification: Performance of SimCode: time 6.31e-07/1.962, allocations: 3.75 kB / 0.9861 GB, free: 121 MB / 0.5574 GB Notification: Performance of Templates: time 0.0617/2.023, allocations: 37.6 MB / 1.023 GB, free: 119 MB / 0.5574 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