Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001/0.001, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 221.3 MB / 235.5 MB, free: 2.871 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009933/0.0009932, allocations: 76.11 kB / 286.5 MB, free: 180 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.794e-05/2.81e-05, allocations: 8 kB / 343.9 MB, free: 4.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1063, allocations: 50.42 MB / 394.3 MB, free: 1.746 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4137/0.5201, allocations: 98.06 MB / 492.4 MB, free: 5.363 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000277/0.5204, allocations: 87.95 kB / 492.5 MB, free: 5.277 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7124/1.233, allocations: 163.3 MB / 0.6404 GB, free: 63.7 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.673e-06/1.233, allocations: 4 kB / 0.6404 GB, free: 63.7 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0009144/1.234, allocations: 156 kB / 0.6405 GB, free: 63.55 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.03015/1.264, allocations: 7.861 MB / 0.6482 GB, free: 55.61 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.136e-05/1.264, allocations: 11.97 kB / 0.6482 GB, free: 55.59 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006999/1.271, allocations: 1.202 MB / 0.6494 GB, free: 54.38 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06068/1.332, allocations: 16.48 MB / 0.6655 GB, free: 37.87 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03373/1.366, allocations: 12.54 MB / 0.6777 GB, free: 25.23 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006053/1.366, allocations: 0.5255 MB / 0.6783 GB, free: 24.7 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004048/1.37, allocations: 0.726 MB / 0.679 GB, free: 23.98 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04219/1.413, allocations: 16.27 MB / 0.6949 GB, free: 6.375 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004493/1.413, allocations: 111 kB / 0.695 GB, free: 6.266 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0014/1.414, allocations: 335.9 kB / 0.6953 GB, free: 5.938 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001883/1.416, allocations: 1.488 MB / 0.6967 GB, free: 4.445 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03087/1.447, allocations: 12.73 MB / 0.7092 GB, free: 7.703 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4196/1.867, allocations: 73.26 MB / 0.7807 GB, free: 33.36 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01949/1.886, allocations: 7.434 MB / 0.788 GB, free: 32.66 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004925/1.891, allocations: 3.964 MB / 0.7918 GB, free: 32.62 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01903/1.91, allocations: 11.51 MB / 0.8031 GB, free: 27.27 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.423e-05/1.911, allocations: 67.27 kB / 0.8031 GB, free: 27.21 MB / 442.7 MB Notification: Performance of pre-optimization done (n=280): time 6.632e-06/1.911, allocations: 3.094 kB / 0.8031 GB, free: 27.21 MB / 442.7 MB Notification: Performance of matching and sorting (n=339): time 0.1317/2.042, allocations: 37.54 MB / 0.8398 GB, free: 15.18 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001375/2.042, allocations: 397.8 kB / 0.8402 GB, free: 14.7 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01223/2.055, allocations: 6.105 MB / 0.8461 GB, free: 9.414 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009062/2.056, allocations: 77.7 kB / 0.8462 GB, free: 9.332 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003739/2.059, allocations: 5.236 MB / 0.8513 GB, free: 4.668 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001784/2.061, allocations: 1.246 MB / 0.8526 GB, free: 3.562 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006748/2.062, allocations: 168 kB / 0.8527 GB, free: 3.398 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003905/2.062, allocations: 0.651 MB / 0.8533 GB, free: 2.84 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007902/2.07, allocations: 3.946 MB / 0.8572 GB, free: 0 / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01175/2.082, allocations: 8.403 MB / 0.8654 GB, free: 5.848 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009903/2.092, allocations: 5.488 MB / 0.8708 GB, free: 1.23 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000141/2.092, allocations: 44 kB / 0.8708 GB, free: 1.188 MB / 458.7 MB Notification: Performance of matching and sorting (n=1083) (initialization): time 0.04643/2.139, allocations: 16.92 MB / 0.8873 GB, free: 4.039 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001349/2.139, allocations: 76 kB / 0.8874 GB, free: 3.965 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002272/2.139, allocations: 160 kB / 0.8876 GB, free: 3.809 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3723/2.511, allocations: 5.482 MB / 0.8929 GB, free: 101.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00802/2.519, allocations: 1.803 MB / 0.8947 GB, free: 101.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04517/2.565, allocations: 28.04 MB / 0.9221 GB, free: 97.56 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009165/2.574, allocations: 0.5222 MB / 0.9226 GB, free: 97.56 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002033/2.576, allocations: 480.8 kB / 0.923 GB, free: 97.56 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 740 * Number of states: 0 () * Number of discrete variables: 66 (cylinder.boxColor[3],cylinder.boxColor[2],cylinder.boxColor[1],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],mid.color[3],mid.color[2],mid.color[1],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[1],crank2.color[3],crank2.color[2],crank2.color[1],crank2.body.sphereColor[3],crank2.body.sphereColor[2],crank2.body.sphereColor[1],crank1.color[3],crank1.color[2],crank1.color[1],crank1.body.sphereColor[3],crank1.body.sphereColor[2],crank1.body.sphereColor[1],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.body.sphereColor[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 (947): * Single equations (assignments): 941 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,55.1%) 94,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.002578/2.579, allocations: 0.7424 MB / 0.9237 GB, free: 97.45 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001655/2.58, allocations: 0.6501 MB / 0.9244 GB, free: 97.45 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0236/2.604, allocations: 10.88 MB / 0.935 GB, free: 95.17 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.754e-05/2.604, allocations: 34.38 kB / 0.935 GB, free: 95.17 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.372e-05/2.604, allocations: 21.31 kB / 0.9351 GB, free: 95.17 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.728e-05/2.604, allocations: 20.48 kB / 0.9351 GB, free: 95.17 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04562/2.65, allocations: 23.9 MB / 0.9584 GB, free: 85.52 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.054e-05/2.65, allocations: 7.906 kB / 0.9584 GB, free: 85.52 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0024/2.652, allocations: 450 kB / 0.9588 GB, free: 85.51 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01547/2.668, allocations: 5.079 MB / 0.9638 GB, free: 84.62 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008541/2.669, allocations: 62.59 kB / 0.9639 GB, free: 84.58 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.035/2.704, allocations: 26.73 MB / 0.99 GB, free: 68.86 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.107e-05/2.704, allocations: 18.03 kB / 0.99 GB, free: 68.86 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02924/2.733, allocations: 16.76 MB / 1.006 GB, free: 54.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002422/2.735, allocations: 0.6643 MB / 1.007 GB, free: 54.14 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001798/2.737, allocations: 63.19 kB / 1.007 GB, free: 54.08 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003943/2.741, allocations: 253.4 kB / 1.007 GB, free: 53.92 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001029/2.742, allocations: 250.7 kB / 1.008 GB, free: 53.77 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002864/2.743, allocations: 84.94 kB / 1.008 GB, free: 53.69 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.009586/2.752, allocations: 4.4 MB / 1.012 GB, free: 49.84 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.61e-07/2.752, allocations: 1.469 kB / 1.012 GB, free: 49.84 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01117/2.763, allocations: 1.973 MB / 1.014 GB, free: 47.88 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 2 (inertia.phi,inertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (214): * Single equations (assignments): 208 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,55.1%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.02928/2.793, allocations: 18.49 MB / 1.032 GB, free: 30.46 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01744/2.81, allocations: 9.977 MB / 1.042 GB, free: 20.63 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.337e-05/2.81, allocations: 4 kB / 1.042 GB, free: 20.63 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007835/2.818, allocations: 4.437 MB / 1.046 GB, free: 16.16 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007337/2.825, allocations: 0.978 MB / 1.047 GB, free: 15.23 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3605/3.186, allocations: 18.14 MB / 1.065 GB, free: 114.2 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01572/3.202, allocations: 5.689 MB / 1.07 GB, free: 113.3 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01027/3.212, allocations: 2.637 MB / 1.073 GB, free: 113.2 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007023/3.219, allocations: 3.747 MB / 1.076 GB, free: 113.2 MB / 490.7 MB Notification: Performance of SimCode: time 1.573e-06/3.219, allocations: 3.688 kB / 1.076 GB, free: 113.2 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2615/3.481, allocations: 158.9 MB / 1.232 GB, free: 10.2 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003216/3.481, allocations: 197.3 kB / 1.232 GB, free: 9.961 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.446/11.93, allocations: 4 kB / 1.232 GB, free: 9.957 MB / 490.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat does not exist to compare? outputFormat=mat