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.001611/0.001611, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.166/2.166, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001106/0.001105, allocations: 94.11 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3023/0.3023, allocations: 43.49 MB / 353.6 MB, free: 2.262 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.137e-05/2.151e-05, allocations: 4.219 kB / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4227/0.4227, allocations: 58.86 MB / 477.2 MB, free: 5.148 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2021/0.6249, allocations: 108.3 MB / 0.5718 GB, free: 6.863 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00029/0.6252, allocations: 79.95 kB / 0.5718 GB, free: 6.785 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.9288/1.554, allocations: 143.2 MB / 0.7117 GB, free: 95.05 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.204e-06/1.554, allocations: 0 / 0.7117 GB, free: 95.05 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0003911/1.555, allocations: 147.5 kB / 0.7118 GB, free: 95.04 MB / 475.1 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.02643/1.581, allocations: 6.731 MB / 0.7184 GB, free: 89.47 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.407e-05/1.581, allocations: 12.03 kB / 0.7184 GB, free: 89.46 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02913/1.61, allocations: 3.625 MB / 0.722 GB, free: 85.82 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02693/1.637, allocations: 7.674 MB / 0.7295 GB, free: 78.15 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000659/1.638, allocations: 264 kB / 0.7297 GB, free: 77.89 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004894/1.643, allocations: 471.9 kB / 0.7302 GB, free: 77.43 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02893/1.672, allocations: 11.43 MB / 0.7413 GB, free: 66 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04452/1.716, allocations: 16.62 MB / 0.7576 GB, free: 47.77 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005035/1.717, allocations: 103.1 kB / 0.7577 GB, free: 47.67 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003816/1.721, allocations: 51.94 kB / 0.7577 GB, free: 47.62 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005318/1.726, allocations: 1.948 MB / 0.7596 GB, free: 45.67 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5003/2.227, allocations: 77.34 MB / 0.8351 GB, free: 111.7 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008114/2.235, allocations: 3.469 MB / 0.8385 GB, free: 111.1 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005418/2.24, allocations: 1.936 MB / 0.8404 GB, free: 111 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002515/2.243, allocations: 1.785 MB / 0.8422 GB, free: 109.5 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006669/2.249, allocations: 2.067 MB / 0.8442 GB, free: 109.4 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=306): time 1.486e-05/2.25, allocations: 0 / 0.8442 GB, free: 109.4 MB / 0.4952 GB Notification: Performance of matching and sorting (n=334): time 0.07273/2.322, allocations: 16.71 MB / 0.8605 GB, free: 105.1 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.638e-05/2.322, allocations: 167.3 kB / 0.8607 GB, free: 105 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01057/2.333, allocations: 4.458 MB / 0.865 GB, free: 104.5 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.0007245/2.334, allocations: 28.08 kB / 0.865 GB, free: 104.5 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.005705/2.34, allocations: 5.294 MB / 0.8702 GB, free: 101.3 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.002009/2.342, allocations: 1.233 MB / 0.8714 GB, free: 100.6 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001177/2.343, allocations: 1.969 kB / 0.8714 GB, free: 100.6 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 0.0008299/2.344, allocations: 0.7307 MB / 0.8721 GB, free: 100.2 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006841/2.35, allocations: 2.525 MB / 0.8746 GB, free: 100.2 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01097/2.362, allocations: 8.426 MB / 0.8828 GB, free: 92.34 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01041/2.372, allocations: 4.554 MB / 0.8873 GB, free: 91.02 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002713/2.372, allocations: 64.34 kB / 0.8873 GB, free: 91.02 MB / 0.4952 GB Notification: Performance of matching and sorting (n=1315) (initialization): time 0.02778/2.4, allocations: 9.585 MB / 0.8967 GB, free: 88.3 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002126/2.4, allocations: 121.5 kB / 0.8968 GB, free: 88.27 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003469/2.401, allocations: 213.6 kB / 0.897 GB, free: 88.27 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003794/2.401, allocations: 312.7 kB / 0.8973 GB, free: 88.27 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01574/2.417, allocations: 2.46 MB / 0.8997 GB, free: 87.98 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004277/2.417, allocations: 419.4 kB / 0.9001 GB, free: 87.89 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01233/2.43, allocations: 439.6 kB / 0.9005 GB, free: 87.86 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002905/2.433, allocations: 0.5858 MB / 0.9011 GB, free: 87.78 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 963 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1290): * Single equations (assignments): 1286 * 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.003938/2.437, allocations: 0.6434 MB / 0.9017 GB, free: 87.27 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009386/2.446, allocations: 3.201 MB / 0.9049 GB, free: 86.05 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001821/2.448, allocations: 0.4928 MB / 0.9053 GB, free: 85.78 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008851/2.457, allocations: 2.963 MB / 0.9082 GB, free: 84.66 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.873e-05/2.457, allocations: 34.78 kB / 0.9083 GB, free: 84.66 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.701e-05/2.457, allocations: 3.781 kB / 0.9083 GB, free: 84.66 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.859e-05/2.457, allocations: 18.38 kB / 0.9083 GB, free: 84.66 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03484/2.492, allocations: 12.06 MB / 0.9201 GB, free: 78.02 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.457e-05/2.492, allocations: 28 kB / 0.9201 GB, free: 78 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004782/2.497, allocations: 0.6123 MB / 0.9207 GB, free: 77.47 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 8e-05/2.497, allocations: 52 kB / 0.9207 GB, free: 77.42 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000552/2.498, allocations: 62.89 kB / 0.9208 GB, free: 77.36 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.758e-05/2.498, allocations: 63.41 kB / 0.9209 GB, free: 77.3 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.202e-05/2.498, allocations: 47.81 kB / 0.9209 GB, free: 77.26 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01218/2.51, allocations: 10.36 MB / 0.931 GB, free: 66.13 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003389/2.513, allocations: 0.7875 MB / 0.9318 GB, free: 65.38 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001741/2.515, allocations: 47.03 kB / 0.9318 GB, free: 65.34 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005423/2.521, allocations: 182.4 kB / 0.932 GB, free: 65.22 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009808/2.522, allocations: 300.8 kB / 0.9323 GB, free: 64.99 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004283/2.522, allocations: 128.1 kB / 0.9324 GB, free: 64.87 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.007834/2.53, allocations: 2.912 MB / 0.9353 GB, free: 62.36 MB / 0.4952 GB Notification: Performance of sort global known variables: time 2.264e-06/2.53, allocations: 0 / 0.9353 GB, free: 62.36 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.01268/2.543, allocations: 1.351 MB / 0.9366 GB, free: 61.02 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 143 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (315): * Single equations (assignments): 310 * 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.01445/2.557, allocations: 17.86 MB / 0.954 GB, free: 42.53 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.01352/2.571, allocations: 5.863 MB / 0.9598 GB, free: 37.16 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 3.497e-05/2.571, allocations: 4 kB / 0.9598 GB, free: 37.16 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.004335/2.575, allocations: 1.58 MB / 0.9613 GB, free: 35.71 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005765/2.581, allocations: 0.545 MB / 0.9618 GB, free: 35.24 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05423/2.635, allocations: 15.59 MB / 0.9771 GB, free: 21.29 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01385/2.649, allocations: 5.283 MB / 0.9822 GB, free: 17.42 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007963/2.657, allocations: 3.519 MB / 0.9857 GB, free: 14.14 MB / 0.4952 GB Notification: Performance of SimCode: time 2.324e-06/2.657, allocations: 0 / 0.9857 GB, free: 14.14 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.278/7.935, allocations: 126.1 MB / 1.109 GB, free: 98.33 MB / 0.5265 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