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/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001339/0.001339, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001531/0.001532, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2719/0.2719, allocations: 46.09 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00137/0.00137, allocations: 76.53 kB / 417.6 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.132, allocations: 62.46 MB / 480 MB, free: 5.289 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.01653/0.1486, allocations: 16.12 MB / 496.1 MB, free: 5.098 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01064/0.1592, allocations: 5.04 MB / 0.4894 GB, free: 44 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003169/0.1624, allocations: 99.86 kB / 0.4895 GB, free: 15.94 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008902/0.1714, allocations: 5.159 MB / 0.4946 GB, free: 10.77 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00957/0.181, allocations: 2.47 MB / 0.497 GB, free: 8.289 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003522/0.1846, allocations: 1.186 MB / 0.4981 GB, free: 7.102 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01235/0.1969, allocations: 6.717 MB / 0.5047 GB, free: 384 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2914/0.4884, allocations: 6.356 MB / 0.5109 GB, free: 12.36 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006393/0.4949, allocations: 2.596 MB / 0.5134 GB, free: 12.22 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008151/0.503, allocations: 3.691 MB / 0.517 GB, free: 11.85 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003578/0.5067, allocations: 0.5798 MB / 0.5176 GB, free: 11.85 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005452/0.5121, allocations: 1.269 MB / 0.5189 GB, free: 11.85 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00621/0.5184, allocations: 3.211 MB / 0.522 GB, free: 11.54 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007755/0.5261, allocations: 3.668 MB / 0.5256 GB, free: 9.109 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0127/0.5389, allocations: 10.74 MB / 0.5361 GB, free: 3.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.5389, allocations: 4 kB / 0.5361 GB, free: 3.977 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.5389, allocations: 0 / 0.5361 GB, free: 3.977 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000466/0.5394, allocations: 0 / 0.5361 GB, free: 3.977 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2522 * Number of variables: 2522 Notification: Performance of Generate backend data structure: time 0.01939/0.5588, allocations: 7.663 MB / 0.5435 GB, free: 14.95 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.5588, allocations: 9.625 kB / 0.5436 GB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01076/0.5696, allocations: 2.588 MB / 0.5461 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009093/0.5788, allocations: 3.528 MB / 0.5495 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003778/0.5792, allocations: 442.2 kB / 0.5499 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002633/0.5818, allocations: 0.556 MB / 0.5505 GB, free: 9.996 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04706/0.6289, allocations: 19.79 MB / 0.5698 GB, free: 5.387 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003714/0.6293, allocations: 73.38 kB / 0.5699 GB, free: 5.348 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001711/0.631, allocations: 271 kB / 0.5701 GB, free: 5.141 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005148/0.6362, allocations: 3.15 MB / 0.5732 GB, free: 2.035 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04003/0.6762, allocations: 15.92 MB / 0.5888 GB, free: 2.398 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09337/0.7697, allocations: 64.09 MB / 0.6513 GB, free: 1.52 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01793/0.7876, allocations: 6.399 MB / 0.6576 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00337/0.791, allocations: 2.074 MB / 0.6596 GB, free: 8.906 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01466/0.8057, allocations: 9.216 MB / 0.6686 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01439/0.8201, allocations: 4.194 MB / 0.6727 GB, free: 11.19 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=260): time 4.619e-06/0.8202, allocations: 0 / 0.6727 GB, free: 11.19 MB / 0.5137 GB Notification: Performance of matching and sorting (n=294): time 0.06041/0.8806, allocations: 21.6 MB / 0.6938 GB, free: 5.562 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.667e-05/0.8807, allocations: 164.8 kB / 0.694 GB, free: 5.371 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008249/0.889, allocations: 5.768 MB / 0.6996 GB, free: 15.62 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0006082/0.8896, allocations: 65.7 kB / 0.6997 GB, free: 15.55 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004223/0.8939, allocations: 4.934 MB / 0.7045 GB, free: 10.62 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001509/0.8954, allocations: 1.138 MB / 0.7056 GB, free: 9.496 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002411/0.8978, allocations: 1.817 MB / 0.7074 GB, free: 7.664 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001165/0.8979, allocations: 301.1 kB / 0.7077 GB, free: 7.367 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004501/0.9024, allocations: 2.677 MB / 0.7103 GB, free: 4.684 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3044/1.207, allocations: 8.233 MB / 0.7183 GB, free: 182.4 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01599/1.223, allocations: 11.85 MB / 0.7299 GB, free: 173.1 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000427/1.223, allocations: 55.97 kB / 0.7299 GB, free: 173.1 MB / 0.545 GB Notification: Performance of matching and sorting (n=1212) (initialization): time 0.025/1.248, allocations: 10.65 MB / 0.7403 GB, free: 169.3 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003145/1.249, allocations: 117.9 kB / 0.7404 GB, free: 169.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004603/1.249, allocations: 200.1 kB / 0.7406 GB, free: 169.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004671/1.25, allocations: 265 kB / 0.7409 GB, free: 169.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008146/1.258, allocations: 2.222 MB / 0.7431 GB, free: 169 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004457/1.258, allocations: 387.6 kB / 0.7434 GB, free: 169 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008152/1.266, allocations: 470.7 kB / 0.7439 GB, free: 168.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001859/1.268, allocations: 0.5482 MB / 0.7444 GB, free: 168.7 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 895 * Number of states: 0 () * Number of discrete variables: 83 (trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1,force2.forceArrow.twoHeadedArrow,force2.forceArrow.headAtOrigin,force1.forceArrow.twoHeadedArrow,force1.forceArrow.headAtOrigin,force.forceArrow.twoHeadedArrow,force.forceArrow.headAtOrigin,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.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.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.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1187): * Single equations (assignments): 1183 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007986/1.276, allocations: 3.16 MB / 0.7475 GB, free: 167.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009809/1.277, allocations: 0.5105 MB / 0.748 GB, free: 167.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005357/1.283, allocations: 3.06 MB / 0.751 GB, free: 166.2 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.909e-05/1.283, allocations: 31.41 kB / 0.751 GB, free: 166.2 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.203e-05/1.283, allocations: 3.094 kB / 0.751 GB, free: 166.2 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.332e-05/1.283, allocations: 12.84 kB / 0.751 GB, free: 166.2 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02029/1.303, allocations: 12.28 MB / 0.763 GB, free: 160.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.35e-05/1.303, allocations: 28 kB / 0.763 GB, free: 160.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002023/1.305, allocations: 0.5914 MB / 0.7636 GB, free: 159.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.288e-05/1.305, allocations: 44 kB / 0.7637 GB, free: 159.9 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001403/1.305, allocations: 95.69 kB / 0.7638 GB, free: 159.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.533e-05/1.305, allocations: 63.36 kB / 0.7638 GB, free: 159.7 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.516e-05/1.305, allocations: 47.81 kB / 0.7639 GB, free: 159.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006305/1.312, allocations: 5.515 MB / 0.7692 GB, free: 154.4 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001876/1.314, allocations: 0.5858 MB / 0.7698 GB, free: 153.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007786/1.314, allocations: 95.48 kB / 0.7699 GB, free: 153.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002056/1.317, allocations: 151.1 kB / 0.7701 GB, free: 153.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003491/1.317, allocations: 291.4 kB / 0.7703 GB, free: 153.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001517/1.317, allocations: 115.7 kB / 0.7704 GB, free: 153.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005632/1.323, allocations: 3.588 MB / 0.7739 GB, free: 150.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.5e-07/1.323, allocations: 0 / 0.7739 GB, free: 150.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008242/1.331, allocations: 1.414 MB / 0.7753 GB, free: 148.9 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 142 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (278): * Single equations (assignments): 273 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005159/1.332, allocations: 264.7 kB / 0.7756 GB, free: 148.7 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01075/1.342, allocations: 6.712 MB / 0.7821 GB, free: 142.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-05/1.342, allocations: 4 kB / 0.7821 GB, free: 142.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002896/1.345, allocations: 1.638 MB / 0.7837 GB, free: 141.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004817/1.35, allocations: 0.7589 MB / 0.7845 GB, free: 140.6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02783/1.378, allocations: 14.47 MB / 0.7986 GB, free: 126.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005986/1.384, allocations: 4.76 MB / 0.8033 GB, free: 121.6 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006478/1.39, allocations: 2.575 MB / 0.8058 GB, free: 119 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00114/1.392, allocations: 383.4 kB / 0.8061 GB, free: 118.6 MB / 0.545 GB Notification: Performance of SimCode: time 1.773e-06/1.392, allocations: 0 / 0.8061 GB, free: 118.6 MB / 0.545 GB Notification: Performance of Templates: time 0.08461/1.476, allocations: 47.41 MB / 0.8524 GB, free: 71.44 MB / 0.545 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches