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.002372/0.002372, allocations: 176.4 kB / 8.346 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.434/1.434, allocations: 221.5 MB / 230.3 MB, free: 7.547 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.0009288/0.0009287, allocations: 93.8 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.693e-05/2.7e-05, allocations: 4 kB / 337.1 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1042, allocations: 50.42 MB / 387.6 MB, free: 7.461 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3642/0.4685, allocations: 98.99 MB / 486.5 MB, free: 11.66 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00033/0.4689, allocations: 87.95 kB / 486.6 MB, free: 11.57 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6101/1.079, allocations: 164.8 MB / 0.6362 GB, free: 69.78 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.645e-06/1.079, allocations: 0 / 0.6362 GB, free: 69.78 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006509/1.08, allocations: 162.3 kB / 0.6363 GB, free: 69.62 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.02513/1.105, allocations: 8.166 MB / 0.6443 GB, free: 61.4 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/1.105, allocations: 8.031 kB / 0.6443 GB, free: 61.39 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06083/1.166, allocations: 16.56 MB / 0.6605 GB, free: 44.8 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03002/1.196, allocations: 12.8 MB / 0.673 GB, free: 32.04 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003588/1.196, allocations: 247.9 kB / 0.6732 GB, free: 31.8 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003166/1.199, allocations: 463.7 kB / 0.6737 GB, free: 31.34 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01873/1.218, allocations: 9.868 MB / 0.6833 GB, free: 21.48 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03149/1.25, allocations: 14.79 MB / 0.6977 GB, free: 5.379 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004818/1.25, allocations: 119 kB / 0.6979 GB, free: 5.262 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001912/1.252, allocations: 40 kB / 0.6979 GB, free: 5.223 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001908/1.254, allocations: 1.539 MB / 0.6994 GB, free: 3.68 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3956/1.65, allocations: 72.97 MB / 0.7707 GB, free: 39.46 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008131/1.658, allocations: 5.617 MB / 0.7761 GB, free: 38.79 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004478/1.662, allocations: 3.979 MB / 0.78 GB, free: 38.75 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009263/1.663, allocations: 0.8434 MB / 0.7809 GB, free: 38.08 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.717e-05/1.663, allocations: 62.56 kB / 0.7809 GB, free: 38.04 MB / 442.7 MB Notification: Performance of pre-optimization done (n=301): time 6.031e-06/1.663, allocations: 2.188 kB / 0.7809 GB, free: 38.04 MB / 442.7 MB Notification: Performance of matching and sorting (n=367): time 0.1052/1.769, allocations: 40.42 MB / 0.8204 GB, free: 28.2 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001291/1.769, allocations: 399 kB / 0.8208 GB, free: 27.76 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01023/1.779, allocations: 5.536 MB / 0.8262 GB, free: 25.83 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009691/1.78, allocations: 27.8 kB / 0.8262 GB, free: 25.8 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003685/1.784, allocations: 5.44 MB / 0.8315 GB, free: 21.79 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001728/1.786, allocations: 1.301 MB / 0.8328 GB, free: 20.81 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004952/1.786, allocations: 0 / 0.8328 GB, free: 20.81 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003892/1.786, allocations: 0.6749 MB / 0.8334 GB, free: 20.34 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004393/1.791, allocations: 3.784 MB / 0.8371 GB, free: 17.19 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006248/1.797, allocations: 8.642 MB / 0.8456 GB, free: 6.852 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006834/1.804, allocations: 5.594 MB / 0.851 GB, free: 2.316 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.285e-05/1.804, allocations: 48 kB / 0.8511 GB, free: 2.27 MB / 442.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.0394/1.843, allocations: 16.27 MB / 0.867 GB, free: 5.195 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001663/1.844, allocations: 83.95 kB / 0.867 GB, free: 5.113 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002799/1.844, allocations: 168 kB / 0.8672 GB, free: 4.949 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01823/1.862, allocations: 5.667 MB / 0.8727 GB, free: 1.035 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007455/1.87, allocations: 1.9 MB / 0.8746 GB, free: 15.37 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3826/2.252, allocations: 27.07 MB / 0.901 GB, free: 100.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01085/2.263, allocations: 385.3 kB / 0.9014 GB, free: 100.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002637/2.266, allocations: 0.4948 MB / 0.9019 GB, free: 100.1 MB / 474.7 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: 780 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1012): * Single equations (assignments): 1006 * 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 {(8,51.6%) 96,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.002816/2.269, allocations: 0.5598 MB / 0.9024 GB, free: 99.99 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02733/2.296, allocations: 11.06 MB / 0.9132 GB, free: 99.79 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00296/2.299, allocations: 0.6371 MB / 0.9139 GB, free: 99.79 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02525/2.324, allocations: 11.16 MB / 0.9247 GB, free: 99.5 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.009e-05/2.325, allocations: 37.47 kB / 0.9248 GB, free: 99.5 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.759e-05/2.325, allocations: 22 kB / 0.9248 GB, free: 99.5 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.832e-05/2.325, allocations: 16.64 kB / 0.9248 GB, free: 99.5 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04884/2.374, allocations: 23.81 MB / 0.9481 GB, free: 92.09 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.76e-05/2.374, allocations: 10.33 kB / 0.9481 GB, free: 92.09 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002506/2.376, allocations: 473 kB / 0.9485 GB, free: 92.07 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01639/2.393, allocations: 5.315 MB / 0.9537 GB, free: 91.14 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009673/2.394, allocations: 12.81 kB / 0.9537 GB, free: 91.14 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03307/2.427, allocations: 25.84 MB / 0.979 GB, free: 78.94 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.788e-06/2.427, allocations: 5.969 kB / 0.979 GB, free: 78.94 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02859/2.455, allocations: 17.33 MB / 0.9959 GB, free: 67.13 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004182/2.46, allocations: 1.267 MB / 0.9971 GB, free: 65.95 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001987/2.462, allocations: 16.55 kB / 0.9972 GB, free: 65.94 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004087/2.466, allocations: 209.9 kB / 0.9974 GB, free: 65.83 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008282/2.467, allocations: 263.3 kB / 0.9976 GB, free: 65.67 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002977/2.467, allocations: 96 kB / 0.9977 GB, free: 65.58 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006533/2.473, allocations: 3.861 MB / 1.001 GB, free: 62.25 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.9e-07/2.473, allocations: 0 / 1.001 GB, free: 62.25 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01109/2.484, allocations: 1.802 MB / 1.003 GB, free: 60.46 MB / 474.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (239): * Single equations (assignments): 233 * 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.03001/2.515, allocations: 18.97 MB / 1.022 GB, free: 43.61 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01764/2.532, allocations: 10.03 MB / 1.032 GB, free: 33.89 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.928e-05/2.532, allocations: 0 / 1.032 GB, free: 33.89 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0078/2.54, allocations: 4.572 MB / 1.036 GB, free: 29.29 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006626/2.547, allocations: 0.8656 MB / 1.037 GB, free: 28.46 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05906/2.606, allocations: 18.53 MB / 1.055 GB, free: 9.887 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0149/2.621, allocations: 5.913 MB / 1.061 GB, free: 3.988 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.3249/2.946, allocations: 2.791 MB / 1.063 GB, free: 96.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008656/2.955, allocations: 3.878 MB / 1.067 GB, free: 96.1 MB / 474.7 MB Notification: Performance of SimCode: time 8.42e-07/2.955, allocations: 0 / 1.067 GB, free: 96.1 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2567/3.211, allocations: 156 MB / 1.22 GB, free: 4.957 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001575/3.211, allocations: 144.7 kB / 1.22 GB, free: 4.762 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.928/11.14, allocations: 0 / 1.22 GB, free: 4.762 MB / 474.7 MB (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