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.001226/0.001226, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001222/0.001222, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.4 MB / 247.5 MB, free: 10.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1996/0.1996, allocations: 46.1 MB / 344.9 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 83.8 kB / 419 MB, free: 19.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1068, allocations: 62.44 MB / 481.5 MB, free: 4.543 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.01547/0.1223, allocations: 16.13 MB / 497.6 MB, free: 4.34 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009323/0.1316, allocations: 5.036 MB / 0.4908 GB, free: 15.29 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001624/0.1333, allocations: 99.75 kB / 0.4909 GB, free: 15.2 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008072/0.1414, allocations: 5.159 MB / 0.496 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005801/0.1472, allocations: 2.474 MB / 0.4984 GB, free: 7.535 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00241/0.1497, allocations: 1.182 MB / 0.4995 GB, free: 6.352 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2042/0.3538, allocations: 6.713 MB / 0.5061 GB, free: 13.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009432/0.3633, allocations: 6.354 MB / 0.5123 GB, free: 12.81 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004412/0.3678, allocations: 2.601 MB / 0.5148 GB, free: 12.67 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005938/0.3737, allocations: 3.691 MB / 0.5184 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00239/0.3762, allocations: 0.5785 MB / 0.519 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004155/0.3803, allocations: 1.268 MB / 0.5202 GB, free: 12.29 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004577/0.3849, allocations: 3.213 MB / 0.5234 GB, free: 11.87 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004691/0.3896, allocations: 3.669 MB / 0.527 GB, free: 9.332 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01015/0.3998, allocations: 11.12 MB / 0.5378 GB, free: 4 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.3998, allocations: 0 / 0.5378 GB, free: 4 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.644e-06/0.3998, allocations: 5.906 kB / 0.5378 GB, free: 4 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003225/0.4002, allocations: 0 / 0.5378 GB, free: 4 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.01393/0.4141, allocations: 7.666 MB / 0.5453 GB, free: 14.97 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.4142, allocations: 9.281 kB / 0.5453 GB, free: 14.97 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009817/0.424, allocations: 2.586 MB / 0.5479 GB, free: 13.45 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007749/0.4318, allocations: 3.597 MB / 0.5514 GB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003303/0.4321, allocations: 428.8 kB / 0.5518 GB, free: 9.703 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00131/0.4335, allocations: 0.5536 MB / 0.5523 GB, free: 9.207 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03764/0.4711, allocations: 19.78 MB / 0.5716 GB, free: 4.594 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002632/0.4714, allocations: 79.98 kB / 0.5717 GB, free: 4.551 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009006/0.4723, allocations: 271.8 kB / 0.572 GB, free: 4.344 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004738/0.4771, allocations: 3.149 MB / 0.575 GB, free: 1.234 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0349/0.512, allocations: 15.92 MB / 0.5906 GB, free: 1.605 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07834/0.5904, allocations: 63.79 MB / 0.6529 GB, free: 1.016 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01731/0.6077, allocations: 6.4 MB / 0.6591 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003781/0.6116, allocations: 2.081 MB / 0.6612 GB, free: 8.398 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01605/0.6276, allocations: 9.202 MB / 0.6702 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01285/0.6405, allocations: 4.197 MB / 0.6743 GB, free: 10.7 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=260): time 5.22e-06/0.6406, allocations: 4 kB / 0.6743 GB, free: 10.7 MB / 0.5137 GB Notification: Performance of matching and sorting (n=294): time 0.05563/0.6962, allocations: 21.59 MB / 0.6953 GB, free: 5.07 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.703e-05/0.6963, allocations: 161.4 kB / 0.6955 GB, free: 4.883 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007258/0.7036, allocations: 5.768 MB / 0.7011 GB, free: 15.14 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0003448/0.704, allocations: 73.7 kB / 0.7012 GB, free: 15.06 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003657/0.7076, allocations: 4.931 MB / 0.706 GB, free: 10.13 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001045/0.7087, allocations: 1.13 MB / 0.7071 GB, free: 9.008 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002104/0.7108, allocations: 1.817 MB / 0.7089 GB, free: 7.176 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.354e-05/0.7109, allocations: 305.1 kB / 0.7092 GB, free: 6.875 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00409/0.715, allocations: 2.673 MB / 0.7118 GB, free: 4.195 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1959/0.9109, allocations: 8.236 MB / 0.7198 GB, free: 182.2 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01352/0.9245, allocations: 11.85 MB / 0.7314 GB, free: 172.8 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003198/0.9248, allocations: 55.41 kB / 0.7315 GB, free: 172.8 MB / 0.545 GB Notification: Performance of matching and sorting (n=1212) (initialization): time 0.01999/0.9448, allocations: 10.65 MB / 0.7419 GB, free: 169.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002142/0.9451, allocations: 117.6 kB / 0.742 GB, free: 169 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003272/0.9454, allocations: 195.9 kB / 0.7422 GB, free: 169 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003946/0.9458, allocations: 270.1 kB / 0.7424 GB, free: 169 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006755/0.9526, allocations: 2.223 MB / 0.7446 GB, free: 168.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000313/0.9529, allocations: 385.4 kB / 0.745 GB, free: 168.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005689/0.9586, allocations: 473.8 kB / 0.7454 GB, free: 168.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009467/0.9596, allocations: 0.5477 MB / 0.7459 GB, free: 168.4 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.005524/0.9651, allocations: 3.159 MB / 0.749 GB, free: 167.1 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007721/0.9659, allocations: 0.5104 MB / 0.7495 GB, free: 167.1 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004642/0.9706, allocations: 3.066 MB / 0.7525 GB, free: 165.9 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.331e-05/0.9706, allocations: 31.28 kB / 0.7526 GB, free: 165.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.017e-05/0.9706, allocations: 0 / 0.7526 GB, free: 165.9 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.532e-05/0.9707, allocations: 17.64 kB / 0.7526 GB, free: 165.9 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01799/0.9887, allocations: 12.25 MB / 0.7645 GB, free: 160.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.163e-05/0.9887, allocations: 36.25 kB / 0.7646 GB, free: 160.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001907/0.9906, allocations: 0.5874 MB / 0.7651 GB, free: 160.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.961e-05/0.9907, allocations: 44 kB / 0.7652 GB, free: 160.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001334/0.9908, allocations: 95.69 kB / 0.7653 GB, free: 160 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.012e-05/0.9908, allocations: 67.36 kB / 0.7653 GB, free: 160 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.86e-05/0.9909, allocations: 47.81 kB / 0.7654 GB, free: 159.9 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005649/0.9965, allocations: 5.508 MB / 0.7708 GB, free: 154.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001156/0.9977, allocations: 0.5861 MB / 0.7713 GB, free: 154 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004904/0.9982, allocations: 91.34 kB / 0.7714 GB, free: 154 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001768/1, allocations: 161.5 kB / 0.7716 GB, free: 153.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003077/1, allocations: 280.3 kB / 0.7718 GB, free: 153.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001443/1, allocations: 120.8 kB / 0.772 GB, free: 153.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005248/1.006, allocations: 3.585 MB / 0.7755 GB, free: 150.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.51e-07/1.006, allocations: 0 / 0.7755 GB, free: 150.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008348/1.014, allocations: 1.419 MB / 0.7768 GB, free: 149.2 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.000582/1.015, allocations: 258.5 kB / 0.7771 GB, free: 148.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00862/1.023, allocations: 6.202 MB / 0.7831 GB, free: 143.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.26e-05/1.023, allocations: 8.062 kB / 0.7832 GB, free: 143.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00241/1.026, allocations: 1.629 MB / 0.7847 GB, free: 142 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003558/1.029, allocations: 0.7571 MB / 0.7855 GB, free: 141.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02021/1.05, allocations: 14.28 MB / 0.7994 GB, free: 127.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004337/1.054, allocations: 4.764 MB / 0.8041 GB, free: 122.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004687/1.059, allocations: 2.577 MB / 0.8066 GB, free: 119.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007557/1.059, allocations: 387.4 kB / 0.807 GB, free: 119.4 MB / 0.545 GB Notification: Performance of SimCode: time 8.42e-07/1.059, allocations: 0 / 0.807 GB, free: 119.4 MB / 0.545 GB Notification: Performance of Templates: time 0.06771/1.127, allocations: 39.14 MB / 0.8452 GB, free: 80.69 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Damper2/Damper2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Damper2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches