Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_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_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008912/0.0008912, allocations: 176.1 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.211/1.211, allocations: 205.4 MB / 222.9 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007142/0.0007142, allocations: 82.36 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2822/0.2822, allocations: 43.57 MB / 363.1 MB, free: 51.88 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003302/0.0003303, allocations: 15.98 kB / 432 MB, free: 5.59 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1037, allocations: 58.84 MB / 490.8 MB, free: 10.66 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.2285/0.3322, allocations: 79.51 MB / 0.557 GB, free: 9.656 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03634/0.3686, allocations: 16.04 MB / 0.5726 GB, free: 14.71 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01562/0.3843, allocations: 368.4 kB / 0.573 GB, free: 14.66 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01292/0.3972, allocations: 4.171 MB / 0.577 GB, free: 13.17 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03368/0.4309, allocations: 12.14 MB / 0.5889 GB, free: 5.707 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005952/0.4369, allocations: 1.131 MB / 0.59 GB, free: 4.574 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.01094/0.4479, allocations: 8.299 MB / 0.5981 GB, free: 12.26 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01326/0.4612, allocations: 9.113 MB / 0.607 GB, free: 3.082 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00441/0.4656, allocations: 2.18 MB / 0.6091 GB, free: 0.8945 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005341/0.471, allocations: 3.614 MB / 0.6127 GB, free: 13.27 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001588/0.4726, allocations: 276 kB / 0.6129 GB, free: 13 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003132/0.4758, allocations: 1.014 MB / 0.6139 GB, free: 11.98 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003933/0.4797, allocations: 3.051 MB / 0.6169 GB, free: 8.926 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005867/0.4856, allocations: 3.345 MB / 0.6202 GB, free: 5.555 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01126/0.4969, allocations: 9.375 MB / 0.6293 GB, free: 12.16 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.497, allocations: 0 / 0.6293 GB, free: 12.16 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.776e-06/0.497, allocations: 0 / 0.6293 GB, free: 12.16 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004252/0.4974, allocations: 0 / 0.6293 GB, free: 12.16 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: 2765 * Number of variables: 2765 Notification: Performance of Generate backend data structure: time 0.01358/0.511, allocations: 6.695 MB / 0.6359 GB, free: 5.375 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.511, allocations: 8.031 kB / 0.6359 GB, free: 5.367 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01063/0.5217, allocations: 2.787 MB / 0.6386 GB, free: 2.566 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007893/0.5296, allocations: 3.959 MB / 0.6425 GB, free: 14.55 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000462/0.5301, allocations: 468.1 kB / 0.6429 GB, free: 14.09 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001915/0.5321, allocations: 0.5932 MB / 0.6435 GB, free: 13.5 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03963/0.5717, allocations: 21.28 MB / 0.6643 GB, free: 7.059 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001859/0.5719, allocations: 67.34 kB / 0.6643 GB, free: 6.992 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008239/0.5728, allocations: 287.7 kB / 0.6646 GB, free: 6.711 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005125/0.5779, allocations: 3.541 MB / 0.6681 GB, free: 3.168 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3567/0.9347, allocations: 17.25 MB / 0.6849 GB, free: 130.9 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07083/1.006, allocations: 67.92 MB / 0.7512 GB, free: 84.08 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0152/1.021, allocations: 6.784 MB / 0.7579 GB, free: 80.57 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003134/1.024, allocations: 2.337 MB / 0.7601 GB, free: 79.42 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01344/1.037, allocations: 9.808 MB / 0.7697 GB, free: 69.77 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01192/1.049, allocations: 4.418 MB / 0.774 GB, free: 65.3 MB / 490.8 MB Notification: Performance of pre-optimization done (n=299): time 7.013e-06/1.049, allocations: 0 / 0.774 GB, free: 65.3 MB / 490.8 MB Notification: Performance of matching and sorting (n=333): time 0.05022/1.1, allocations: 23.09 MB / 0.7966 GB, free: 42.06 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.099e-05/1.1, allocations: 166.7 kB / 0.7967 GB, free: 41.87 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006641/1.106, allocations: 6.011 MB / 0.8026 GB, free: 35.84 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0004911/1.107, allocations: 77.7 kB / 0.8027 GB, free: 35.76 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00305/1.11, allocations: 5.293 MB / 0.8079 GB, free: 30.46 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001227/1.111, allocations: 1.27 MB / 0.8091 GB, free: 29.21 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004944/1.112, allocations: 200 kB / 0.8093 GB, free: 29.01 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0003764/1.112, allocations: 0.7236 MB / 0.81 GB, free: 28.28 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004306/1.116, allocations: 2.861 MB / 0.8128 GB, free: 25.41 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00591/1.122, allocations: 8.683 MB / 0.8213 GB, free: 13.86 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01082/1.133, allocations: 12.58 MB / 0.8336 GB, free: 14.37 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001224/1.133, allocations: 60 kB / 0.8336 GB, free: 14.31 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1296) (initialization): time 0.02032/1.154, allocations: 11.31 MB / 0.8447 GB, free: 2.949 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.000141/1.154, allocations: 118.7 kB / 0.8448 GB, free: 2.828 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002023/1.154, allocations: 204 kB / 0.845 GB, free: 2.629 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002445/1.154, allocations: 282.9 kB / 0.8452 GB, free: 2.355 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00726/1.162, allocations: 2.38 MB / 0.8476 GB, free: 15.97 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003/1.162, allocations: 402.4 kB / 0.8479 GB, free: 15.58 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006057/1.168, allocations: 499.3 kB / 0.8484 GB, free: 15.09 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001198/1.169, allocations: 0.5814 MB / 0.849 GB, free: 14.51 MB / 0.5105 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 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005582/1.175, allocations: 3.393 MB / 0.8523 GB, free: 11.1 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009072/1.176, allocations: 0.5399 MB / 0.8528 GB, free: 10.55 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006112/1.182, allocations: 3.534 MB / 0.8563 GB, free: 6.969 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-05/1.182, allocations: 32 kB / 0.8563 GB, free: 6.938 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/1.182, allocations: 4 kB / 0.8563 GB, free: 6.934 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.107e-05/1.182, allocations: 15.94 kB / 0.8563 GB, free: 6.918 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2231/1.405, allocations: 13.81 MB / 0.8698 GB, free: 149.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-05/1.405, allocations: 31.78 kB / 0.8698 GB, free: 149.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002394/1.408, allocations: 0.6874 MB / 0.8705 GB, free: 149.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-05/1.408, allocations: 48.34 kB / 0.8706 GB, free: 149.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002354/1.408, allocations: 104.5 kB / 0.8707 GB, free: 149.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.832e-05/1.408, allocations: 64.56 kB / 0.8707 GB, free: 149.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.336e-05/1.408, allocations: 53.19 kB / 0.8708 GB, free: 149.7 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007855/1.416, allocations: 6.223 MB / 0.8769 GB, free: 147.6 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002044/1.418, allocations: 0.8471 MB / 0.8777 GB, free: 147.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007677/1.419, allocations: 108.6 kB / 0.8778 GB, free: 147.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002131/1.421, allocations: 178.6 kB / 0.878 GB, free: 147.3 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004072/1.421, allocations: 305.5 kB / 0.8782 GB, free: 147.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002083/1.422, allocations: 140.6 kB / 0.8784 GB, free: 147.2 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006092/1.428, allocations: 3.722 MB / 0.882 GB, free: 145.9 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.41e-07/1.428, allocations: 6.234 kB / 0.882 GB, free: 145.9 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007388/1.435, allocations: 1.572 MB / 0.8836 GB, free: 145.7 MB / 0.5105 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 (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.0007364/1.436, allocations: 280 kB / 0.8838 GB, free: 145.6 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01016/1.446, allocations: 6.609 MB / 0.8903 GB, free: 143.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.501e-05/1.446, allocations: 5.094 kB / 0.8903 GB, free: 143.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003009/1.449, allocations: 1.761 MB / 0.892 GB, free: 142.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02827/1.477, allocations: 0.772 MB / 0.8928 GB, free: 142.5 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03048/1.508, allocations: 19.51 MB / 0.9118 GB, free: 131.5 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007383/1.515, allocations: 5.137 MB / 0.9168 GB, free: 129.8 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001563/1.517, allocations: 493.8 kB / 0.9173 GB, free: 129.8 MB / 0.5105 GB Notification: Performance of SimCode: time 1.313e-06/1.517, allocations: 0.5469 kB / 0.9173 GB, free: 129.8 MB / 0.5105 GB Notification: Performance of Templates: time 0.1052/1.622, allocations: 89.7 MB / 1.005 GB, free: 49.13 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.MultiBody.Forces.Damper2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches