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.001329/0.001329, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001505/0.001505, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.473/1.473, allocations: 227.5 MB / 246.8 MB, free: 10.59 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.2332/0.2332, allocations: 46.12 MB / 344.2 MB, free: 11.59 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.003167/0.003167, allocations: 77.31 kB / 417.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1371/0.1403, allocations: 62.45 MB / 480.2 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.01919/0.1596, allocations: 16.13 MB / 496.3 MB, free: 4.957 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01143/0.1711, allocations: 5.028 MB / 0.4896 GB, free: 15.91 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003065/0.1742, allocations: 99.75 kB / 0.4897 GB, free: 15.82 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0105/0.1847, allocations: 5.171 MB / 0.4948 GB, free: 10.63 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00794/0.1927, allocations: 2.469 MB / 0.4972 GB, free: 8.152 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003454/0.1962, allocations: 1.182 MB / 0.4983 GB, free: 6.969 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01076/0.207, allocations: 6.722 MB / 0.5049 GB, free: 240 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2546/0.4617, allocations: 6.354 MB / 0.5111 GB, free: 12.33 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006362/0.4681, allocations: 2.597 MB / 0.5136 GB, free: 12.2 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008062/0.4762, allocations: 3.689 MB / 0.5172 GB, free: 11.83 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003785/0.48, allocations: 0.5761 MB / 0.5178 GB, free: 11.83 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006469/0.4865, allocations: 1.269 MB / 0.519 GB, free: 11.83 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006068/0.4926, allocations: 3.215 MB / 0.5222 GB, free: 11.51 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008728/0.5014, allocations: 3.686 MB / 0.5258 GB, free: 9.043 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01457/0.516, allocations: 10.76 MB / 0.5363 GB, free: 3.879 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.967e-06/0.516, allocations: 3.062 kB / 0.5363 GB, free: 3.879 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.516, allocations: 0 / 0.5363 GB, free: 3.879 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005115/0.5165, allocations: 0 / 0.5363 GB, free: 3.879 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.0193/0.5359, allocations: 7.7 MB / 0.5438 GB, free: 14.84 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.5359, allocations: 13.09 kB / 0.5438 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004358/0.5403, allocations: 1.19 MB / 0.545 GB, free: 14.07 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01178/0.5521, allocations: 2.62 MB / 0.5475 GB, free: 12.7 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009742/0.5619, allocations: 4.192 MB / 0.5516 GB, free: 8.852 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005148/0.5624, allocations: 442.9 kB / 0.5521 GB, free: 8.48 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002371/0.5648, allocations: 0.5533 MB / 0.5526 GB, free: 7.984 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05302/0.6179, allocations: 19.79 MB / 0.5719 GB, free: 3.379 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003694/0.6183, allocations: 69.47 kB / 0.572 GB, free: 3.344 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002293/0.6206, allocations: 271.8 kB / 0.5722 GB, free: 3.137 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005729/0.6263, allocations: 3.15 MB / 0.5753 GB, free: 32 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04142/0.6678, allocations: 15.92 MB / 0.5909 GB, free: 400 kB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1023/0.7701, allocations: 64.07 MB / 0.6534 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02042/0.7906, allocations: 6.404 MB / 0.6597 GB, free: 8.984 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004504/0.7951, allocations: 2.081 MB / 0.6617 GB, free: 6.898 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02022/0.8154, allocations: 9.207 MB / 0.6707 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01628/0.8317, allocations: 4.198 MB / 0.6748 GB, free: 9.195 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=260): time 1.054e-05/0.8317, allocations: 0 / 0.6748 GB, free: 9.195 MB / 0.5137 GB Notification: Performance of matching and sorting (n=294): time 0.06798/0.8997, allocations: 21.61 MB / 0.6959 GB, free: 3.551 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001294/0.8999, allocations: 156.5 kB / 0.6961 GB, free: 3.367 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01171/0.9116, allocations: 5.793 MB / 0.7017 GB, free: 13.6 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0005356/0.9122, allocations: 72.98 kB / 0.7018 GB, free: 13.52 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.005526/0.9177, allocations: 4.925 MB / 0.7066 GB, free: 8.598 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001653/0.9194, allocations: 1.143 MB / 0.7077 GB, free: 7.465 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004726/0.9242, allocations: 1.801 MB / 0.7095 GB, free: 5.648 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001361/0.9243, allocations: 305.1 kB / 0.7098 GB, free: 5.348 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005561/0.9299, allocations: 2.649 MB / 0.7124 GB, free: 2.691 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2484/1.178, allocations: 8.202 MB / 0.7204 GB, free: 182.9 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01425/1.193, allocations: 11.8 MB / 0.7319 GB, free: 173.5 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004387/1.193, allocations: 59.72 kB / 0.732 GB, free: 173.5 MB / 0.545 GB Notification: Performance of matching and sorting (n=1200) (initialization): time 0.02364/1.217, allocations: 10.59 MB / 0.7423 GB, free: 169.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003479/1.217, allocations: 116.8 kB / 0.7424 GB, free: 169.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005526/1.218, allocations: 200.2 kB / 0.7426 GB, free: 169.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005249/1.218, allocations: 261.7 kB / 0.7429 GB, free: 169.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008234/1.226, allocations: 2.207 MB / 0.745 GB, free: 169.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005006/1.227, allocations: 387.5 kB / 0.7454 GB, free: 169.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007777/1.235, allocations: 468.9 kB / 0.7458 GB, free: 169.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002097/1.237, allocations: 0.5443 MB / 0.7464 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.006619/1.244, allocations: 3.146 MB / 0.7494 GB, free: 167.7 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008467/1.244, allocations: 0.5154 MB / 0.7499 GB, free: 167.7 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0048/1.249, allocations: 3.061 MB / 0.7529 GB, free: 166.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.289e-05/1.249, allocations: 39.03 kB / 0.753 GB, free: 166.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.188e-05/1.249, allocations: 5.641 kB / 0.753 GB, free: 166.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.692e-05/1.249, allocations: 16.55 kB / 0.753 GB, free: 166.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02086/1.27, allocations: 12.27 MB / 0.765 GB, free: 160.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.114e-05/1.27, allocations: 32 kB / 0.765 GB, free: 160.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002198/1.273, allocations: 0.5919 MB / 0.7656 GB, free: 160.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.115e-05/1.273, allocations: 44 kB / 0.7656 GB, free: 160.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002186/1.273, allocations: 97.61 kB / 0.7657 GB, free: 160 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.074e-05/1.273, allocations: 67.39 kB / 0.7658 GB, free: 160 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.909e-05/1.273, allocations: 47.81 kB / 0.7658 GB, free: 159.9 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006354/1.279, allocations: 5.5 MB / 0.7712 GB, free: 154.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001369/1.281, allocations: 0.584 MB / 0.7718 GB, free: 154 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001012/1.282, allocations: 104.7 kB / 0.7719 GB, free: 153.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002504/1.284, allocations: 149 kB / 0.772 GB, free: 153.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003226/1.285, allocations: 283.9 kB / 0.7723 GB, free: 153.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001732/1.285, allocations: 121.5 kB / 0.7724 GB, free: 153.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006118/1.291, allocations: 3.6 MB / 0.7759 GB, free: 150.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.523e-06/1.291, allocations: 0 / 0.7759 GB, free: 150.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008478/1.299, allocations: 1.409 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.008307/1.308, allocations: 6.233 MB / 0.7834 GB, free: 142.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01097/1.319, allocations: 6.677 MB / 0.7899 GB, free: 136.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.46e-05/1.319, allocations: 5 kB / 0.7899 GB, free: 136.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002821/1.322, allocations: 1.635 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.005381/1.327, allocations: 0.7597 MB / 0.7922 GB, free: 134.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1006/1.428, allocations: 81.48 MB / 0.8718 GB, free: 39.89 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007271/1.435, allocations: 4.757 MB / 0.8764 GB, free: 35.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007537/1.443, allocations: 2.583 MB / 0.879 GB, free: 32.51 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00581/1.448, allocations: 3.155 MB / 0.882 GB, free: 29.36 MB / 0.545 GB Notification: Performance of SimCode: time 1.733e-06/1.448, allocations: 0 / 0.882 GB, free: 29.36 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.378/1.826, allocations: 99.39 MB / 0.9791 GB, free: 172 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/13.07, allocations: 10.7 kB / 0.9791 GB, free: 172 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Damper2_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_Damper2_fmu --startTime=0 --stopTime=7 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_Damper2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Damper2.pipe 2>&1)