Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Damper2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_ModelicaTest.MultiBody.Forces.Damper2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001308/0.001308, allocations: 99.45 kB / 15.98 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001654/0.001654, allocations: 197.7 kB / 16.91 MB, free: 6.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.74/1.74, allocations: 205.1 MB / 222.8 MB, free: 4.742 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3704/0.3704, allocations: 43.5 MB / 313.6 MB, free: 8.508 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001759/0.001772, allocations: 67.89 kB / 382.2 MB, free: 8.637 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1512/0.153, allocations: 57.78 MB / 440 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.3381/0.4911, allocations: 87.6 MB / 0.5152 GB, free: 8.75 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.06268/0.5539, allocations: 16.67 MB / 0.5315 GB, free: 13.61 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.03074/0.5847, allocations: 369.6 kB / 0.5319 GB, free: 13.55 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01341/0.5981, allocations: 5.049 MB / 0.5368 GB, free: 11.24 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01224/0.6105, allocations: 2.546 MB / 0.5393 GB, free: 10.04 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005009/0.6155, allocations: 1.125 MB / 0.5404 GB, free: 9.555 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01445/0.63, allocations: 7.103 MB / 0.5473 GB, free: 3.297 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0134/0.6435, allocations: 6.933 MB / 0.5541 GB, free: 12.34 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00761/0.6511, allocations: 2.847 MB / 0.5569 GB, free: 9.48 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007675/0.6588, allocations: 4.401 MB / 0.5612 GB, free: 5.066 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00294/0.6618, allocations: 0.6289 MB / 0.5618 GB, free: 4.438 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005231/0.6671, allocations: 1.338 MB / 0.5631 GB, free: 3.098 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006298/0.6734, allocations: 3.561 MB / 0.5666 GB, free: 15.53 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01015/0.6836, allocations: 4.063 MB / 0.5705 GB, free: 11.44 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02012/0.7037, allocations: 11.9 MB / 0.5822 GB, free: 15.5 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.788e-06/0.7038, allocations: 0 / 0.5822 GB, free: 15.5 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.7038, allocations: 4 kB / 0.5822 GB, free: 15.5 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0006277/0.7044, allocations: 0 / 0.5822 GB, free: 15.5 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2765 * Number of variables: 2765 Notification: Performance of Generate backend data structure: time 0.02809/0.7326, allocations: 8.277 MB / 0.5903 GB, free: 7.129 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.008e-05/0.7326, allocations: 8.031 kB / 0.5903 GB, free: 7.121 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01252/0.7452, allocations: 2.728 MB / 0.5929 GB, free: 4.379 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01102/0.7562, allocations: 3.955 MB / 0.5968 GB, free: 372 kB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006639/0.7569, allocations: 464.2 kB / 0.5972 GB, free: 15.91 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003048/0.76, allocations: 0.5971 MB / 0.5978 GB, free: 15.31 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05489/0.8149, allocations: 21.25 MB / 0.6186 GB, free: 8.902 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004734/0.8154, allocations: 75.3 kB / 0.6186 GB, free: 8.828 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003105/0.8186, allocations: 291.7 kB / 0.6189 GB, free: 8.543 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006417/0.825, allocations: 3.533 MB / 0.6224 GB, free: 5.008 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5028/1.328, allocations: 17.26 MB / 0.6392 GB, free: 135.7 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09806/1.426, allocations: 67.91 MB / 0.7055 GB, free: 89.23 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01836/1.444, allocations: 6.752 MB / 0.7121 GB, free: 85.71 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003456/1.448, allocations: 2.316 MB / 0.7144 GB, free: 84.58 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01509/1.463, allocations: 9.81 MB / 0.724 GB, free: 76.21 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0127/1.476, allocations: 4.394 MB / 0.7283 GB, free: 71.76 MB / 494.1 MB Notification: Performance of pre-optimization done (n=299): time 5.059e-06/1.476, allocations: 0 / 0.7283 GB, free: 71.76 MB / 494.1 MB Notification: Performance of matching and sorting (n=333): time 0.05599/1.532, allocations: 23 MB / 0.7507 GB, free: 48.62 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.255e-05/1.532, allocations: 172.8 kB / 0.7509 GB, free: 48.42 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007161/1.539, allocations: 6.05 MB / 0.7568 GB, free: 42.36 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006309/1.54, allocations: 73.7 kB / 0.7569 GB, free: 42.28 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003607/1.543, allocations: 5.298 MB / 0.762 GB, free: 36.96 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00138/1.545, allocations: 1.269 MB / 0.7633 GB, free: 35.68 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002173/1.547, allocations: 1.94 MB / 0.7652 GB, free: 33.73 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.906e-05/1.547, allocations: 305.1 kB / 0.7655 GB, free: 33.43 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003793/1.551, allocations: 2.885 MB / 0.7683 GB, free: 30.54 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006155/1.557, allocations: 8.711 MB / 0.7768 GB, free: 18.96 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01239/1.569, allocations: 12.61 MB / 0.7891 GB, free: 3.438 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001801/1.57, allocations: 56 kB / 0.7892 GB, free: 3.383 MB / 494.1 MB Notification: Performance of matching and sorting (n=1296) (initialization): time 0.02517/1.595, allocations: 11.38 MB / 0.8003 GB, free: 7.949 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003347/1.595, allocations: 122.5 kB / 0.8004 GB, free: 7.824 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003969/1.596, allocations: 204 kB / 0.8006 GB, free: 7.625 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004191/1.596, allocations: 276.8 kB / 0.8008 GB, free: 7.355 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008828/1.605, allocations: 2.371 MB / 0.8032 GB, free: 4.98 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004957/1.605, allocations: 402.5 kB / 0.8035 GB, free: 4.586 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008539/1.614, allocations: 491.4 kB / 0.804 GB, free: 4.105 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001982/1.616, allocations: 0.5781 MB / 0.8046 GB, free: 3.527 MB / 0.4982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 934 * Number of states: 0 () * Number of discrete variables: 77 (trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1,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 (1271): * Single equations (assignments): 1267 * 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.01036/1.626, allocations: 3.401 MB / 0.8079 GB, free: 112 kB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002071/1.628, allocations: 0.5439 MB / 0.8084 GB, free: 15.55 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009873/1.638, allocations: 3.524 MB / 0.8119 GB, free: 11.98 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.974e-05/1.638, allocations: 36 kB / 0.8119 GB, free: 11.95 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-05/1.638, allocations: 0 / 0.8119 GB, free: 11.95 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.936e-05/1.639, allocations: 15.94 kB / 0.8119 GB, free: 11.93 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2931/1.932, allocations: 13.76 MB / 0.8254 GB, free: 155.6 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.87e-05/1.932, allocations: 34.56 kB / 0.8254 GB, free: 155.6 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002377/1.934, allocations: 0.656 MB / 0.826 GB, free: 155.6 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.898e-05/1.934, allocations: 47.53 kB / 0.8261 GB, free: 155.6 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001912/1.934, allocations: 107.8 kB / 0.8262 GB, free: 155.6 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.185e-05/1.934, allocations: 67.86 kB / 0.8263 GB, free: 155.6 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.868e-05/1.934, allocations: 54.97 kB / 0.8263 GB, free: 155.6 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007205/1.942, allocations: 6.204 MB / 0.8324 GB, free: 153.7 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002014/1.944, allocations: 0.8436 MB / 0.8332 GB, free: 153.6 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006071/1.944, allocations: 102.2 kB / 0.8333 GB, free: 153.6 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001961/1.946, allocations: 162.9 kB / 0.8334 GB, free: 153.6 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003523/1.947, allocations: 312 kB / 0.8337 GB, free: 153.6 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001728/1.947, allocations: 130.3 kB / 0.8339 GB, free: 153.5 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004654/1.951, allocations: 3.763 MB / 0.8375 GB, free: 152.3 MB / 0.5138 GB Notification: Performance of sort global known variables: time 2.01e-07/1.952, allocations: 0 / 0.8375 GB, free: 152.3 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.006929/1.958, allocations: 1.575 MB / 0.8391 GB, free: 152.1 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 148 * 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 (320): * Single equations (assignments): 315 * 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.000562/1.959, allocations: 291.8 kB / 0.8394 GB, free: 151.9 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01265/1.972, allocations: 7.589 MB / 0.8468 GB, free: 149.7 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 3.059e-05/1.972, allocations: 5.875 kB / 0.8468 GB, free: 149.7 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003639/1.975, allocations: 1.879 MB / 0.8486 GB, free: 149 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005649/1.981, allocations: 0.7939 MB / 0.8494 GB, free: 148.7 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02966/2.011, allocations: 19.45 MB / 0.8684 GB, free: 137.4 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006/2.017, allocations: 5.149 MB / 0.8734 GB, free: 135.7 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.007285/2.024, allocations: 2.754 MB / 0.8761 GB, free: 135.4 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001054/2.025, allocations: 420.1 kB / 0.8765 GB, free: 135.4 MB / 0.5138 GB Notification: Performance of SimCode: time 2.875e-06/2.025, allocations: 0 / 0.8765 GB, free: 135.4 MB / 0.5138 GB Notification: Performance of Templates: time 0.08365/2.109, allocations: 51.69 MB / 0.927 GB, free: 92.42 MB / 0.5138 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Damper2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Damper2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Damper2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Damper2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Damper2.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Damper2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Damper2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Damper2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/Damper2/Damper2.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Damper2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches