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.002339/0.002339, allocations: 189.2 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.181/2.181, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001121/0.001121, allocations: 101.5 kB / 270.9 MB, free: 8.391 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.57/0.57, allocations: 43.55 MB / 362.7 MB, free: 52.08 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004742/0.0004742, allocations: 15.98 kB / 431.5 MB, free: 6.09 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1318, allocations: 58.85 MB / 490.3 MB, free: 11.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5065/0.6384, allocations: 109 MB / 0.5853 GB, free: 9.602 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002936/0.6388, allocations: 79.95 kB / 0.5854 GB, free: 9.523 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9516/1.59, allocations: 146.6 MB / 0.7286 GB, free: 85.64 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.287e-06/1.59, allocations: 0 / 0.7286 GB, free: 85.64 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0006088/1.591, allocations: 146.6 kB / 0.7287 GB, free: 85.63 MB / 490.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.03817/1.629, allocations: 7.081 MB / 0.7356 GB, free: 82.59 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.137e-05/1.629, allocations: 11.59 kB / 0.7356 GB, free: 82.59 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008468/1.638, allocations: 1.386 MB / 0.737 GB, free: 82.48 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04431/1.682, allocations: 3.619 MB / 0.7405 GB, free: 81.96 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03921/1.721, allocations: 7.72 MB / 0.7481 GB, free: 79.79 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001422/1.723, allocations: 0.6005 MB / 0.7486 GB, free: 79.55 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006736/1.73, allocations: 0.7885 MB / 0.7494 GB, free: 79.33 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1071/1.837, allocations: 21.84 MB / 0.7707 GB, free: 69.79 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000842/1.838, allocations: 95.38 kB / 0.7708 GB, free: 69.73 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005682/1.844, allocations: 383.8 kB / 0.7712 GB, free: 69.51 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00786/1.851, allocations: 1.945 MB / 0.7731 GB, free: 69.19 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08819/1.94, allocations: 17.72 MB / 0.7904 GB, free: 55.84 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5566/2.496, allocations: 79.66 MB / 0.8682 GB, free: 42.26 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03261/2.529, allocations: 6.643 MB / 0.8747 GB, free: 41.59 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02999/2.559, allocations: 9.919 MB / 0.8844 GB, free: 39.51 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02609/2.585, allocations: 4.388 MB / 0.8887 GB, free: 39.37 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=303): time 3.413e-05/2.585, allocations: 3.469 kB / 0.8887 GB, free: 39.37 MB / 0.4949 GB Notification: Performance of matching and sorting (n=337): time 0.1141/2.699, allocations: 22.62 MB / 0.9107 GB, free: 34.31 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.772e-05/2.7, allocations: 168.4 kB / 0.9109 GB, free: 34.15 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01627/2.716, allocations: 5.438 MB / 0.9162 GB, free: 33.54 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0007708/2.717, allocations: 78 kB / 0.9163 GB, free: 33.51 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.005708/2.722, allocations: 5.145 MB / 0.9213 GB, free: 30.46 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.002137/2.725, allocations: 1.279 MB / 0.9226 GB, free: 29.73 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001402/2.726, allocations: 197.2 kB / 0.9228 GB, free: 29.73 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0009311/2.727, allocations: 0.7207 MB / 0.9235 GB, free: 29.4 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009839/2.737, allocations: 2.893 MB / 0.9263 GB, free: 29.38 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01411/2.751, allocations: 8.636 MB / 0.9347 GB, free: 21.07 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01348/2.765, allocations: 4.882 MB / 0.9395 GB, free: 19.47 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002985/2.765, allocations: 61.45 kB / 0.9395 GB, free: 19.47 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1282) (initialization): time 0.03509/2.8, allocations: 11.15 MB / 0.9504 GB, free: 16.13 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001929/2.8, allocations: 131.2 kB / 0.9506 GB, free: 16.09 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000353/2.801, allocations: 206.2 kB / 0.9508 GB, free: 16.09 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003309/2.801, allocations: 300.5 kB / 0.951 GB, free: 16.09 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01494/2.816, allocations: 2.395 MB / 0.9534 GB, free: 15.81 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004751/2.816, allocations: 402.8 kB / 0.9538 GB, free: 15.72 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01224/2.829, allocations: 0.6228 MB / 0.9544 GB, free: 15.53 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002308/2.831, allocations: 0.5673 MB / 0.9549 GB, free: 15.45 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 928 * 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 (1257): * Single equations (assignments): 1253 * 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.01036/2.841, allocations: 3.391 MB / 0.9582 GB, free: 13.88 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001608/2.843, allocations: 0.5511 MB / 0.9588 GB, free: 13.57 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01218/2.855, allocations: 3.482 MB / 0.9622 GB, free: 12.18 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.606e-05/2.855, allocations: 36.53 kB / 0.9622 GB, free: 12.18 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.712e-05/2.855, allocations: 0 / 0.9622 GB, free: 12.18 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.152e-05/2.856, allocations: 18.72 kB / 0.9622 GB, free: 12.17 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04218/2.898, allocations: 13.89 MB / 0.9758 GB, free: 6.465 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.341e-05/2.898, allocations: 30.66 kB / 0.9758 GB, free: 6.465 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004772/2.903, allocations: 0.6242 MB / 0.9764 GB, free: 6.398 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.982e-05/2.903, allocations: 51.53 kB / 0.9765 GB, free: 6.398 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005831/2.903, allocations: 102.3 kB / 0.9766 GB, free: 6.359 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.036e-05/2.903, allocations: 72.86 kB / 0.9766 GB, free: 6.344 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.773e-05/2.903, allocations: 52.28 kB / 0.9767 GB, free: 6.328 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0197/2.923, allocations: 12.44 MB / 0.9888 GB, free: 8.801 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003885/2.927, allocations: 0.8559 MB / 0.9897 GB, free: 7.996 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00195/2.929, allocations: 103 kB / 0.9898 GB, free: 7.902 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005915/2.935, allocations: 221.6 kB / 0.99 GB, free: 7.734 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001076/2.936, allocations: 313.4 kB / 0.9903 GB, free: 7.496 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004388/2.937, allocations: 135.4 kB / 0.9904 GB, free: 7.371 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01342/2.95, allocations: 3.811 MB / 0.9941 GB, free: 4.258 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.41e-07/2.95, allocations: 0 / 0.9941 GB, free: 4.258 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0135/2.964, allocations: 1.59 MB / 0.9957 GB, free: 2.68 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 152 * 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 (318): * Single equations (assignments): 313 * 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.02935/2.993, allocations: 19.49 MB / 1.015 GB, free: 15.84 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02178/3.015, allocations: 6.609 MB / 1.021 GB, free: 10.04 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.583e-05/3.015, allocations: 4 kB / 1.021 GB, free: 10.04 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.006424/3.021, allocations: 1.763 MB / 1.023 GB, free: 8.477 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006747/3.028, allocations: 0.7286 MB / 1.024 GB, free: 7.863 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4938/3.522, allocations: 177.2 MB / 1.197 GB, free: 54.03 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01467/3.537, allocations: 5.297 MB / 1.202 GB, free: 53.15 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008621/3.546, allocations: 3.541 MB / 1.205 GB, free: 53.14 MB / 0.5886 GB Notification: Performance of SimCode: time 1.643e-06/3.546, allocations: 1.203 kB / 1.205 GB, free: 53.14 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.734/9.28, allocations: 129.4 MB / 1.332 GB, free: 151.3 MB / 0.5886 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) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2_res.mat does not exist to compare? outputFormat=mat