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.001318/0.001318, allocations: 197.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.487/1.487, allocations: 225.4 MB / 240.1 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009249/0.0009252, allocations: 88.12 kB / 292.1 MB, free: 5.965 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.407e-05/3.41e-05, allocations: 4 kB / 350.6 MB, free: 2.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.122, allocations: 51.48 MB / 402.1 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4315/0.5535, allocations: 100.3 MB / 0.4907 GB, free: 5.449 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002331/0.5538, allocations: 86.53 kB / 0.4907 GB, free: 5.406 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7348/1.289, allocations: 176.3 MB / 0.6629 GB, free: 68.67 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.868e-06/1.289, allocations: 0 / 0.6629 GB, free: 68.67 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007528/1.289, allocations: 169.3 kB / 0.6631 GB, free: 68.66 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.03208/1.322, allocations: 8.214 MB / 0.6711 GB, free: 63.47 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.473e-05/1.322, allocations: 11.28 kB / 0.6711 GB, free: 63.47 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007261/1.329, allocations: 1.251 MB / 0.6724 GB, free: 62.64 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06115/1.39, allocations: 16.55 MB / 0.6885 GB, free: 50.7 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03226/1.422, allocations: 11.69 MB / 0.6999 GB, free: 38.93 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006596/1.423, allocations: 0.5497 MB / 0.7005 GB, free: 38.38 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004658/1.428, allocations: 0.7612 MB / 0.7012 GB, free: 37.61 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04602/1.474, allocations: 16.83 MB / 0.7177 GB, free: 19.47 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008879/1.475, allocations: 119 kB / 0.7178 GB, free: 19.35 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004169/1.479, allocations: 351.8 kB / 0.7181 GB, free: 19.01 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002473/1.481, allocations: 1.528 MB / 0.7196 GB, free: 17.48 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03104/1.513, allocations: 13.14 MB / 0.7324 GB, free: 4.32 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4681/1.981, allocations: 75.15 MB / 0.8058 GB, free: 43.72 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01973/2, allocations: 7.8 MB / 0.8134 GB, free: 43.02 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006116/2.007, allocations: 4.091 MB / 0.8174 GB, free: 42.97 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02152/2.028, allocations: 11.88 MB / 0.829 GB, free: 40.94 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.364e-05/2.028, allocations: 70.59 kB / 0.8291 GB, free: 40.9 MB / 474.7 MB Notification: Performance of pre-optimization done (n=294): time 1.16e-05/2.028, allocations: 0 / 0.8291 GB, free: 40.9 MB / 474.7 MB Notification: Performance of matching and sorting (n=361): time 0.1395/2.168, allocations: 40.44 MB / 0.8686 GB, free: 32.24 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001573/2.168, allocations: 403.9 kB / 0.869 GB, free: 31.8 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01678/2.185, allocations: 6.239 MB / 0.8751 GB, free: 29.7 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001082/2.186, allocations: 82.02 kB / 0.8751 GB, free: 29.62 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005404/2.191, allocations: 5.405 MB / 0.8804 GB, free: 25.46 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002145/2.194, allocations: 1.324 MB / 0.8817 GB, free: 24.47 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001409/2.195, allocations: 176.8 kB / 0.8819 GB, free: 24.34 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001075/2.196, allocations: 0.6657 MB / 0.8825 GB, free: 23.88 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008041/2.204, allocations: 3.89 MB / 0.8863 GB, free: 22.43 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01146/2.216, allocations: 8.67 MB / 0.8948 GB, free: 14.52 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009437/2.225, allocations: 5.697 MB / 0.9004 GB, free: 11.5 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003141/2.226, allocations: 48 kB / 0.9004 GB, free: 11.45 MB / 474.7 MB Notification: Performance of matching and sorting (n=1121) (initialization): time 0.04375/2.269, allocations: 17.35 MB / 0.9173 GB, free: 13.86 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003241/2.27, allocations: 76.19 kB / 0.9174 GB, free: 13.79 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003885/2.27, allocations: 168 kB / 0.9176 GB, free: 13.62 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01811/2.288, allocations: 5.739 MB / 0.9232 GB, free: 9.648 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007439/2.296, allocations: 1.851 MB / 0.925 GB, free: 8.039 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4484/2.744, allocations: 29.58 MB / 0.9539 GB, free: 97.89 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01016/2.754, allocations: 0.5411 MB / 0.9544 GB, free: 97.89 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002319/2.757, allocations: 492.8 kB / 0.9549 GB, free: 97.89 MB / 490.7 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 () * 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.001902/2.759, allocations: 0.7679 MB / 0.9556 GB, free: 97.77 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001972/2.761, allocations: 0.6696 MB / 0.9563 GB, free: 97.77 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02642/2.787, allocations: 11.51 MB / 0.9675 GB, free: 97.49 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.416e-05/2.787, allocations: 40.41 kB / 0.9676 GB, free: 97.49 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.151e-05/2.787, allocations: 20.66 kB / 0.9676 GB, free: 97.49 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.88e-05/2.787, allocations: 17.11 kB / 0.9676 GB, free: 97.49 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06223/2.85, allocations: 25.06 MB / 0.9921 GB, free: 88.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.879e-05/2.85, allocations: 5.688 kB / 0.9921 GB, free: 88.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002399/2.852, allocations: 474.6 kB / 0.9925 GB, free: 88.79 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01555/2.868, allocations: 5.382 MB / 0.9978 GB, free: 87.84 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007969/2.869, allocations: 69.03 kB / 0.9978 GB, free: 87.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03595/2.904, allocations: 28.03 MB / 1.025 GB, free: 74.93 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.626e-06/2.905, allocations: 11.44 kB / 1.025 GB, free: 74.93 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03043/2.935, allocations: 17.64 MB / 1.042 GB, free: 67.78 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004992/2.94, allocations: 1.309 MB / 1.044 GB, free: 67.04 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002121/2.942, allocations: 69.5 kB / 1.044 GB, free: 67 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004313/2.947, allocations: 268.7 kB / 1.044 GB, free: 66.96 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009038/2.947, allocations: 247.2 kB / 1.044 GB, free: 66.92 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002908/2.948, allocations: 99.52 kB / 1.044 GB, free: 66.89 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.008279/2.956, allocations: 4.491 MB / 1.049 GB, free: 63.08 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.91e-07/2.956, allocations: 3.938 kB / 1.049 GB, free: 63.08 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01133/2.967, allocations: 2.059 MB / 1.051 GB, free: 61.04 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 (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.02963/2.997, allocations: 19.28 MB / 1.07 GB, free: 44.57 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01893/3.016, allocations: 10.4 MB / 1.08 GB, free: 35.62 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.37e-05/3.016, allocations: 6.297 kB / 1.08 GB, free: 35.61 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008761/3.025, allocations: 4.698 MB / 1.084 GB, free: 31.12 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008673/3.034, allocations: 1.005 MB / 1.085 GB, free: 30.17 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05412/3.088, allocations: 18.93 MB / 1.104 GB, free: 11.18 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009982/3.098, allocations: 5.899 MB / 1.11 GB, free: 5.293 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.3381/3.436, allocations: 2.737 MB / 1.112 GB, free: 91.6 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007857/3.444, allocations: 3.902 MB / 1.116 GB, free: 91.6 MB / 490.7 MB Notification: Performance of SimCode: time 1.362e-06/3.444, allocations: 3.594 kB / 1.116 GB, free: 91.6 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3669/3.811, allocations: 165.8 MB / 1.278 GB, free: 1.637 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000158/3.811, allocations: 200.5 kB / 1.278 GB, free: 1.402 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.341/12.15, allocations: 0 / 1.278 GB, free: 1.402 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