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.001603/0.001603, allocations: 182 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.12/2.12, allocations: 205.2 MB / 219.4 MB, free: 14.28 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001606/0.001605, allocations: 94.62 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.413e-05/3.457e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1022, allocations: 47.57 MB / 369.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4818/0.584, allocations: 96.21 MB / 465.4 MB, free: 13.3 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000328/0.5844, allocations: 90.81 kB / 465.5 MB, free: 13.25 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.952/1.536, allocations: 161.4 MB / 0.6122 GB, free: 70.21 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.585e-06/1.537, allocations: 11.94 kB / 0.6122 GB, free: 70.2 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007914/1.537, allocations: 156 kB / 0.6123 GB, free: 70.05 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.03344/1.571, allocations: 7.897 MB / 0.62 GB, free: 62.07 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.389e-05/1.571, allocations: 12.03 kB / 0.62 GB, free: 62.06 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006255/1.577, allocations: 1.199 MB / 0.6212 GB, free: 60.85 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1172/1.694, allocations: 16.5 MB / 0.6373 GB, free: 44.32 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04574/1.74, allocations: 13.49 MB / 0.6505 GB, free: 30.73 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006939/1.741, allocations: 0.5333 MB / 0.651 GB, free: 30.19 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00397/1.745, allocations: 0.7182 MB / 0.6517 GB, free: 29.47 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05245/1.797, allocations: 16.27 MB / 0.6676 GB, free: 11.88 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007786/1.798, allocations: 107.1 kB / 0.6677 GB, free: 11.77 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003642/1.802, allocations: 335.8 kB / 0.668 GB, free: 11.45 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003491/1.805, allocations: 1.484 MB / 0.6695 GB, free: 9.957 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04315/1.849, allocations: 12.73 MB / 0.6819 GB, free: 13.2 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4668/2.315, allocations: 73.4 MB / 0.7536 GB, free: 33.35 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03328/2.349, allocations: 7.459 MB / 0.7609 GB, free: 32.63 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00835/2.357, allocations: 3.965 MB / 0.7648 GB, free: 32.59 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03535/2.393, allocations: 11.59 MB / 0.7761 GB, free: 28.25 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.787e-05/2.393, allocations: 67.5 kB / 0.7761 GB, free: 28.19 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 9.658e-06/2.393, allocations: 0 / 0.7761 GB, free: 28.19 MB / 426.7 MB Notification: Performance of matching and sorting (n=339): time 0.2306/2.623, allocations: 37.95 MB / 0.8132 GB, free: 17.12 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000153/2.624, allocations: 398.1 kB / 0.8136 GB, free: 16.64 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01612/2.64, allocations: 6.206 MB / 0.8196 GB, free: 11.26 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001038/2.641, allocations: 77.7 kB / 0.8197 GB, free: 11.18 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004882/2.646, allocations: 4.876 MB / 0.8245 GB, free: 6.719 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002194/2.648, allocations: 1.247 MB / 0.8257 GB, free: 5.613 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001249/2.649, allocations: 164 kB / 0.8258 GB, free: 5.453 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000621/2.65, allocations: 0.66 MB / 0.8265 GB, free: 4.883 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01139/2.661, allocations: 3.724 MB / 0.8301 GB, free: 1.508 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02754/2.689, allocations: 9.163 MB / 0.8391 GB, free: 9.219 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01427/2.703, allocations: 5.488 MB / 0.8444 GB, free: 4.602 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000163/2.703, allocations: 48 kB / 0.8445 GB, free: 4.555 MB / 442.7 MB Notification: Performance of matching and sorting (n=1083) (initialization): time 0.06137/2.765, allocations: 16.24 MB / 0.8603 GB, free: 5.984 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000147/2.765, allocations: 76 kB / 0.8604 GB, free: 5.91 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002801/2.765, allocations: 171.4 kB / 0.8606 GB, free: 5.746 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03201/2.797, allocations: 5.503 MB / 0.8659 GB, free: 232 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.3452/3.143, allocations: 1.785 MB / 0.8677 GB, free: 103.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06692/3.21, allocations: 28.01 MB / 0.895 GB, free: 99.17 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01126/3.221, allocations: 0.5209 MB / 0.8956 GB, free: 99.17 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001998/3.223, allocations: 485.1 kB / 0.896 GB, free: 99.17 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 740 * 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 (947): * Single equations (assignments): 941 * 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%) 93,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.00201/3.225, allocations: 0.7357 MB / 0.8967 GB, free: 99.05 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001862/3.227, allocations: 0.6561 MB / 0.8974 GB, free: 99.05 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0394/3.266, allocations: 10.89 MB / 0.908 GB, free: 96.16 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-05/3.266, allocations: 38.7 kB / 0.908 GB, free: 96.16 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.796e-05/3.266, allocations: 17.53 kB / 0.9081 GB, free: 96.16 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.361e-05/3.267, allocations: 18.72 kB / 0.9081 GB, free: 96.16 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07288/3.339, allocations: 23.94 MB / 0.9315 GB, free: 86.49 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.117e-05/3.34, allocations: 3 kB / 0.9315 GB, free: 86.49 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003932/3.344, allocations: 430 kB / 0.9319 GB, free: 86.48 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02834/3.372, allocations: 5.078 MB / 0.9368 GB, free: 85.59 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009554/3.373, allocations: 66.45 kB / 0.9369 GB, free: 85.55 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05991/3.433, allocations: 26.74 MB / 0.963 GB, free: 68.62 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.15e-05/3.433, allocations: 10.06 kB / 0.963 GB, free: 68.61 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05129/3.484, allocations: 16.79 MB / 0.9794 GB, free: 54.5 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005371/3.49, allocations: 1.265 MB / 0.9807 GB, free: 53.32 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002444/3.492, allocations: 68.36 kB / 0.9807 GB, free: 53.25 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007012/3.499, allocations: 253.7 kB / 0.981 GB, free: 53.1 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001646/3.501, allocations: 242.9 kB / 0.9812 GB, free: 52.95 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004432/3.501, allocations: 92.75 kB / 0.9813 GB, free: 52.86 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01227/3.514, allocations: 4.466 MB / 0.9856 GB, free: 48.96 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.92e-07/3.514, allocations: 0 / 0.9856 GB, free: 48.96 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01308/3.527, allocations: 1.969 MB / 0.9876 GB, free: 47 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 (214): * Single equations (assignments): 208 * 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.05086/3.578, allocations: 18.52 MB / 1.006 GB, free: 29.14 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02615/3.604, allocations: 10.01 MB / 1.015 GB, free: 19.23 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.376e-05/3.604, allocations: 0 / 1.015 GB, free: 19.23 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01337/3.617, allocations: 4.437 MB / 1.02 GB, free: 14.76 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008977/3.626, allocations: 0.9846 MB / 1.021 GB, free: 13.82 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4077/4.034, allocations: 19.13 MB / 1.039 GB, free: 98.81 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01574/4.05, allocations: 5.721 MB / 1.045 GB, free: 97.92 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00915/4.059, allocations: 3.784 MB / 1.049 GB, free: 97.91 MB / 458.7 MB Notification: Performance of SimCode: time 1.533e-06/4.059, allocations: 1.031 kB / 1.049 GB, free: 97.91 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.298/10.36, allocations: 243.6 MB / 1.287 GB, free: 80.99 MB / 474.7 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