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: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Damper2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Damper2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Damper2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Damper2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009233/0.0009233, allocations: 175.1 kB / 16.72 MB, free: 5.055 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.171/1.171, allocations: 205.4 MB / 222.9 MB, free: 9.027 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.0007482/0.0007482, allocations: 82.34 kB / 271.2 MB, free: 8.262 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.2815/0.2815, allocations: 43.56 MB / 363.1 MB, free: 51.84 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003283/0.0003284, allocations: 12 kB / 432.1 MB, free: 5.516 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08503/0.08537, allocations: 58.85 MB / 490.9 MB, free: 10.58 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.2206/0.306, allocations: 79.52 MB / 0.5571 GB, free: 9.574 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03599/0.3421, allocations: 16.02 MB / 0.5727 GB, free: 14.64 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01453/0.3566, allocations: 367.8 kB / 0.5731 GB, free: 14.59 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01281/0.3695, allocations: 4.176 MB / 0.5771 GB, free: 13.1 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03339/0.4029, allocations: 12.15 MB / 0.589 GB, free: 5.656 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00579/0.4087, allocations: 1.137 MB / 0.5901 GB, free: 4.52 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.01136/0.4201, allocations: 8.3 MB / 0.5982 GB, free: 12.21 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01302/0.4332, allocations: 9.1 MB / 0.6071 GB, free: 3.039 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00409/0.4373, allocations: 2.18 MB / 0.6092 GB, free: 0.8516 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005241/0.4426, allocations: 3.61 MB / 0.6128 GB, free: 13.23 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001606/0.4442, allocations: 276 kB / 0.613 GB, free: 12.96 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003228/0.4475, allocations: 1.01 MB / 0.614 GB, free: 11.95 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003597/0.4511, allocations: 3.054 MB / 0.617 GB, free: 8.887 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004595/0.4557, allocations: 3.38 MB / 0.6203 GB, free: 5.48 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009359/0.4651, allocations: 9.395 MB / 0.6295 GB, free: 12.06 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.4651, allocations: 0 / 0.6295 GB, free: 12.06 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4651, allocations: 0 / 0.6295 GB, free: 12.06 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003135/0.4655, allocations: 0 / 0.6295 GB, free: 12.06 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.01255/0.478, allocations: 6.744 MB / 0.6361 GB, free: 5.23 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.4781, allocations: 16.03 kB / 0.6361 GB, free: 5.215 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002629/0.4807, allocations: 1.294 MB / 0.6373 GB, free: 3.91 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01068/0.4914, allocations: 2.814 MB / 0.6401 GB, free: 1.082 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008778/0.5002, allocations: 5.158 MB / 0.6451 GB, free: 11.86 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003762/0.5006, allocations: 460 kB / 0.6456 GB, free: 11.41 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001674/0.5023, allocations: 0.601 MB / 0.6461 GB, free: 10.81 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03964/0.542, allocations: 21.27 MB / 0.6669 GB, free: 4.379 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001718/0.5422, allocations: 71.39 kB / 0.667 GB, free: 4.309 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007085/0.5429, allocations: 291.7 kB / 0.6673 GB, free: 4.023 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005173/0.5481, allocations: 3.537 MB / 0.6707 GB, free: 496 kB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3672/0.9153, allocations: 17.25 MB / 0.6876 GB, free: 130.9 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06533/0.9807, allocations: 67.96 MB / 0.7539 GB, free: 83.5 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01561/0.9963, allocations: 6.766 MB / 0.7605 GB, free: 79.44 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00304/0.9994, allocations: 2.336 MB / 0.7628 GB, free: 77.09 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01243/1.012, allocations: 9.826 MB / 0.7724 GB, free: 67.04 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0122/1.024, allocations: 4.414 MB / 0.7767 GB, free: 62.57 MB / 490.8 MB Notification: Performance of pre-optimization done (n=299): time 4.969e-06/1.024, allocations: 0 / 0.7767 GB, free: 62.57 MB / 490.8 MB Notification: Performance of matching and sorting (n=333): time 0.04966/1.074, allocations: 23.21 MB / 0.7994 GB, free: 39.22 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.584e-05/1.074, allocations: 166.7 kB / 0.7996 GB, free: 39.03 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006186/1.08, allocations: 6.045 MB / 0.8055 GB, free: 32.97 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0003972/1.081, allocations: 77.7 kB / 0.8055 GB, free: 32.89 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002756/1.083, allocations: 5.311 MB / 0.8107 GB, free: 27.58 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009763/1.084, allocations: 1.263 MB / 0.812 GB, free: 26.32 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003652/1.085, allocations: 196 kB / 0.8121 GB, free: 26.13 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0003313/1.085, allocations: 0.7233 MB / 0.8128 GB, free: 25.4 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003937/1.089, allocations: 2.838 MB / 0.8156 GB, free: 22.56 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005626/1.095, allocations: 8.651 MB / 0.8241 GB, free: 11.04 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01208/1.107, allocations: 12.53 MB / 0.8363 GB, free: 11.59 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001636/1.107, allocations: 60 kB / 0.8364 GB, free: 11.53 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1284) (initialization): time 0.02086/1.128, allocations: 11.26 MB / 0.8474 GB, free: 228 kB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002075/1.128, allocations: 119.6 kB / 0.8475 GB, free: 104 kB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000321/1.128, allocations: 206.2 kB / 0.8477 GB, free: 15.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002932/1.129, allocations: 272 kB / 0.8479 GB, free: 15.63 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007495/1.136, allocations: 2.363 MB / 0.8502 GB, free: 13.27 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003628/1.137, allocations: 404.7 kB / 0.8506 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006363/1.143, allocations: 495.3 kB / 0.8511 GB, free: 12.39 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001251/1.144, allocations: 0.5703 MB / 0.8517 GB, free: 11.82 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 (1259): * Single equations (assignments): 1255 * 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.006459/1.151, allocations: 3.405 MB / 0.855 GB, free: 8.398 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001155/1.152, allocations: 0.5476 MB / 0.8555 GB, free: 7.844 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006893/1.159, allocations: 3.531 MB / 0.859 GB, free: 4.262 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.59e-05/1.159, allocations: 32 kB / 0.859 GB, free: 4.23 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.197e-05/1.159, allocations: 4 kB / 0.859 GB, free: 4.227 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.101e-05/1.159, allocations: 15.94 kB / 0.859 GB, free: 4.211 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2126/1.371, allocations: 13.82 MB / 0.8725 GB, free: 150.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.98e-05/1.371, allocations: 34.95 kB / 0.8725 GB, free: 150.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00234/1.374, allocations: 0.6814 MB / 0.8732 GB, free: 150.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.108e-05/1.374, allocations: 51.62 kB / 0.8733 GB, free: 150.1 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001998/1.374, allocations: 106.3 kB / 0.8734 GB, free: 150.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.237e-05/1.374, allocations: 65.81 kB / 0.8734 GB, free: 150.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.131e-05/1.374, allocations: 57.58 kB / 0.8735 GB, free: 150 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007514/1.382, allocations: 6.21 MB / 0.8795 GB, free: 147.1 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002245/1.384, allocations: 0.8514 MB / 0.8804 GB, free: 146.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008162/1.385, allocations: 109.8 kB / 0.8805 GB, free: 146.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002013/1.387, allocations: 176.3 kB / 0.8806 GB, free: 146.8 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004405/1.387, allocations: 308.9 kB / 0.8809 GB, free: 146.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001717/1.387, allocations: 137 kB / 0.8811 GB, free: 146.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00513/1.393, allocations: 3.751 MB / 0.8847 GB, free: 145.5 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.5e-07/1.393, allocations: 0 / 0.8847 GB, free: 145.5 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00629/1.399, allocations: 1.564 MB / 0.8863 GB, free: 145.3 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.007248/1.406, allocations: 6.953 MB / 0.8931 GB, free: 141.4 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.009861/1.416, allocations: 6.564 MB / 0.8995 GB, free: 139.2 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.596e-05/1.416, allocations: 5.219 kB / 0.8995 GB, free: 139.2 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003054/1.419, allocations: 1.763 MB / 0.9012 GB, free: 138.6 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02804/1.447, allocations: 0.78 MB / 0.9019 GB, free: 138.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07726/1.525, allocations: 58.98 MB / 0.9595 GB, free: 87.61 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004824/1.529, allocations: 5.149 MB / 0.9646 GB, free: 83.68 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003377/1.533, allocations: 3.543 MB / 0.968 GB, free: 80.39 MB / 0.5105 GB Notification: Performance of SimCode: time 1.062e-06/1.533, allocations: 0 / 0.968 GB, free: 80.39 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.843/11.38, allocations: 117.9 MB / 1.083 GB, free: 155.5 MB / 0.5262 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Damper2_fmu --startTime=0 --stopTime=7 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Damper2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2.pipe 2>&1)