Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002124/0.002124, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.177/2.177, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001108/0.001108, allocations: 90.48 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.275e-05/2.283e-05, allocations: 4 kB / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3806/0.3806, allocations: 47.56 MB / 362.4 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.161/0.5417, allocations: 95.56 MB / 458 MB, free: 6.699 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003264/0.5421, allocations: 87.94 kB / 458.1 MB, free: 6.613 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.9114/1.453, allocations: 158.3 MB / 0.6019 GB, free: 39.94 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.685e-06/1.454, allocations: 4 kB / 0.6019 GB, free: 39.93 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0007447/1.454, allocations: 152 kB / 0.6021 GB, free: 39.79 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.03338/1.488, allocations: 7.903 MB / 0.6098 GB, free: 31.8 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.873e-05/1.488, allocations: 12.03 kB / 0.6098 GB, free: 31.79 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1253/1.613, allocations: 16.49 MB / 0.6259 GB, free: 15.27 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04581/1.659, allocations: 13.47 MB / 0.6391 GB, free: 1.699 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004662/1.659, allocations: 228 kB / 0.6393 GB, free: 1.477 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003847/1.663, allocations: 451.6 kB / 0.6397 GB, free: 1.035 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02826/1.692, allocations: 9.466 MB / 0.649 GB, free: 7.562 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3603/2.052, allocations: 14.27 MB / 0.6629 GB, free: 60.61 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007634/2.053, allocations: 107.3 kB / 0.663 GB, free: 60.61 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003406/2.056, allocations: 43.08 kB / 0.663 GB, free: 60.61 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003558/2.06, allocations: 1.49 MB / 0.6645 GB, free: 60.6 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1223/2.182, allocations: 71.34 MB / 0.7342 GB, free: 19.92 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01074/2.193, allocations: 5.312 MB / 0.7393 GB, free: 17.27 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00769/2.201, allocations: 3.863 MB / 0.7431 GB, free: 15.58 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001456/2.202, allocations: 0.836 MB / 0.7439 GB, free: 14.88 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.457e-05/2.202, allocations: 70.88 kB / 0.744 GB, free: 14.82 MB / 411.1 MB Notification: Performance of pre-optimization done (n=287): time 7.565e-06/2.202, allocations: 1.531 kB / 0.744 GB, free: 14.82 MB / 411.1 MB Notification: Performance of matching and sorting (n=347): time 0.1687/2.371, allocations: 40.34 MB / 0.7834 GB, free: 15.44 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003373/2.372, allocations: 399.4 kB / 0.7838 GB, free: 14.96 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02212/2.394, allocations: 5.477 MB / 0.7891 GB, free: 10.25 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001238/2.395, allocations: 26.27 kB / 0.7891 GB, free: 10.22 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.008554/2.404, allocations: 4.965 MB / 0.794 GB, free: 5.645 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003028/2.407, allocations: 1.231 MB / 0.7952 GB, free: 4.531 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001198/2.408, allocations: 0 / 0.7952 GB, free: 4.531 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.001297/2.409, allocations: 0.6732 MB / 0.7959 GB, free: 3.949 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0136/2.423, allocations: 3.627 MB / 0.7994 GB, free: 0.6797 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04661/2.47, allocations: 9.423 MB / 0.8086 GB, free: 9.086 MB / 443.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01868/2.488, allocations: 5.409 MB / 0.8139 GB, free: 4.434 MB / 443.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002785/2.489, allocations: 48 kB / 0.8139 GB, free: 4.387 MB / 443.1 MB Notification: Performance of matching and sorting (n=1115) (initialization): time 0.4031/2.892, allocations: 15.33 MB / 0.8289 GB, free: 86.53 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001287/2.892, allocations: 79.53 kB / 0.829 GB, free: 86.53 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002446/2.892, allocations: 174.4 kB / 0.8291 GB, free: 86.53 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02857/2.921, allocations: 5.357 MB / 0.8344 GB, free: 86.48 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01218/2.933, allocations: 1.855 MB / 0.8362 GB, free: 86.48 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05961/2.993, allocations: 25.96 MB / 0.8615 GB, free: 82.62 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01136/3.004, allocations: 379.1 kB / 0.8619 GB, free: 82.62 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00257/3.007, allocations: 494.8 kB / 0.8624 GB, free: 82.62 MB / 443.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: B1.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: 764 * Number of states: 0 () * Number of discrete variables: 66 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.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],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (979): * Single equations (assignments): 973 * 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%) 94,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.003656/3.01, allocations: 0.5414 MB / 0.8629 GB, free: 82.51 MB / 443.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03909/3.05, allocations: 10.51 MB / 0.8732 GB, free: 80.09 MB / 443.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002602/3.052, allocations: 0.6258 MB / 0.8738 GB, free: 80.09 MB / 443.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03989/3.092, allocations: 10.59 MB / 0.8841 GB, free: 76.78 MB / 443.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.89e-05/3.092, allocations: 36.91 kB / 0.8842 GB, free: 76.78 MB / 443.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.704e-05/3.092, allocations: 22.5 kB / 0.8842 GB, free: 76.78 MB / 443.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.302e-05/3.092, allocations: 18.61 kB / 0.8842 GB, free: 76.78 MB / 443.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06878/3.161, allocations: 22.82 MB / 0.9065 GB, free: 66.36 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-05/3.161, allocations: 8 kB / 0.9065 GB, free: 66.35 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003871/3.165, allocations: 441.9 kB / 0.9069 GB, free: 66.02 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02685/3.192, allocations: 5.019 MB / 0.9118 GB, free: 62.7 MB / 443.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007994/3.193, allocations: 11.19 kB / 0.9118 GB, free: 62.69 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0519/3.245, allocations: 24.7 MB / 0.9359 GB, free: 40.74 MB / 443.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.637e-05/3.245, allocations: 12.62 kB / 0.936 GB, free: 40.73 MB / 443.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04672/3.292, allocations: 16.53 MB / 0.9521 GB, free: 23.92 MB / 443.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005176/3.297, allocations: 1.232 MB / 0.9533 GB, free: 22.68 MB / 443.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002323/3.299, allocations: 11.98 kB / 0.9533 GB, free: 22.66 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006661/3.306, allocations: 199.6 kB / 0.9535 GB, free: 22.47 MB / 443.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001538/3.308, allocations: 249.1 kB / 0.9537 GB, free: 22.23 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005864/3.308, allocations: 84 kB / 0.9538 GB, free: 22.15 MB / 443.1 MB Notification: Performance of sorting global known variables: time 0.01054/3.319, allocations: 3.825 MB / 0.9576 GB, free: 18.35 MB / 443.1 MB Notification: Performance of sort global known variables: time 3.266e-06/3.319, allocations: 0 / 0.9576 GB, free: 18.35 MB / 443.1 MB Notification: Performance of remove unused functions: time 0.01334/3.332, allocations: 1.74 MB / 0.9593 GB, free: 16.62 MB / 443.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (222): * Single equations (assignments): 216 * 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%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.04966/3.382, allocations: 18.26 MB / 0.9771 GB, free: 14.15 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.3449/3.727, allocations: 9.63 MB / 0.9865 GB, free: 106.2 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 1.52e-05/3.727, allocations: 0.8125 kB / 0.9865 GB, free: 106.2 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01391/3.741, allocations: 4.346 MB / 0.9907 GB, free: 105.7 MB / 459.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008463/3.75, allocations: 0.8436 MB / 0.9916 GB, free: 105.7 MB / 459.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06447/3.814, allocations: 18.76 MB / 1.01 GB, free: 102.6 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01423/3.828, allocations: 5.731 MB / 1.015 GB, free: 101.8 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008967/3.837, allocations: 3.763 MB / 1.019 GB, free: 101.8 MB / 459.1 MB Notification: Performance of SimCode: time 1.032e-06/3.837, allocations: 3.188 kB / 1.019 GB, free: 101.8 MB / 459.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.209/10.05, allocations: 240.2 MB / 1.254 GB, free: 48.64 MB / 459.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat does not exist to compare? outputFormat=mat