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.0009601/0.0009602, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 221.5 MB / 230.3 MB, free: 7.523 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.0008671/0.0008671, allocations: 97.97 kB / 281.2 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.13e-05/2.11e-05, allocations: 4 kB / 337.1 MB, free: 9.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1122, allocations: 50.42 MB / 387.6 MB, free: 7.473 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3964/0.5086, allocations: 97.4 MB / 485 MB, free: 13.29 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002639/0.509, allocations: 83.95 kB / 485 MB, free: 13.21 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6929/1.202, allocations: 160.2 MB / 0.6301 GB, free: 75.72 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.027e-05/1.202, allocations: 0 / 0.6301 GB, free: 75.72 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006573/1.203, allocations: 152 kB / 0.6303 GB, free: 75.57 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.02645/1.229, allocations: 7.861 MB / 0.6379 GB, free: 67.66 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.586e-05/1.229, allocations: 12.03 kB / 0.638 GB, free: 67.64 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0623/1.291, allocations: 16.48 MB / 0.654 GB, free: 51.13 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03097/1.323, allocations: 12.53 MB / 0.6663 GB, free: 38.63 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003959/1.323, allocations: 228 kB / 0.6665 GB, free: 38.41 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00357/1.327, allocations: 447.6 kB / 0.6669 GB, free: 37.97 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01873/1.345, allocations: 9.473 MB / 0.6762 GB, free: 28.5 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03515/1.381, allocations: 14.28 MB / 0.6901 GB, free: 12.91 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006732/1.381, allocations: 119 kB / 0.6902 GB, free: 12.79 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003029/1.384, allocations: 40 kB / 0.6903 GB, free: 12.75 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002157/1.386, allocations: 1.48 MB / 0.6917 GB, free: 11.28 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6592/2.046, allocations: 71.17 MB / 0.7612 GB, free: 45.09 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008667/2.054, allocations: 5.401 MB / 0.7665 GB, free: 44.43 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005615/2.06, allocations: 3.861 MB / 0.7703 GB, free: 44.38 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001032/2.061, allocations: 0.831 MB / 0.7711 GB, free: 43.72 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.089e-05/2.061, allocations: 75.77 kB / 0.7711 GB, free: 43.67 MB / 442.8 MB Notification: Performance of pre-optimization done (n=287): time 6.883e-06/2.061, allocations: 0 / 0.7711 GB, free: 43.67 MB / 442.8 MB Notification: Performance of matching and sorting (n=347): time 0.09658/2.158, allocations: 40.02 MB / 0.8102 GB, free: 35.36 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001807/2.158, allocations: 396.8 kB / 0.8106 GB, free: 34.91 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01221/2.17, allocations: 5.39 MB / 0.8159 GB, free: 33.04 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001059/2.171, allocations: 34.25 kB / 0.8159 GB, free: 33 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004796/2.176, allocations: 5.253 MB / 0.821 GB, free: 29.11 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001976/2.178, allocations: 1.234 MB / 0.8222 GB, free: 28.18 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008175/2.179, allocations: 0 / 0.8222 GB, free: 28.18 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0004596/2.179, allocations: 0.6608 MB / 0.8229 GB, free: 27.72 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004318/2.184, allocations: 3.634 MB / 0.8264 GB, free: 26.32 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006394/2.19, allocations: 8.399 MB / 0.8346 GB, free: 17.07 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007135/2.197, allocations: 5.403 MB / 0.8399 GB, free: 12.7 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001478/2.198, allocations: 48 kB / 0.84 GB, free: 12.66 MB / 442.8 MB Notification: Performance of matching and sorting (n=1115) (initialization): time 0.03551/2.233, allocations: 15.63 MB / 0.8552 GB, free: 36 kB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003922/2.233, allocations: 96.61 kB / 0.8553 GB, free: 0 / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00131/2.235, allocations: 251.9 kB / 0.8556 GB, free: 0 / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01715/2.252, allocations: 5.394 MB / 0.8608 GB, free: 12.38 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007164/2.259, allocations: 1.854 MB / 0.8626 GB, free: 10.77 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0403/2.299, allocations: 26.26 MB / 0.8883 GB, free: 4.887 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009114/2.309, allocations: 371.5 kB / 0.8886 GB, free: 4.613 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002711/2.311, allocations: 499 kB / 0.8891 GB, free: 4.137 MB / 474.8 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: b2.frame_b.r_0[2]:DUMMY_STATE(flow=false unit = "m" ) "Position vector from world frame to the connector frame origin, resolved in world frame" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 764 * 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 (979): * Single equations (assignments): 973 * 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,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.002754/2.314, allocations: 0.5402 MB / 0.8896 GB, free: 3.598 MB / 474.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.3378/2.652, allocations: 10.93 MB / 0.9003 GB, free: 107.1 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002228/2.654, allocations: 0.6145 MB / 0.9009 GB, free: 107.1 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02716/2.682, allocations: 10.59 MB / 0.9113 GB, free: 106.8 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.876e-05/2.682, allocations: 39.97 kB / 0.9113 GB, free: 106.8 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.797e-05/2.682, allocations: 18.53 kB / 0.9113 GB, free: 106.8 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.056e-05/2.682, allocations: 17.17 kB / 0.9113 GB, free: 106.8 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04621/2.728, allocations: 22.78 MB / 0.9336 GB, free: 103.9 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.059e-05/2.728, allocations: 7.25 kB / 0.9336 GB, free: 103.9 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002156/2.73, allocations: 460.2 kB / 0.934 GB, free: 103.9 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01611/2.746, allocations: 5.016 MB / 0.9389 GB, free: 103.6 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007944/2.747, allocations: 13.81 kB / 0.9389 GB, free: 103.6 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02992/2.777, allocations: 24.68 MB / 0.963 GB, free: 92.06 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.1e-05/2.777, allocations: 14.83 kB / 0.963 GB, free: 92.05 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02684/2.804, allocations: 16.51 MB / 0.9792 GB, free: 85.38 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001857/2.806, allocations: 0.6198 MB / 0.9798 GB, free: 84.93 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001347/2.807, allocations: 14.33 kB / 0.9798 GB, free: 84.92 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003681/2.811, allocations: 205.6 kB / 0.98 GB, free: 84.92 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008022/2.812, allocations: 245.6 kB / 0.9802 GB, free: 84.88 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002583/2.812, allocations: 88.81 kB / 0.9803 GB, free: 84.86 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.006539/2.819, allocations: 3.761 MB / 0.984 GB, free: 81.82 MB / 474.8 MB Notification: Performance of sort global known variables: time 5.61e-07/2.819, allocations: 0 / 0.984 GB, free: 81.82 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.008979/2.828, allocations: 1.728 MB / 0.9857 GB, free: 80.09 MB / 474.8 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 (222): * Single equations (assignments): 216 * 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.02613/2.854, allocations: 18.27 MB / 1.004 GB, free: 64.46 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.01552/2.869, allocations: 9.62 MB / 1.013 GB, free: 56.05 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.119e-05/2.869, allocations: 4 kB / 1.013 GB, free: 56.05 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006601/2.876, allocations: 4.328 MB / 1.017 GB, free: 52.19 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005276/2.881, allocations: 0.8501 MB / 1.018 GB, free: 51.38 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04045/2.922, allocations: 17.77 MB / 1.035 GB, free: 33.54 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009286/2.931, allocations: 5.698 MB / 1.041 GB, free: 27.84 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 0.007978/2.939, allocations: 2.695 MB / 1.044 GB, free: 25.16 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005678/2.945, allocations: 3.748 MB / 1.047 GB, free: 21.41 MB / 474.8 MB Notification: Performance of SimCode: time 9.02e-07/2.945, allocations: 0 / 1.047 GB, free: 21.41 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4996/3.445, allocations: 149.2 MB / 1.193 GB, free: 28.75 MB / 474.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001332/3.445, allocations: 148.8 kB / 1.193 GB, free: 28.55 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.02/11.46, allocations: 0 / 1.193 GB, free: 28.55 MB / 474.8 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