Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001108/0.001108, allocations: 181.3 kB / 8.7 MB, free: 352 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.738/1.738, allocations: 205.3 MB / 214.4 MB, free: 1.719 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008913/0.0008913, allocations: 74.73 kB / 262.4 MB, free: 1.672 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.922e-05/1.926e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09903/0.09907, allocations: 47.59 MB / 363.2 MB, free: 6.965 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.392/0.4911, allocations: 95.79 MB / 459 MB, free: 15.86 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002944/0.4914, allocations: 85.56 kB / 459.1 MB, free: 15.82 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6636/1.155, allocations: 158.3 MB / 0.6029 GB, free: 79.66 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.138e-06/1.155, allocations: 0 / 0.6029 GB, free: 79.66 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007786/1.156, allocations: 159.5 kB / 0.603 GB, free: 79.65 MB / 410.7 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.02967/1.186, allocations: 7.882 MB / 0.6107 GB, free: 72.97 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.345e-05/1.186, allocations: 12.03 kB / 0.6107 GB, free: 72.96 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05982/1.246, allocations: 16.49 MB / 0.6268 GB, free: 56.43 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03221/1.278, allocations: 13.48 MB / 0.64 GB, free: 43 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000422/1.278, allocations: 228 kB / 0.6402 GB, free: 42.77 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003677/1.282, allocations: 447.6 kB / 0.6406 GB, free: 42.34 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01751/1.299, allocations: 9.481 MB / 0.6499 GB, free: 32.86 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03212/1.332, allocations: 14.28 MB / 0.6638 GB, free: 17.27 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007685/1.332, allocations: 107 kB / 0.6639 GB, free: 17.16 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003147/1.336, allocations: 42.5 kB / 0.664 GB, free: 17.12 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002415/1.338, allocations: 1.484 MB / 0.6654 GB, free: 15.64 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4349/1.773, allocations: 71.33 MB / 0.7351 GB, free: 48.87 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009424/1.783, allocations: 5.313 MB / 0.7403 GB, free: 48.2 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00563/1.788, allocations: 3.87 MB / 0.7441 GB, free: 48.16 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001146/1.789, allocations: 0.8337 MB / 0.7449 GB, free: 47.5 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.117e-05/1.789, allocations: 68.08 kB / 0.7449 GB, free: 47.46 MB / 426.7 MB Notification: Performance of pre-optimization done (n=287): time 7.835e-06/1.789, allocations: 0 / 0.7449 GB, free: 47.46 MB / 426.7 MB Notification: Performance of matching and sorting (n=347): time 0.1042/1.894, allocations: 40.36 MB / 0.7844 GB, free: 38.65 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001525/1.894, allocations: 403.6 kB / 0.7847 GB, free: 38.21 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01645/1.91, allocations: 5.472 MB / 0.7901 GB, free: 36.3 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001234/1.912, allocations: 25.7 kB / 0.7901 GB, free: 36.27 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006299/1.918, allocations: 5.265 MB / 0.7952 GB, free: 32.35 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002683/1.921, allocations: 1.238 MB / 0.7965 GB, free: 31.43 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001874/1.923, allocations: 0 / 0.7965 GB, free: 31.43 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.001474/1.924, allocations: 0.6637 MB / 0.7971 GB, free: 30.96 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006882/1.931, allocations: 3.627 MB / 0.8006 GB, free: 28.26 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01538/1.946, allocations: 8.4 MB / 0.8088 GB, free: 18.19 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01397/1.961, allocations: 5.401 MB / 0.8141 GB, free: 13.82 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003036/1.961, allocations: 54.95 kB / 0.8142 GB, free: 13.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=1115) (initialization): time 0.05597/2.017, allocations: 15.63 MB / 0.8294 GB, free: 1.09 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004373/2.017, allocations: 76 kB / 0.8295 GB, free: 1.016 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005412/2.018, allocations: 168 kB / 0.8297 GB, free: 0.8516 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02437/2.042, allocations: 5.636 MB / 0.8352 GB, free: 13.83 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007387/2.05, allocations: 1.855 MB / 0.837 GB, free: 12.22 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04413/2.094, allocations: 26.09 MB / 0.8625 GB, free: 5.961 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009877/2.104, allocations: 366.4 kB / 0.8628 GB, free: 5.695 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002602/2.106, allocations: 0.4898 MB / 0.8633 GB, free: 5.215 MB / 458.7 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.004058/2.111, allocations: 0.5388 MB / 0.8638 GB, free: 4.676 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.3915/2.502, allocations: 10.52 MB / 0.8741 GB, free: 107.6 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002713/2.505, allocations: 0.6219 MB / 0.8747 GB, free: 107.6 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0269/2.532, allocations: 10.6 MB / 0.885 GB, free: 107.3 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001221/2.532, allocations: 35.19 kB / 0.8851 GB, free: 107.3 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.371e-05/2.532, allocations: 18.38 kB / 0.8851 GB, free: 107.3 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.555e-05/2.532, allocations: 17.64 kB / 0.8851 GB, free: 107.3 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05355/2.586, allocations: 22.81 MB / 0.9074 GB, free: 104.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.522e-05/2.586, allocations: 6.719 kB / 0.9074 GB, free: 104.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002201/2.588, allocations: 439.8 kB / 0.9078 GB, free: 104.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01485/2.603, allocations: 5.022 MB / 0.9127 GB, free: 103.5 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007548/2.604, allocations: 14.75 kB / 0.9127 GB, free: 103.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0316/2.635, allocations: 24.7 MB / 0.9368 GB, free: 91.86 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.187e-05/2.635, allocations: 16.45 kB / 0.9369 GB, free: 91.86 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02782/2.663, allocations: 16.52 MB / 0.953 GB, free: 85.1 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003899/2.667, allocations: 1.226 MB / 0.9542 GB, free: 84.27 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001724/2.669, allocations: 12 kB / 0.9542 GB, free: 84.26 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003948/2.673, allocations: 203.6 kB / 0.9544 GB, free: 84.16 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008001/2.674, allocations: 244.3 kB / 0.9546 GB, free: 84.01 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002678/2.674, allocations: 90.11 kB / 0.9547 GB, free: 83.92 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.008086/2.682, allocations: 3.821 MB / 0.9584 GB, free: 80.62 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.42e-07/2.682, allocations: 1.844 kB / 0.9584 GB, free: 80.62 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01259/2.695, allocations: 1.742 MB / 0.9602 GB, free: 78.89 MB / 458.7 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.02907/2.724, allocations: 18.27 MB / 0.978 GB, free: 63.25 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01612/2.74, allocations: 9.635 MB / 0.9874 GB, free: 53.89 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.386e-05/2.74, allocations: 0 / 0.9874 GB, free: 53.89 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007876/2.748, allocations: 4.331 MB / 0.9916 GB, free: 49.52 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005844/2.754, allocations: 0.8472 MB / 0.9925 GB, free: 48.71 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04383/2.798, allocations: 17.9 MB / 1.01 GB, free: 30.74 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01114/2.809, allocations: 5.722 MB / 1.016 GB, free: 25.03 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.008902/2.818, allocations: 2.707 MB / 1.018 GB, free: 22.33 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007598/2.826, allocations: 3.705 MB / 1.022 GB, free: 18.62 MB / 458.7 MB Notification: Performance of SimCode: time 1.012e-06/2.826, allocations: 0 / 1.022 GB, free: 18.62 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5238/3.349, allocations: 149.7 MB / 1.168 GB, free: 18.57 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001523/3.35, allocations: 148.5 kB / 1.168 GB, free: 18.37 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.028/11.38, allocations: 4 kB / 1.168 GB, free: 18.37 MB / 458.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat does not exist to compare? outputFormat=mat