Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_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_cpp_ModelicaTest.MultiBody.Forces.Damper2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009566/0.0009566, allocations: 200.5 kB / 15.8 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.282/1.282, allocations: 226.5 MB / 243.1 MB, free: 12.39 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000717/0.0007171, allocations: 99.86 kB / 295.1 MB, free: 4.457 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1827/0.1827, allocations: 44.83 MB / 392 MB, free: 11.38 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002355/0.0002356, allocations: 8 kB / 464.7 MB, free: 68.1 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1018, allocations: 62.95 MB / 0.5153 GB, free: 5.137 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.2429/0.3447, allocations: 78.41 MB / 0.5919 GB, free: 14.67 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03304/0.3778, allocations: 15.88 MB / 0.6074 GB, free: 3.223 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01178/0.3896, allocations: 369.4 kB / 0.6078 GB, free: 3.164 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009744/0.3994, allocations: 4.14 MB / 0.6118 GB, free: 68 kB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02704/0.4265, allocations: 11.96 MB / 0.6235 GB, free: 4.086 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003987/0.4305, allocations: 1.077 MB / 0.6245 GB, free: 3.008 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.008824/0.4393, allocations: 7.944 MB / 0.6323 GB, free: 11.05 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01128/0.4506, allocations: 8.398 MB / 0.6405 GB, free: 2.586 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003261/0.4539, allocations: 2.055 MB / 0.6425 GB, free: 0.5234 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004268/0.4582, allocations: 3.345 MB / 0.6458 GB, free: 13.17 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00105/0.4592, allocations: 256 kB / 0.646 GB, free: 12.92 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002282/0.4615, allocations: 0.8622 MB / 0.6469 GB, free: 12.05 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002929/0.4645, allocations: 2.875 MB / 0.6497 GB, free: 9.172 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001784/0.4663, allocations: 1.349 MB / 0.651 GB, free: 7.812 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007666/0.4739, allocations: 8.806 MB / 0.6596 GB, free: 14.98 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.474, allocations: 0 / 0.6596 GB, free: 14.98 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.474, allocations: 0 / 0.6596 GB, free: 14.98 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001781/0.4742, allocations: 0 / 0.6596 GB, free: 14.98 MB / 458.7 MB 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.009853/0.484, allocations: 6.491 MB / 0.6659 GB, free: 8.402 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.35e-05/0.4841, allocations: 8.031 kB / 0.6659 GB, free: 8.395 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009142/0.4932, allocations: 2.712 MB / 0.6686 GB, free: 5.668 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005906/0.4991, allocations: 3.541 MB / 0.672 GB, free: 2.066 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003009/0.4994, allocations: 447.1 kB / 0.6725 GB, free: 1.629 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008255/0.5003, allocations: 0.5544 MB / 0.673 GB, free: 1.074 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03576/0.536, allocations: 20.34 MB / 0.6929 GB, free: 11.58 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000164/0.5362, allocations: 67.31 kB / 0.6929 GB, free: 11.52 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006371/0.5369, allocations: 275.7 kB / 0.6932 GB, free: 11.25 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004813/0.5417, allocations: 3.341 MB / 0.6965 GB, free: 7.902 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03481/0.5765, allocations: 16.35 MB / 0.7124 GB, free: 7.523 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4642/1.041, allocations: 65.35 MB / 0.7762 GB, free: 138.6 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0177/1.059, allocations: 6.393 MB / 0.7825 GB, free: 137.9 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003894/1.063, allocations: 2.094 MB / 0.7845 GB, free: 137.1 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01538/1.078, allocations: 9.178 MB / 0.7935 GB, free: 132.5 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01241/1.09, allocations: 4.181 MB / 0.7976 GB, free: 131.6 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=260): time 6.272e-06/1.09, allocations: 3 kB / 0.7976 GB, free: 131.6 MB / 0.5262 GB Notification: Performance of matching and sorting (n=294): time 0.05276/1.143, allocations: 21.63 MB / 0.8187 GB, free: 117.1 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.466e-05/1.143, allocations: 159.6 kB / 0.8189 GB, free: 116.9 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006124/1.149, allocations: 5.823 MB / 0.8245 GB, free: 111 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.0004026/1.15, allocations: 72.3 kB / 0.8246 GB, free: 111 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.00256/1.152, allocations: 5.056 MB / 0.8295 GB, free: 105.9 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008297/1.153, allocations: 1.134 MB / 0.8307 GB, free: 104.8 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002778/1.154, allocations: 188 kB / 0.8308 GB, free: 104.6 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.0002965/1.154, allocations: 0.6969 MB / 0.8315 GB, free: 103.9 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003429/1.157, allocations: 2.636 MB / 0.8341 GB, free: 101.3 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00478/1.162, allocations: 8.253 MB / 0.8422 GB, free: 90.41 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005102/1.167, allocations: 4.549 MB / 0.8466 GB, free: 85.98 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.233e-05/1.167, allocations: 56 kB / 0.8466 GB, free: 85.93 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1221) (initialization): time 0.01421/1.182, allocations: 10.63 MB / 0.857 GB, free: 75.29 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001089/1.182, allocations: 121.7 kB / 0.8571 GB, free: 75.16 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001573/1.182, allocations: 200 kB / 0.8573 GB, free: 74.97 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001882/1.182, allocations: 292 kB / 0.8576 GB, free: 74.68 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0066/1.189, allocations: 2.234 MB / 0.8598 GB, free: 72.45 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001966/1.189, allocations: 398.4 kB / 0.8602 GB, free: 72.05 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005648/1.195, allocations: 467.4 kB / 0.8606 GB, free: 71.6 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008687/1.195, allocations: 0.5518 MB / 0.8612 GB, free: 71.05 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 904 * Number of states: 0 () * Number of discrete variables: 83 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,force2.forceArrow.arrowLine.twoHeadedArrow,force2.forceArrow.headAtOrigin,force1.forceArrow.arrowLine.twoHeadedArrow,force1.forceArrow.headAtOrigin,force.forceArrow.arrowLine.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 (1196): * Single equations (assignments): 1192 * 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.004793/1.2, allocations: 3.235 MB / 0.8643 GB, free: 67.8 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008314/1.201, allocations: 0.5207 MB / 0.8648 GB, free: 67.27 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005004/1.206, allocations: 3.054 MB / 0.8678 GB, free: 64.2 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.308e-05/1.206, allocations: 32 kB / 0.8678 GB, free: 64.17 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/1.206, allocations: 0 / 0.8678 GB, free: 64.17 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-05/1.206, allocations: 19.91 kB / 0.8679 GB, free: 64.15 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01691/1.223, allocations: 12.48 MB / 0.88 GB, free: 51.18 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.639e-05/1.223, allocations: 32 kB / 0.8801 GB, free: 51.15 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002062/1.225, allocations: 0.601 MB / 0.8807 GB, free: 50.55 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.585e-05/1.225, allocations: 48 kB / 0.8807 GB, free: 50.5 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001311/1.225, allocations: 91.98 kB / 0.8808 GB, free: 50.41 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.301e-05/1.225, allocations: 65.33 kB / 0.8809 GB, free: 50.35 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.939e-05/1.225, allocations: 51.75 kB / 0.8809 GB, free: 50.3 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005525/1.231, allocations: 5.456 MB / 0.8862 GB, free: 44.3 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00117/1.232, allocations: 0.5918 MB / 0.8868 GB, free: 43.68 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000438/1.233, allocations: 87.97 kB / 0.8869 GB, free: 43.59 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001737/1.234, allocations: 168.9 kB / 0.8871 GB, free: 43.43 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002381/1.235, allocations: 280 kB / 0.8873 GB, free: 43.16 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001333/1.235, allocations: 125.2 kB / 0.8874 GB, free: 43.04 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.004197/1.239, allocations: 3.607 MB / 0.891 GB, free: 39.43 MB / 0.5262 GB Notification: Performance of sort global known variables: time 2.91e-07/1.239, allocations: 0 / 0.891 GB, free: 39.43 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.006002/1.245, allocations: 1.471 MB / 0.8924 GB, free: 37.96 MB / 0.5262 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 (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.0004511/1.245, allocations: 272.5 kB / 0.8927 GB, free: 37.7 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.008004/1.253, allocations: 6.069 MB / 0.8986 GB, free: 31.65 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.576e-05/1.254, allocations: 4 kB / 0.8986 GB, free: 31.65 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.002119/1.256, allocations: 1.528 MB / 0.9001 GB, free: 30.12 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003732/1.259, allocations: 0.7642 MB / 0.9008 GB, free: 29.36 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02018/1.28, allocations: 18.26 MB / 0.9187 GB, free: 10.64 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004092/1.284, allocations: 4.883 MB / 0.9234 GB, free: 5.734 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001256/1.285, allocations: 451.4 kB / 0.9239 GB, free: 5.293 MB / 0.5262 GB Notification: Performance of SimCode: time 8.21e-07/1.285, allocations: 0 / 0.9239 GB, free: 5.293 MB / 0.5262 GB Notification: Performance of Templates: time 0.3226/1.608, allocations: 84.59 MB / 1.006 GB, free: 168.1 MB / 0.5574 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.MultiBody.Forces.Damper2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches