Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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.Engine1b,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",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.001759/0.001759, allocations: 180.6 kB / 16.39 MB, free: 5.762 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.374/1.374, allocations: 223.2 MB / 240.3 MB, free: 10.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009366/0.0009366, allocations: 95.62 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003017/0.0003014, allocations: 8 kB / 351.2 MB, free: 14.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2596/0.2599, allocations: 50.41 MB / 401.6 MB, free: 32.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1226/0.3826, allocations: 99.73 MB / 0.4896 GB, free: 12.66 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002873/0.3829, allocations: 91.95 kB / 0.4897 GB, free: 12.57 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6015/0.9844, allocations: 168 MB / 0.6537 GB, free: 4.895 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.9844, allocations: 3.938 kB / 0.6537 GB, free: 4.891 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008835/0.9853, allocations: 160 kB / 0.6539 GB, free: 4.734 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: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.5422/1.527, allocations: 9.241 MB / 0.6629 GB, free: 46.45 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.665e-05/1.528, allocations: 10.12 kB / 0.6629 GB, free: 46.45 MB / 426.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007534/1.535, allocations: 1.259 MB / 0.6642 GB, free: 46.36 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06068/1.596, allocations: 16.54 MB / 0.6803 GB, free: 45.8 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03162/1.627, allocations: 12.88 MB / 0.6929 GB, free: 45.07 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000774/1.628, allocations: 0.5503 MB / 0.6934 GB, free: 45.05 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00405/1.632, allocations: 0.7639 MB / 0.6942 GB, free: 45.04 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03468/1.667, allocations: 16.97 MB / 0.7107 GB, free: 41.43 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005333/1.668, allocations: 114.2 kB / 0.7108 GB, free: 41.41 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002232/1.67, allocations: 347.4 kB / 0.7112 GB, free: 41.41 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001869/1.672, allocations: 1.537 MB / 0.7127 GB, free: 41.39 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02555/1.697, allocations: 13.35 MB / 0.7257 GB, free: 40.66 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09001/1.787, allocations: 75.17 MB / 0.7991 GB, free: 10.75 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02096/1.808, allocations: 7.854 MB / 0.8068 GB, free: 4.316 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02418/1.833, allocations: 11.89 MB / 0.8184 GB, free: 10.25 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.532e-05/1.833, allocations: 64.56 kB / 0.8185 GB, free: 10.18 MB / 474.8 MB Notification: Performance of pre-optimization done (n=294): time 6.563e-06/1.833, allocations: 0 / 0.8185 GB, free: 10.18 MB / 474.8 MB Notification: Performance of matching and sorting (n=361): time 0.4327/2.266, allocations: 48.61 MB / 0.8659 GB, free: 86.5 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001159/2.266, allocations: 399.1 kB / 0.8663 GB, free: 86.06 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01275/2.278, allocations: 6.312 MB / 0.8725 GB, free: 85.58 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007619/2.279, allocations: 81.2 kB / 0.8726 GB, free: 85.55 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00392/2.283, allocations: 5.411 MB / 0.8778 GB, free: 83.02 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001567/2.285, allocations: 1.325 MB / 0.8791 GB, free: 82.23 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001038/2.286, allocations: 171 kB / 0.8793 GB, free: 82.23 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.000709/2.287, allocations: 0.6708 MB / 0.8799 GB, free: 81.91 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006322/2.293, allocations: 3.971 MB / 0.8838 GB, free: 81.89 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01106/2.304, allocations: 8.746 MB / 0.8924 GB, free: 75.78 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008959/2.313, allocations: 5.723 MB / 0.898 GB, free: 75.72 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002136/2.313, allocations: 50.83 kB / 0.898 GB, free: 75.72 MB / 474.8 MB Notification: Performance of matching and sorting (n=1121) (initialization): time 0.03558/2.349, allocations: 17.42 MB / 0.915 GB, free: 72.3 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001974/2.349, allocations: 75.94 kB / 0.9151 GB, free: 72.3 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002833/2.349, allocations: 169.8 kB / 0.9152 GB, free: 72.29 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01694/2.366, allocations: 5.755 MB / 0.9209 GB, free: 71.26 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006241/2.373, allocations: 1.85 MB / 0.9227 GB, free: 70.49 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03952/2.412, allocations: 30.17 MB / 0.9521 GB, free: 44.39 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009585/2.422, allocations: 0.541 MB / 0.9527 GB, free: 43.95 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00231/2.424, allocations: 494.2 kB / 0.9531 GB, free: 43.47 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 756 * Number of states: 0 () * Number of discrete variables: 72 (rod3.color[3],rod3.color[2],rod3.color[1],rod1.color[3],rod1.color[2],rod1.color[1],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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (982): * Single equations (assignments): 976 * 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%) 97,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.009961/2.434, allocations: 3.594 MB / 0.9567 GB, free: 40.34 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002322/2.437, allocations: 0.6711 MB / 0.9573 GB, free: 39.66 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02719/2.464, allocations: 11.59 MB / 0.9686 GB, free: 30.77 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-05/2.464, allocations: 36 kB / 0.9687 GB, free: 30.73 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.286e-05/2.464, allocations: 23.95 kB / 0.9687 GB, free: 30.71 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.672e-05/2.464, allocations: 18.09 kB / 0.9687 GB, free: 30.71 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05619/2.52, allocations: 25.16 MB / 0.9933 GB, free: 8.812 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-05/2.52, allocations: 4 kB / 0.9933 GB, free: 8.809 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002458/2.523, allocations: 468 kB / 0.9937 GB, free: 8.352 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01646/2.539, allocations: 5.397 MB / 0.999 GB, free: 2.945 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001015/2.54, allocations: 67.2 kB / 0.9991 GB, free: 2.883 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3237/2.864, allocations: 29.04 MB / 1.027 GB, free: 76.33 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.652e-06/2.864, allocations: 8.5 kB / 1.027 GB, free: 76.33 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02936/2.893, allocations: 17.76 MB / 1.045 GB, free: 74.27 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005669/2.899, allocations: 1.31 MB / 1.046 GB, free: 74.18 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002201/2.901, allocations: 73.44 kB / 1.046 GB, free: 74.17 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005206/2.907, allocations: 270.8 kB / 1.046 GB, free: 74.17 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001196/2.908, allocations: 254.3 kB / 1.047 GB, free: 74.16 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000355/2.908, allocations: 94 kB / 1.047 GB, free: 74.16 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.01003/2.918, allocations: 4.559 MB / 1.051 GB, free: 73.54 MB / 474.8 MB Notification: Performance of sort global known variables: time 6.32e-07/2.918, allocations: 0 / 1.051 GB, free: 73.54 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01163/2.93, allocations: 2.051 MB / 1.053 GB, free: 73.33 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 2 (inertia.phi,inertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (233): * Single equations (assignments): 227 * 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%) 90,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.03174/2.962, allocations: 19.41 MB / 1.072 GB, free: 64.77 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.01654/2.978, allocations: 10.57 MB / 1.082 GB, free: 61.13 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.425e-05/2.978, allocations: 6.797 kB / 1.082 GB, free: 61.13 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.007564/2.986, allocations: 4.758 MB / 1.087 GB, free: 59.1 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006353/2.992, allocations: 1.005 MB / 1.088 GB, free: 58.72 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4903/3.483, allocations: 195.3 MB / 1.279 GB, free: 34.09 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0112/3.494, allocations: 5.905 MB / 1.285 GB, free: 33.18 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.008315/3.502, allocations: 2.732 MB / 1.287 GB, free: 33.11 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00645/3.509, allocations: 3.901 MB / 1.291 GB, free: 33.11 MB / 0.4949 GB Notification: Performance of SimCode: time 7.725e-06/3.509, allocations: 0 / 1.291 GB, free: 33.11 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5136/4.022, allocations: 166.2 MB / 1.453 GB, free: 81.88 MB / 0.4949 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001828/4.023, allocations: 211.7 kB / 1.454 GB, free: 81.64 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.277/12.3, allocations: 0 / 1.454 GB, free: 81.64 MB / 0.4949 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat does not exist to compare? outputFormat=mat