Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001684/0.001684, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 225.6 MB / 234.8 MB, free: 3.223 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008661/0.0008662, allocations: 97.27 kB / 286.7 MB, free: 5.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.156e-05/2.17e-05, allocations: 4 kB / 343.8 MB, free: 8.141 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1186, allocations: 51.47 MB / 395.3 MB, free: 4.625 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.399/0.5177, allocations: 99.66 MB / 494.9 MB, free: 9.492 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003746/0.5181, allocations: 85.33 kB / 495 MB, free: 9.449 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7154/1.234, allocations: 173.2 MB / 0.6525 GB, free: 69.66 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.574e-06/1.234, allocations: 3.875 kB / 0.6525 GB, free: 69.66 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007444/1.234, allocations: 164.4 kB / 0.6527 GB, free: 69.65 MB / 442.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.02984/1.264, allocations: 8.209 MB / 0.6607 GB, free: 65.92 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.207e-05/1.264, allocations: 10.44 kB / 0.6607 GB, free: 65.92 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06217/1.326, allocations: 16.55 MB / 0.6769 GB, free: 59.28 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03068/1.357, allocations: 11.67 MB / 0.6883 GB, free: 51.7 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004432/1.358, allocations: 240 kB / 0.6885 GB, free: 51.46 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004083/1.362, allocations: 463.7 kB / 0.6889 GB, free: 51.01 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02092/1.383, allocations: 9.877 MB / 0.6986 GB, free: 41.14 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03182/1.415, allocations: 14.8 MB / 0.713 GB, free: 25.03 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005127/1.415, allocations: 107 kB / 0.7131 GB, free: 24.93 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002146/1.417, allocations: 43.94 kB / 0.7132 GB, free: 24.88 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002007/1.419, allocations: 1.535 MB / 0.7147 GB, free: 23.35 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.447/1.866, allocations: 72.98 MB / 0.786 GB, free: 54.95 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006873/1.873, allocations: 5.612 MB / 0.7914 GB, free: 54.28 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004798/1.878, allocations: 3.986 MB / 0.7953 GB, free: 54.24 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009899/1.879, allocations: 0.8351 MB / 0.7961 GB, free: 53.57 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.585e-05/1.879, allocations: 70.25 kB / 0.7962 GB, free: 53.53 MB / 474.7 MB Notification: Performance of pre-optimization done (n=301): time 6.382e-06/1.879, allocations: 0 / 0.7962 GB, free: 53.53 MB / 474.7 MB Notification: Performance of matching and sorting (n=367): time 0.1102/1.989, allocations: 40.42 MB / 0.8357 GB, free: 44.34 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002072/1.99, allocations: 402.9 kB / 0.8361 GB, free: 43.89 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01553/2.005, allocations: 5.539 MB / 0.8415 GB, free: 41.97 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00104/2.006, allocations: 29.05 kB / 0.8415 GB, free: 41.94 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004688/2.011, allocations: 5.424 MB / 0.8468 GB, free: 37.87 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001956/2.013, allocations: 1.303 MB / 0.8481 GB, free: 36.89 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001338/2.014, allocations: 0 / 0.8481 GB, free: 36.89 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0009787/2.015, allocations: 0.6749 MB / 0.8487 GB, free: 36.42 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005725/2.021, allocations: 3.784 MB / 0.8524 GB, free: 34.96 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008651/2.03, allocations: 8.652 MB / 0.8609 GB, free: 26.96 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00839/2.038, allocations: 5.595 MB / 0.8663 GB, free: 24.9 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002675/2.039, allocations: 48.5 kB / 0.8664 GB, free: 24.9 MB / 474.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.03929/2.078, allocations: 16.25 MB / 0.8823 GB, free: 16.3 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002768/2.078, allocations: 80 kB / 0.8823 GB, free: 16.22 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003756/2.079, allocations: 168 kB / 0.8825 GB, free: 16.06 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01752/2.096, allocations: 5.669 MB / 0.888 GB, free: 12.14 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008284/2.104, allocations: 1.897 MB / 0.8899 GB, free: 10.48 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04738/2.152, allocations: 27.29 MB / 0.9165 GB, free: 3.746 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009961/2.162, allocations: 388.7 kB / 0.9169 GB, free: 3.461 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002669/2.165, allocations: 0.499 MB / 0.9174 GB, free: 2.969 MB / 490.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.004027/2.169, allocations: 0.5496 MB / 0.9179 GB, free: 2.422 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.3457/2.514, allocations: 11.05 MB / 0.9287 GB, free: 101.5 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002682/2.517, allocations: 0.6363 MB / 0.9293 GB, free: 101.5 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02755/2.545, allocations: 11.16 MB / 0.9402 GB, free: 101.2 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.17e-05/2.545, allocations: 39.77 kB / 0.9403 GB, free: 101.2 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.092e-05/2.545, allocations: 20.34 kB / 0.9403 GB, free: 101.2 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001024/2.545, allocations: 20.23 kB / 0.9403 GB, free: 101.2 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06157/2.607, allocations: 23.81 MB / 0.9636 GB, free: 98.33 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.416e-05/2.607, allocations: 8.312 kB / 0.9636 GB, free: 98.33 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002787/2.609, allocations: 471.4 kB / 0.964 GB, free: 98.31 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0182/2.628, allocations: 5.322 MB / 0.9692 GB, free: 97.38 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008287/2.629, allocations: 12.16 kB / 0.9692 GB, free: 97.38 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03652/2.665, allocations: 25.84 MB / 0.9945 GB, free: 85.36 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.279e-05/2.665, allocations: 13.56 kB / 0.9945 GB, free: 85.36 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03424/2.699, allocations: 17.33 MB / 1.011 GB, free: 78.08 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007055/2.707, allocations: 1.262 MB / 1.013 GB, free: 77.37 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00477/2.711, allocations: 14.28 kB / 1.013 GB, free: 77.37 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008731/2.72, allocations: 211.7 kB / 1.013 GB, free: 77.37 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001981/2.722, allocations: 256.7 kB / 1.013 GB, free: 77.33 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001076/2.723, allocations: 95.73 kB / 1.013 GB, free: 77.31 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01309/2.736, allocations: 3.857 MB / 1.017 GB, free: 75.95 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.493e-06/2.737, allocations: 0 / 1.017 GB, free: 75.95 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01739/2.754, allocations: 1.809 MB / 1.019 GB, free: 75.95 MB / 490.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.04353/2.798, allocations: 18.98 MB / 1.037 GB, free: 64.57 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01765/2.815, allocations: 10.04 MB / 1.047 GB, free: 55.78 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.418e-05/2.815, allocations: 4 kB / 1.047 GB, free: 55.78 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008571/2.824, allocations: 4.578 MB / 1.052 GB, free: 51.7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007016/2.831, allocations: 0.859 MB / 1.052 GB, free: 51.01 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05722/2.888, allocations: 18.53 MB / 1.07 GB, free: 34.45 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01171/2.9, allocations: 5.9 MB / 1.076 GB, free: 28.55 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.008563/2.909, allocations: 2.802 MB / 1.079 GB, free: 25.77 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006484/2.915, allocations: 3.88 MB / 1.083 GB, free: 21.89 MB / 490.7 MB Notification: Performance of SimCode: time 9.91e-07/2.915, allocations: 0 / 1.083 GB, free: 21.89 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5566/3.472, allocations: 155.9 MB / 1.235 GB, free: 25.23 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00014/3.472, allocations: 140.6 kB / 1.235 GB, free: 25.04 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.865/11.34, allocations: 0 / 1.235 GB, free: 25.04 MB / 490.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat does not exist to compare? outputFormat=mat