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.0008342/0.0008342, allocations: 94.45 kB / 18 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001122/0.001122, allocations: 206.7 kB / 18.94 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 227.7 MB / 247.5 MB, free: 9.684 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1959/0.1959, allocations: 46.19 MB / 345.9 MB, free: 11.18 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002747/0.0002749, allocations: 8.281 kB / 420.2 MB, free: 19.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1022, allocations: 63.56 MB / 483.7 MB, free: 4.148 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.2686/0.3708, allocations: 73.26 MB / 0.5439 GB, free: 1.848 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0326/0.4034, allocations: 14.49 MB / 0.5581 GB, free: 7.914 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01402/0.4175, allocations: 323 kB / 0.5584 GB, free: 7.863 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002501/0.42, allocations: 0.6389 MB / 0.559 GB, free: 7.359 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00693/0.427, allocations: 2.335 MB / 0.5613 GB, free: 5.707 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002879/0.4299, allocations: 1.09 MB / 0.5624 GB, free: 4.98 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01218/0.4421, allocations: 9.669 MB / 0.5718 GB, free: 12.66 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0152/0.4574, allocations: 9.291 MB / 0.5809 GB, free: 3.277 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005021/0.4624, allocations: 1.84 MB / 0.5827 GB, free: 1.43 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005969/0.4684, allocations: 3.321 MB / 0.5859 GB, free: 14.1 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001616/0.4701, allocations: 248 kB / 0.5862 GB, free: 13.86 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002995/0.4731, allocations: 0.9907 MB / 0.5871 GB, free: 12.86 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003893/0.477, allocations: 2.836 MB / 0.5899 GB, free: 10.02 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005443/0.4825, allocations: 3.215 MB / 0.593 GB, free: 6.777 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01021/0.4927, allocations: 8.503 MB / 0.6013 GB, free: 14.25 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.4928, allocations: 0 / 0.6013 GB, free: 14.25 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.397e-06/0.4928, allocations: 4 kB / 0.6013 GB, free: 14.25 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004605/0.4933, allocations: 0 / 0.6013 GB, free: 14.25 MB / 446.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.01434/0.5076, allocations: 6.201 MB / 0.6074 GB, free: 7.965 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.5077, allocations: 8.875 kB / 0.6074 GB, free: 7.957 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01088/0.5186, allocations: 2.647 MB / 0.61 GB, free: 5.297 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007541/0.5261, allocations: 3.533 MB / 0.6134 GB, free: 1.703 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000488/0.5267, allocations: 431.5 kB / 0.6139 GB, free: 1.281 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002059/0.5287, allocations: 0.562 MB / 0.6144 GB, free: 0.7188 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0446/0.5734, allocations: 19.87 MB / 0.6338 GB, free: 11.71 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003446/0.5738, allocations: 71.39 kB / 0.6339 GB, free: 11.64 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001861/0.5756, allocations: 263.8 kB / 0.6341 GB, free: 11.39 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005252/0.5809, allocations: 3.157 MB / 0.6372 GB, free: 8.227 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03824/0.6192, allocations: 16.01 MB / 0.6528 GB, free: 8.188 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5197/1.139, allocations: 64.06 MB / 0.7154 GB, free: 139 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01845/1.157, allocations: 6.474 MB / 0.7217 GB, free: 138.4 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003326/1.161, allocations: 2.101 MB / 0.7238 GB, free: 138.3 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01383/1.175, allocations: 9.227 MB / 0.7328 GB, free: 134.9 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01336/1.188, allocations: 4.248 MB / 0.7369 GB, free: 134.3 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=260): time 7.474e-06/1.188, allocations: 0 / 0.7369 GB, free: 134.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=294): time 0.05663/1.245, allocations: 21.84 MB / 0.7583 GB, free: 122.4 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.21e-05/1.245, allocations: 159.1 kB / 0.7584 GB, free: 122.2 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007445/1.252, allocations: 5.771 MB / 0.7641 GB, free: 116.5 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0004268/1.253, allocations: 65.7 kB / 0.7641 GB, free: 116.4 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002949/1.256, allocations: 4.934 MB / 0.7689 GB, free: 111.5 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00105/1.257, allocations: 1.127 MB / 0.77 GB, free: 110.3 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007562/1.258, allocations: 0.7843 MB / 0.7708 GB, free: 109.5 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.331e-05/1.258, allocations: 305.1 kB / 0.7711 GB, free: 109.2 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003818/1.261, allocations: 2.701 MB / 0.7737 GB, free: 106.5 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005492/1.267, allocations: 8.263 MB / 0.7818 GB, free: 95.72 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0109/1.278, allocations: 11.9 MB / 0.7934 GB, free: 81.36 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001463/1.278, allocations: 56 kB / 0.7935 GB, free: 81.31 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1212) (initialization): time 0.01742/1.295, allocations: 10.7 MB / 0.8039 GB, free: 70.6 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002385/1.296, allocations: 117.7 kB / 0.804 GB, free: 70.48 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003359/1.296, allocations: 196 kB / 0.8042 GB, free: 70.29 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002785/1.296, allocations: 268 kB / 0.8045 GB, free: 70.03 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00666/1.303, allocations: 2.238 MB / 0.8067 GB, free: 67.79 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003093/1.303, allocations: 382.5 kB / 0.807 GB, free: 67.41 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00619/1.31, allocations: 487.3 kB / 0.8075 GB, free: 66.93 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001284/1.311, allocations: 0.5488 MB / 0.808 GB, free: 66.39 MB / 0.5294 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.005562/1.317, allocations: 3.152 MB / 0.8111 GB, free: 63.22 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001147/1.318, allocations: 0.509 MB / 0.8116 GB, free: 62.71 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005424/1.323, allocations: 3.108 MB / 0.8146 GB, free: 59.58 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.771e-05/1.323, allocations: 37.16 kB / 0.8147 GB, free: 59.55 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-05/1.323, allocations: 0 / 0.8147 GB, free: 59.55 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.373e-05/1.323, allocations: 15.95 kB / 0.8147 GB, free: 59.53 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01831/1.342, allocations: 12.36 MB / 0.8268 GB, free: 46.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.769e-05/1.342, allocations: 33.62 kB / 0.8268 GB, free: 46.66 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002061/1.344, allocations: 0.624 MB / 0.8274 GB, free: 46.04 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-05/1.344, allocations: 44 kB / 0.8274 GB, free: 46 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001638/1.344, allocations: 95.92 kB / 0.8275 GB, free: 45.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.43e-05/1.344, allocations: 67.72 kB / 0.8276 GB, free: 45.84 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-05/1.344, allocations: 47.81 kB / 0.8276 GB, free: 45.79 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006187/1.35, allocations: 5.581 MB / 0.8331 GB, free: 39.66 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001493/1.352, allocations: 0.5879 MB / 0.8337 GB, free: 39.05 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006982/1.352, allocations: 101.7 kB / 0.8338 GB, free: 38.95 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001994/1.354, allocations: 175.9 kB / 0.8339 GB, free: 38.78 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003106/1.355, allocations: 287.9 kB / 0.8342 GB, free: 38.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001452/1.355, allocations: 120 kB / 0.8343 GB, free: 38.38 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005127/1.36, allocations: 3.582 MB / 0.8378 GB, free: 34.83 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.61e-07/1.36, allocations: 0 / 0.8378 GB, free: 34.83 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007286/1.367, allocations: 1.423 MB / 0.8392 GB, free: 33.41 MB / 0.5294 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.0006023/1.368, allocations: 259.8 kB / 0.8395 GB, free: 33.16 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009361/1.377, allocations: 6.16 MB / 0.8455 GB, free: 27.02 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-05/1.377, allocations: 8 kB / 0.8455 GB, free: 27.01 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002549/1.38, allocations: 1.583 MB / 0.847 GB, free: 25.43 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02637/1.406, allocations: 0.7446 MB / 0.8477 GB, free: 24.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02462/1.431, allocations: 18.57 MB / 0.8659 GB, free: 5.656 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005411/1.436, allocations: 4.757 MB / 0.8705 GB, free: 0.8711 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001329/1.438, allocations: 447.4 kB / 0.871 GB, free: 444 kB / 0.5294 GB Notification: Performance of SimCode: time 5.81e-07/1.438, allocations: 0 / 0.871 GB, free: 444 kB / 0.5294 GB Notification: Performance of Templates: time 0.3382/1.776, allocations: 82.02 MB / 0.9511 GB, free: 216.9 MB / 0.5919 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/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