Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Damper2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_Damper2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Damper2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_Damper2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001574/0.001574, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001534/0.001534, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.475/1.475, allocations: 227.4 MB / 246.8 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2312/0.2312, allocations: 46.11 MB / 344.2 MB, free: 11.52 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.003157/0.003157, allocations: 80.86 kB / 417.8 MB, free: 19.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1449/0.148, allocations: 62.46 MB / 480.2 MB, free: 5.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.01991/0.168, allocations: 16.13 MB / 496.3 MB, free: 4.883 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0115/0.1795, allocations: 5.031 MB / 0.4896 GB, free: 15.84 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003446/0.183, allocations: 99.75 kB / 0.4897 GB, free: 15.74 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01116/0.1943, allocations: 5.167 MB / 0.4948 GB, free: 10.56 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009795/0.2041, allocations: 2.466 MB / 0.4972 GB, free: 8.082 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003733/0.2079, allocations: 1.193 MB / 0.4983 GB, free: 6.887 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01102/0.2189, allocations: 6.708 MB / 0.5049 GB, free: 172 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2742/0.4931, allocations: 6.357 MB / 0.5111 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006244/0.4994, allocations: 2.595 MB / 0.5136 GB, free: 12.16 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007788/0.5072, allocations: 3.692 MB / 0.5172 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003097/0.5104, allocations: 0.5793 MB / 0.5178 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004863/0.5152, allocations: 1.268 MB / 0.519 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006483/0.5218, allocations: 3.214 MB / 0.5222 GB, free: 11.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008931/0.5307, allocations: 3.683 MB / 0.5258 GB, free: 8.992 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0169/0.5477, allocations: 10.76 MB / 0.5363 GB, free: 3.855 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.427e-06/0.5477, allocations: 2.719 kB / 0.5363 GB, free: 3.855 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.5477, allocations: 0 / 0.5363 GB, free: 3.855 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005633/0.5483, allocations: 0 / 0.5363 GB, free: 3.855 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.02556/0.5739, allocations: 7.697 MB / 0.5438 GB, free: 14.82 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.182e-05/0.574, allocations: 14.42 kB / 0.5438 GB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005802/0.5798, allocations: 1.189 MB / 0.545 GB, free: 14.04 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01257/0.5924, allocations: 2.612 MB / 0.5475 GB, free: 12.68 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0111/0.6035, allocations: 4.206 MB / 0.5516 GB, free: 8.754 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005249/0.6041, allocations: 430.8 kB / 0.5521 GB, free: 8.391 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00243/0.6065, allocations: 0.5584 MB / 0.5526 GB, free: 7.887 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04846/0.655, allocations: 19.78 MB / 0.5719 GB, free: 3.285 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002486/0.6553, allocations: 68.14 kB / 0.572 GB, free: 3.25 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009947/0.6563, allocations: 273.7 kB / 0.5722 GB, free: 3.043 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00514/0.6615, allocations: 3.159 MB / 0.5753 GB, free: 15.93 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04077/0.7022, allocations: 15.92 MB / 0.5909 GB, free: 296 kB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0921/0.7944, allocations: 64.08 MB / 0.6534 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01912/0.8135, allocations: 6.408 MB / 0.6597 GB, free: 8.871 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003996/0.8176, allocations: 2.074 MB / 0.6617 GB, free: 6.793 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01672/0.8343, allocations: 9.2 MB / 0.6707 GB, free: 13.33 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01573/0.8501, allocations: 4.198 MB / 0.6748 GB, free: 9.102 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=260): time 5.951e-06/0.8502, allocations: 8 kB / 0.6748 GB, free: 9.094 MB / 0.5137 GB Notification: Performance of matching and sorting (n=294): time 0.06886/0.919, allocations: 21.6 MB / 0.6959 GB, free: 3.457 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001284/0.9192, allocations: 165.1 kB / 0.6961 GB, free: 3.266 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01006/0.9293, allocations: 5.793 MB / 0.7017 GB, free: 13.5 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0005305/0.9298, allocations: 65.7 kB / 0.7018 GB, free: 13.43 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0052/0.9351, allocations: 4.934 MB / 0.7066 GB, free: 8.492 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001592/0.9367, allocations: 1.126 MB / 0.7077 GB, free: 7.375 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002838/0.9395, allocations: 1.805 MB / 0.7095 GB, free: 5.555 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000141/0.9397, allocations: 305.1 kB / 0.7098 GB, free: 5.254 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005191/0.9449, allocations: 2.649 MB / 0.7124 GB, free: 2.598 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2141/1.159, allocations: 8.208 MB / 0.7204 GB, free: 183 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01298/1.172, allocations: 11.81 MB / 0.7319 GB, free: 173.5 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004123/1.173, allocations: 55.28 kB / 0.7319 GB, free: 173.5 MB / 0.545 GB Notification: Performance of matching and sorting (n=1200) (initialization): time 0.02288/1.195, allocations: 10.59 MB / 0.7423 GB, free: 169.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002597/1.196, allocations: 115.8 kB / 0.7424 GB, free: 169.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003568/1.196, allocations: 201.2 kB / 0.7426 GB, free: 169.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003724/1.196, allocations: 260.3 kB / 0.7428 GB, free: 169.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007734/1.204, allocations: 2.203 MB / 0.745 GB, free: 169.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005195/1.205, allocations: 388.3 kB / 0.7454 GB, free: 169.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007113/1.212, allocations: 474.7 kB / 0.7458 GB, free: 169.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001613/1.214, allocations: 0.5441 MB / 0.7463 GB, free: 169.1 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 (1175): * Single equations (assignments): 1171 * 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.006003/1.22, allocations: 3.15 MB / 0.7494 GB, free: 167.8 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009897/1.221, allocations: 0.5142 MB / 0.7499 GB, free: 167.8 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005331/1.226, allocations: 3.065 MB / 0.7529 GB, free: 166.6 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-05/1.226, allocations: 29.94 kB / 0.7529 GB, free: 166.6 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.377e-05/1.226, allocations: 2.391 kB / 0.753 GB, free: 166.6 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.437e-05/1.226, allocations: 13.84 kB / 0.753 GB, free: 166.6 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01935/1.245, allocations: 12.27 MB / 0.7649 GB, free: 160.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.728e-05/1.245, allocations: 33 kB / 0.765 GB, free: 160.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002058/1.248, allocations: 0.5941 MB / 0.7656 GB, free: 160.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.854e-05/1.248, allocations: 44 kB / 0.7656 GB, free: 160.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001496/1.248, allocations: 95.64 kB / 0.7657 GB, free: 160 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.945e-05/1.248, allocations: 67.06 kB / 0.7658 GB, free: 159.9 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.072e-05/1.248, allocations: 47.81 kB / 0.7658 GB, free: 159.9 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006274/1.254, allocations: 5.516 MB / 0.7712 GB, free: 154.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001529/1.256, allocations: 0.5776 MB / 0.7718 GB, free: 154 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009804/1.257, allocations: 104.2 kB / 0.7719 GB, free: 153.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002537/1.259, allocations: 149.7 kB / 0.772 GB, free: 153.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003639/1.26, allocations: 284.3 kB / 0.7723 GB, free: 153.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001613/1.26, allocations: 119.8 kB / 0.7724 GB, free: 153.4 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00631/1.266, allocations: 3.599 MB / 0.7759 GB, free: 150.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 6.01e-07/1.266, allocations: 0 / 0.7759 GB, free: 150.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008965/1.275, allocations: 1.415 MB / 0.7773 GB, free: 149.1 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.006816/1.282, allocations: 6.225 MB / 0.7834 GB, free: 142.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01068/1.293, allocations: 6.681 MB / 0.7899 GB, free: 136.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.393e-05/1.293, allocations: 4 kB / 0.7899 GB, free: 136.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002651/1.295, allocations: 1.63 MB / 0.7915 GB, free: 135.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003871/1.299, allocations: 0.7739 MB / 0.7922 GB, free: 134.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09158/1.391, allocations: 81.47 MB / 0.8718 GB, free: 39.81 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006795/1.398, allocations: 4.76 MB / 0.8764 GB, free: 35.02 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006297/1.404, allocations: 2.575 MB / 0.879 GB, free: 32.44 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004593/1.409, allocations: 3.155 MB / 0.882 GB, free: 29.28 MB / 0.545 GB Notification: Performance of SimCode: time 1.162e-06/1.409, allocations: 0 / 0.882 GB, free: 29.28 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3974/1.806, allocations: 99.39 MB / 0.9791 GB, free: 171.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/13.28, allocations: 4.391 kB / 0.9791 GB, free: 171.9 MB / 0.5606 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Damper2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Damper2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Damper2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Damper2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Damper2_res.csv --start-time 0 --stop-time 7 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0028 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_Damper2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Damper2.pipe 2>&1)