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.001003/0.001003, allocations: 172.8 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.41/1.41, allocations: 205.2 MB / 219.8 MB, free: 14.26 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.0008515/0.0008516, allocations: 90.69 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.958e-05/2.971e-05, allocations: 0 / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09581/0.09586, allocations: 47.58 MB / 370.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3376/0.4335, allocations: 96.21 MB / 466.3 MB, free: 13.39 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002617/0.4338, allocations: 88.48 kB / 466.4 MB, free: 13.34 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6169/1.051, allocations: 161.4 MB / 0.6131 GB, free: 69.91 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.653e-06/1.051, allocations: 0 / 0.6131 GB, free: 69.91 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006078/1.051, allocations: 159.9 kB / 0.6132 GB, free: 69.75 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.02528/1.077, allocations: 7.893 MB / 0.621 GB, free: 61.78 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.321e-05/1.077, allocations: 12.03 kB / 0.621 GB, free: 61.77 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005417/1.082, allocations: 1.199 MB / 0.6221 GB, free: 60.55 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0577/1.14, allocations: 16.49 MB / 0.6382 GB, free: 44.03 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03246/1.172, allocations: 13.49 MB / 0.6514 GB, free: 30.44 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005222/1.173, allocations: 0.5294 MB / 0.6519 GB, free: 29.91 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003714/1.177, allocations: 0.726 MB / 0.6526 GB, free: 29.18 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03917/1.216, allocations: 16.26 MB / 0.6685 GB, free: 11.59 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006945/1.217, allocations: 115 kB / 0.6686 GB, free: 11.48 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003198/1.22, allocations: 335.9 kB / 0.669 GB, free: 11.15 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001796/1.222, allocations: 1.484 MB / 0.6704 GB, free: 9.66 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0285/1.25, allocations: 12.73 MB / 0.6828 GB, free: 12.91 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3537/1.604, allocations: 73.4 MB / 0.7545 GB, free: 33.11 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01815/1.622, allocations: 7.46 MB / 0.7618 GB, free: 32.39 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004745/1.627, allocations: 3.969 MB / 0.7657 GB, free: 32.35 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01836/1.645, allocations: 11.58 MB / 0.777 GB, free: 28.01 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.268e-05/1.646, allocations: 68.78 kB / 0.777 GB, free: 27.95 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 4.969e-06/1.646, allocations: 0 / 0.777 GB, free: 27.95 MB / 426.7 MB Notification: Performance of matching and sorting (n=339): time 0.1258/1.771, allocations: 37.94 MB / 0.8141 GB, free: 16.97 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001156/1.772, allocations: 409.2 kB / 0.8145 GB, free: 16.49 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01373/1.785, allocations: 6.197 MB / 0.8205 GB, free: 11.13 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00102/1.786, allocations: 77.7 kB / 0.8206 GB, free: 11.05 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004944/1.791, allocations: 5.226 MB / 0.8257 GB, free: 6.352 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001866/1.793, allocations: 1.251 MB / 0.8269 GB, free: 5.238 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001235/1.794, allocations: 171.7 kB / 0.8271 GB, free: 5.074 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006533/1.795, allocations: 0.6502 MB / 0.8277 GB, free: 4.516 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005247/1.8, allocations: 3.727 MB / 0.8314 GB, free: 1.137 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01999/1.82, allocations: 9.301 MB / 0.8405 GB, free: 9.219 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009604/1.83, allocations: 5.49 MB / 0.8458 GB, free: 4.598 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001724/1.83, allocations: 48 kB / 0.8459 GB, free: 4.551 MB / 442.7 MB Notification: Performance of matching and sorting (n=1083) (initialization): time 0.0401/1.87, allocations: 16.59 MB / 0.8621 GB, free: 5.098 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003451/1.871, allocations: 80 kB / 0.8621 GB, free: 5.02 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004/1.871, allocations: 167.2 kB / 0.8623 GB, free: 4.859 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2812/2.152, allocations: 5.491 MB / 0.8677 GB, free: 101.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006939/2.159, allocations: 1.795 MB / 0.8694 GB, free: 101.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03814/2.198, allocations: 28 MB / 0.8968 GB, free: 97.77 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008135/2.206, allocations: 0.5182 MB / 0.8973 GB, free: 97.77 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001691/2.207, allocations: 485.7 kB / 0.8977 GB, free: 97.76 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.001438/2.209, allocations: 0.7389 MB / 0.8985 GB, free: 97.65 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001445/2.21, allocations: 0.6553 MB / 0.8991 GB, free: 97.65 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0216/2.232, allocations: 10.89 MB / 0.9097 GB, free: 94.8 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.873e-05/2.232, allocations: 38.77 kB / 0.9098 GB, free: 94.8 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.2e-05/2.232, allocations: 17.81 kB / 0.9098 GB, free: 94.8 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.659e-05/2.232, allocations: 17.25 kB / 0.9098 GB, free: 94.8 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04265/2.275, allocations: 23.95 MB / 0.9332 GB, free: 85.12 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.51e-05/2.275, allocations: 3.375 kB / 0.9332 GB, free: 85.12 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002028/2.277, allocations: 432.1 kB / 0.9336 GB, free: 85.11 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01483/2.292, allocations: 5.077 MB / 0.9386 GB, free: 84.22 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009063/2.293, allocations: 61.42 kB / 0.9386 GB, free: 84.19 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03068/2.324, allocations: 26.75 MB / 0.9647 GB, free: 67.41 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.132e-06/2.324, allocations: 8 kB / 0.9648 GB, free: 67.41 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02581/2.349, allocations: 16.8 MB / 0.9812 GB, free: 53.29 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003631/2.353, allocations: 1.264 MB / 0.9824 GB, free: 52.11 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001367/2.354, allocations: 71.31 kB / 0.9825 GB, free: 52.05 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003667/2.358, allocations: 250.3 kB / 0.9827 GB, free: 51.89 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000795/2.359, allocations: 239.5 kB / 0.9829 GB, free: 51.75 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002842/2.359, allocations: 89.09 kB / 0.983 GB, free: 51.66 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.008833/2.368, allocations: 4.473 MB / 0.9874 GB, free: 47.75 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.253e-06/2.368, allocations: 4 kB / 0.9874 GB, free: 47.75 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009832/2.378, allocations: 1.969 MB / 0.9893 GB, free: 45.79 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.02644/2.404, allocations: 18.51 MB / 1.007 GB, free: 27.98 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01505/2.42, allocations: 9.998 MB / 1.017 GB, free: 18.05 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.15e-05/2.42, allocations: 0 / 1.017 GB, free: 18.05 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006495/2.426, allocations: 4.44 MB / 1.021 GB, free: 13.57 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004839/2.431, allocations: 0.9903 MB / 1.022 GB, free: 12.62 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2663/2.697, allocations: 18.24 MB / 1.04 GB, free: 98.82 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008421/2.706, allocations: 5.721 MB / 1.046 GB, free: 97.93 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.007224/2.713, allocations: 2.639 MB / 1.048 GB, free: 97.87 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004962/2.718, allocations: 3.729 MB / 1.052 GB, free: 97.86 MB / 458.7 MB Notification: Performance of SimCode: time 1.603e-06/2.718, allocations: 0 / 1.052 GB, free: 97.86 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4699/3.188, allocations: 159.6 MB / 1.208 GB, free: 79.34 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001705/3.188, allocations: 192.2 kB / 1.208 GB, free: 79.11 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.303/9.491, allocations: 0 / 1.208 GB, free: 79.11 MB / 474.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