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.001195/0.001195, allocations: 197.4 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.271/1.271, allocations: 227.2 MB / 245 MB, free: 5.781 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008689/0.0008687, allocations: 108.2 kB / 297.3 MB, free: 5.961 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000234/0.0002341, allocations: 4 kB / 358 MB, free: 9.219 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2376/0.2379, allocations: 51.49 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1299/0.3678, allocations: 100.4 MB / 0.4979 GB, free: 6.18 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003144/0.3682, allocations: 95.94 kB / 0.498 GB, free: 6.086 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6165/0.9847, allocations: 176.2 MB / 0.6701 GB, free: 1.867 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.265e-06/0.9848, allocations: 4 kB / 0.6701 GB, free: 1.863 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008261/0.9856, allocations: 164 kB / 0.6703 GB, free: 1.703 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.2841/1.27, allocations: 9.283 MB / 0.6794 GB, free: 57.26 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.447e-05/1.27, allocations: 7.344 kB / 0.6794 GB, free: 57.26 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007172/1.277, allocations: 1.259 MB / 0.6806 GB, free: 57.16 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06456/1.342, allocations: 16.54 MB / 0.6967 GB, free: 56.6 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02551/1.367, allocations: 11.75 MB / 0.7082 GB, free: 55.57 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003371/1.368, allocations: 0.5474 MB / 0.7088 GB, free: 55.56 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001999/1.37, allocations: 0.7635 MB / 0.7095 GB, free: 55.54 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02929/1.399, allocations: 16.97 MB / 0.7261 GB, free: 51.93 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005081/1.399, allocations: 108.8 kB / 0.7262 GB, free: 51.92 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00195/1.401, allocations: 354.4 kB / 0.7265 GB, free: 51.92 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001934/1.403, allocations: 1.532 MB / 0.728 GB, free: 51.9 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02485/1.428, allocations: 13.34 MB / 0.741 GB, free: 51.48 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1097/1.538, allocations: 75.16 MB / 0.8144 GB, free: 5.812 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02385/1.562, allocations: 7.998 MB / 0.8222 GB, free: 15.75 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02829/1.59, allocations: 11.87 MB / 0.8338 GB, free: 5.641 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.565e-05/1.59, allocations: 75.11 kB / 0.8339 GB, free: 5.57 MB / 474.7 MB Notification: Performance of pre-optimization done (n=294): time 4.819e-06/1.59, allocations: 0 / 0.8339 GB, free: 5.57 MB / 474.7 MB Notification: Performance of matching and sorting (n=361): time 0.615/2.205, allocations: 48.8 MB / 0.8816 GB, free: 95.8 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001189/2.205, allocations: 400.8 kB / 0.882 GB, free: 95.36 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01135/2.217, allocations: 6.309 MB / 0.8881 GB, free: 94.78 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008343/2.218, allocations: 83.14 kB / 0.8882 GB, free: 94.75 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003725/2.221, allocations: 5.41 MB / 0.8935 GB, free: 92.14 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001617/2.223, allocations: 1.32 MB / 0.8948 GB, free: 91.36 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005939/2.224, allocations: 172.6 kB / 0.8949 GB, free: 91.36 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.000371/2.224, allocations: 0.671 MB / 0.8956 GB, free: 91.03 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005199/2.229, allocations: 3.966 MB / 0.8995 GB, free: 91.01 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008142/2.237, allocations: 8.755 MB / 0.908 GB, free: 84.9 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007887/2.245, allocations: 5.718 MB / 0.9136 GB, free: 84.84 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000165/2.246, allocations: 48.97 kB / 0.9136 GB, free: 84.84 MB / 490.8 MB Notification: Performance of matching and sorting (n=1121) (initialization): time 0.0377/2.283, allocations: 17.43 MB / 0.9307 GB, free: 82.43 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001132/2.283, allocations: 78.47 kB / 0.9307 GB, free: 82.43 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001597/2.284, allocations: 171.1 kB / 0.9309 GB, free: 82.43 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01595/2.3, allocations: 5.75 MB / 0.9365 GB, free: 81.46 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005733/2.305, allocations: 1.849 MB / 0.9383 GB, free: 81.24 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03459/2.34, allocations: 30.18 MB / 0.9678 GB, free: 63.8 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007703/2.348, allocations: 0.5441 MB / 0.9683 GB, free: 63.35 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001588/2.349, allocations: 495.2 kB / 0.9688 GB, free: 62.88 MB / 490.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.007114/2.356, allocations: 3.587 MB / 0.9723 GB, free: 59.76 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001331/2.358, allocations: 0.6788 MB / 0.973 GB, free: 59.07 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02192/2.38, allocations: 11.58 MB / 0.9843 GB, free: 50.23 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.426e-05/2.38, allocations: 43.84 kB / 0.9843 GB, free: 50.19 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.122e-05/2.38, allocations: 20 kB / 0.9843 GB, free: 50.17 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.784e-05/2.38, allocations: 16.92 kB / 0.9844 GB, free: 50.17 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04315/2.423, allocations: 25.16 MB / 1.009 GB, free: 29.52 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.645e-05/2.423, allocations: 4 kB / 1.009 GB, free: 29.52 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002326/2.426, allocations: 467.6 kB / 1.009 GB, free: 29.14 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01563/2.441, allocations: 5.396 MB / 1.015 GB, free: 25.52 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007832/2.442, allocations: 67.91 kB / 1.015 GB, free: 25.46 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3084/2.75, allocations: 29.04 MB / 1.043 GB, free: 86.69 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.127e-06/2.75, allocations: 12.25 kB / 1.043 GB, free: 86.69 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02981/2.78, allocations: 17.76 MB / 1.06 GB, free: 84.65 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004586/2.785, allocations: 1.31 MB / 1.062 GB, free: 84.56 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001806/2.787, allocations: 66.83 kB / 1.062 GB, free: 84.56 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003727/2.79, allocations: 274.4 kB / 1.062 GB, free: 84.56 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008577/2.791, allocations: 252.8 kB / 1.062 GB, free: 84.55 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002657/2.792, allocations: 92.31 kB / 1.062 GB, free: 84.55 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.00794/2.8, allocations: 4.558 MB / 1.067 GB, free: 84.34 MB / 490.8 MB Notification: Performance of sort global known variables: time 3.91e-07/2.8, allocations: 2.906 kB / 1.067 GB, free: 84.34 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01036/2.81, allocations: 2.054 MB / 1.069 GB, free: 84.34 MB / 490.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.03011/2.84, allocations: 19.41 MB / 1.088 GB, free: 80.22 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0163/2.856, allocations: 10.57 MB / 1.098 GB, free: 76.58 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.798e-05/2.857, allocations: 6.75 kB / 1.098 GB, free: 76.58 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.007868/2.864, allocations: 4.753 MB / 1.103 GB, free: 74.58 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005649/2.87, allocations: 1.006 MB / 1.104 GB, free: 74.21 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4483/3.318, allocations: 195.3 MB / 1.294 GB, free: 65.59 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01474/3.333, allocations: 5.893 MB / 1.3 GB, free: 64.68 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.009808/3.343, allocations: 2.736 MB / 1.303 GB, free: 64.62 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006544/3.35, allocations: 3.901 MB / 1.307 GB, free: 64.61 MB / 0.5105 GB Notification: Performance of SimCode: time 8.687e-06/3.35, allocations: 0 / 1.307 GB, free: 64.61 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4621/3.812, allocations: 166.2 MB / 1.469 GB, free: 112.2 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001646/3.812, allocations: 214.2 kB / 1.469 GB, free: 112 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.871/10.68, allocations: 4 kB / 1.469 GB, free: 112 MB / 0.5105 GB (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