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.001626/0.001626, allocations: 113.2 kB / 17.78 MB, free: 5.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001696/0.001696, allocations: 204.6 kB / 18.74 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.4 MB / 247 MB, free: 10.46 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.2179/0.2179, allocations: 46.11 MB / 344.4 MB, free: 11.49 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.002214/0.002214, allocations: 79.86 kB / 480.9 MB, free: 4.539 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3245/0.3267, allocations: 62.44 MB / 0.5306 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.01785/0.3446, allocations: 16.15 MB / 0.5464 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01094/0.3556, allocations: 5.024 MB / 0.5513 GB, free: 12.52 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00293/0.3585, allocations: 103.7 kB / 0.5514 GB, free: 12.42 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01005/0.3686, allocations: 5.155 MB / 0.5564 GB, free: 7.246 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007591/0.3763, allocations: 2.473 MB / 0.5588 GB, free: 4.766 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003159/0.3794, allocations: 1.201 MB / 0.56 GB, free: 3.562 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01005/0.3895, allocations: 6.708 MB / 0.5666 GB, free: 12.84 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008585/0.3981, allocations: 6.341 MB / 0.5728 GB, free: 6.418 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004785/0.403, allocations: 2.609 MB / 0.5753 GB, free: 3.801 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006097/0.4091, allocations: 3.688 MB / 0.5789 GB, free: 104 kB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002026/0.4112, allocations: 0.5743 MB / 0.5795 GB, free: 15.52 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003576/0.4148, allocations: 1.268 MB / 0.5807 GB, free: 14.26 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004529/0.4193, allocations: 3.211 MB / 0.5838 GB, free: 11.04 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005958/0.4253, allocations: 3.682 MB / 0.5874 GB, free: 7.336 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01422/0.4396, allocations: 11.19 MB / 0.5984 GB, free: 12.1 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.225e-06/0.4396, allocations: 8 kB / 0.5984 GB, free: 12.09 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.4396, allocations: 0 / 0.5984 GB, free: 12.09 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004187/0.44, allocations: 0 / 0.5984 GB, free: 12.09 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: 2522 * Number of variables: 2522 Notification: Performance of Generate backend data structure: time 0.01714/0.4572, allocations: 7.893 MB / 0.6061 GB, free: 4.098 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.4573, allocations: 12.03 kB / 0.6061 GB, free: 4.086 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002544/0.4598, allocations: 1.19 MB / 0.6073 GB, free: 2.887 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01061/0.4704, allocations: 2.664 MB / 0.6099 GB, free: 220 kB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008607/0.4791, allocations: 4.28 MB / 0.614 GB, free: 11.88 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004557/0.4796, allocations: 439 kB / 0.6145 GB, free: 11.45 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002133/0.4817, allocations: 0.5583 MB / 0.615 GB, free: 10.89 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04267/0.5244, allocations: 19.78 MB / 0.6343 GB, free: 5.977 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002632/0.5247, allocations: 67.45 kB / 0.6344 GB, free: 5.91 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001589/0.5263, allocations: 271.8 kB / 0.6346 GB, free: 5.645 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005318/0.5317, allocations: 3.153 MB / 0.6377 GB, free: 2.488 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03753/0.5692, allocations: 15.91 MB / 0.6533 GB, free: 2.547 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08503/0.6543, allocations: 63.92 MB / 0.7157 GB, free: 0.9688 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4387/1.093, allocations: 6.404 MB / 0.7219 GB, free: 161.8 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003326/1.096, allocations: 2.115 MB / 0.724 GB, free: 161 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01225/1.109, allocations: 9.23 MB / 0.733 GB, free: 156.7 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0125/1.121, allocations: 4.198 MB / 0.7371 GB, free: 155.7 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=260): time 5.15e-06/1.121, allocations: 0 / 0.7371 GB, free: 155.7 MB / 0.5607 GB Notification: Performance of matching and sorting (n=294): time 0.05033/1.172, allocations: 21.98 MB / 0.7586 GB, free: 137.5 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.46e-05/1.172, allocations: 162.5 kB / 0.7587 GB, free: 137.3 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00605/1.178, allocations: 5.807 MB / 0.7644 GB, free: 131.6 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0003886/1.178, allocations: 69.7 kB / 0.7645 GB, free: 131.5 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.002507/1.181, allocations: 5.129 MB / 0.7695 GB, free: 126.7 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.000911/1.182, allocations: 1.183 MB / 0.7706 GB, free: 125.5 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001667/1.183, allocations: 1.811 MB / 0.7724 GB, free: 123.7 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 3.72e-05/1.183, allocations: 305.1 kB / 0.7727 GB, free: 123.4 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003375/1.187, allocations: 2.649 MB / 0.7753 GB, free: 120.7 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004943/1.192, allocations: 8.214 MB / 0.7833 GB, free: 109.8 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009247/1.201, allocations: 11.8 MB / 0.7948 GB, free: 95.25 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001082/1.201, allocations: 60 kB / 0.7949 GB, free: 95.2 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1200) (initialization): time 0.01525/1.216, allocations: 10.61 MB / 0.8052 GB, free: 84.58 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001185/1.216, allocations: 121.7 kB / 0.8054 GB, free: 84.46 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001629/1.217, allocations: 199.9 kB / 0.8055 GB, free: 84.26 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001606/1.217, allocations: 263.9 kB / 0.8058 GB, free: 84 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006067/1.223, allocations: 2.211 MB / 0.808 GB, free: 81.79 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001971/1.223, allocations: 387.5 kB / 0.8083 GB, free: 81.41 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005538/1.229, allocations: 477 kB / 0.8088 GB, free: 80.95 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009246/1.23, allocations: 0.5444 MB / 0.8093 GB, free: 80.41 MB / 0.5607 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.003874/1.234, allocations: 3.144 MB / 0.8124 GB, free: 77.25 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006806/1.234, allocations: 0.5433 MB / 0.8129 GB, free: 76.7 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004509/1.239, allocations: 3.058 MB / 0.8159 GB, free: 73.62 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.117e-05/1.239, allocations: 39.92 kB / 0.8159 GB, free: 73.59 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.079e-05/1.239, allocations: 0 / 0.8159 GB, free: 73.59 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.406e-05/1.239, allocations: 11.95 kB / 0.8159 GB, free: 73.57 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01629/1.255, allocations: 12.27 MB / 0.8279 GB, free: 60.83 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.219e-05/1.255, allocations: 32 kB / 0.828 GB, free: 60.8 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002034/1.257, allocations: 0.5896 MB / 0.8285 GB, free: 60.21 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.079e-05/1.257, allocations: 48 kB / 0.8286 GB, free: 60.16 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000154/1.257, allocations: 90.64 kB / 0.8287 GB, free: 60.08 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-05/1.257, allocations: 63.78 kB / 0.8287 GB, free: 60.02 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.835e-05/1.257, allocations: 51.75 kB / 0.8288 GB, free: 59.96 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005905/1.263, allocations: 5.538 MB / 0.8342 GB, free: 53.88 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001313/1.265, allocations: 0.6027 MB / 0.8348 GB, free: 53.25 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007684/1.266, allocations: 99.81 kB / 0.8349 GB, free: 53.16 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002108/1.268, allocations: 155.9 kB / 0.835 GB, free: 53.01 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000317/1.268, allocations: 287.8 kB / 0.8353 GB, free: 52.73 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001423/1.268, allocations: 124 kB / 0.8354 GB, free: 52.61 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.005043/1.273, allocations: 3.598 MB / 0.8389 GB, free: 49.04 MB / 0.5607 GB Notification: Performance of sort global known variables: time 5.51e-07/1.273, allocations: 0 / 0.8389 GB, free: 49.04 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.006854/1.28, allocations: 1.41 MB / 0.8403 GB, free: 47.63 MB / 0.5607 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.007006/1.287, allocations: 6.267 MB / 0.8464 GB, free: 40.82 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.008928/1.296, allocations: 6.143 MB / 0.8524 GB, free: 34.7 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 2.732e-05/1.296, allocations: 8 kB / 0.8524 GB, free: 34.69 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.002724/1.299, allocations: 1.63 MB / 0.854 GB, free: 33.07 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004222/1.303, allocations: 0.7694 MB / 0.8548 GB, free: 32.32 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0982/1.401, allocations: 67.87 MB / 0.9211 GB, free: 2.391 MB / 0.6076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00851/1.41, allocations: 4.76 MB / 0.9257 GB, free: 13.6 MB / 0.6232 GB Notification: Performance of simCode: alias equations: time 0.006524/1.416, allocations: 2.579 MB / 0.9282 GB, free: 11.02 MB / 0.6232 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005908/1.422, allocations: 3.155 MB / 0.9313 GB, free: 7.859 MB / 0.6232 GB Notification: Performance of SimCode: time 1.292e-06/1.422, allocations: 4 kB / 0.9313 GB, free: 7.855 MB / 0.6232 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3723/1.795, allocations: 93.54 MB / 1.023 GB, free: 170.6 MB / 0.6388 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.8/24.6, allocations: 10.31 kB / 1.023 GB, free: 170.6 MB / 0.6388 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)