Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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.Engine1b,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_3_2_3_cpp_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 3.2.3+maint.om/package.mo): time 0.00165/0.00165, allocations: 182.2 kB / 16.4 MB, free: 5.723 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.151/2.151, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001198/0.001197, allocations: 97.23 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005362/0.0005362, allocations: 12 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3434/0.344, allocations: 47.57 MB / 374.6 MB, free: 45.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1619/0.506, allocations: 97.82 MB / 472.5 MB, free: 14.78 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003419/0.5064, allocations: 91.95 kB / 472.5 MB, free: 14.69 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9224/1.429, allocations: 166.5 MB / 0.6241 GB, free: 5.48 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.695e-06/1.429, allocations: 0 / 0.6241 GB, free: 5.48 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0009056/1.43, allocations: 168 kB / 0.6243 GB, free: 5.316 MB / 394.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.04304/1.473, allocations: 9.323 MB / 0.6334 GB, free: 11.9 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.496e-05/1.473, allocations: 16.03 kB / 0.6334 GB, free: 11.88 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00675/1.48, allocations: 1.256 MB / 0.6346 GB, free: 10.62 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4417/1.921, allocations: 16.54 MB / 0.6507 GB, free: 50.33 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04715/1.969, allocations: 13.84 MB / 0.6643 GB, free: 50.01 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007226/1.969, allocations: 0.5487 MB / 0.6648 GB, free: 50 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003955/1.973, allocations: 0.7638 MB / 0.6655 GB, free: 49.98 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05625/2.03, allocations: 16.96 MB / 0.6821 GB, free: 46.37 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008094/2.031, allocations: 114 kB / 0.6822 GB, free: 46.36 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003472/2.034, allocations: 355.5 kB / 0.6826 GB, free: 46.36 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003551/2.038, allocations: 1.534 MB / 0.684 GB, free: 46.34 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04387/2.082, allocations: 13.34 MB / 0.6971 GB, free: 46.29 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1236/2.205, allocations: 74.81 MB / 0.7701 GB, free: 8.211 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03409/2.239, allocations: 7.095 MB / 0.7771 GB, free: 2.301 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05243/2.292, allocations: 12 MB / 0.7888 GB, free: 8.355 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001254/2.292, allocations: 68.03 kB / 0.7889 GB, free: 8.285 MB / 442.7 MB Notification: Performance of pre-optimization done (n=293): time 1.028e-05/2.292, allocations: 2.406 kB / 0.7889 GB, free: 8.285 MB / 442.7 MB Notification: Performance of matching and sorting (n=366): time 0.6642/2.956, allocations: 43.1 MB / 0.8309 GB, free: 91.22 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002218/2.957, allocations: 409.7 kB / 0.8313 GB, free: 90.78 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03312/2.99, allocations: 6.439 MB / 0.8376 GB, free: 90.29 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001464/2.991, allocations: 83.52 kB / 0.8377 GB, free: 90.26 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00908/3, allocations: 5.076 MB / 0.8427 GB, free: 87.86 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004264/3.005, allocations: 1.346 MB / 0.844 GB, free: 87.06 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003072/3.008, allocations: 173.2 kB / 0.8441 GB, free: 87.06 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001639/3.01, allocations: 0.6752 MB / 0.8448 GB, free: 86.73 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01953/3.029, allocations: 3.536 MB / 0.8483 GB, free: 86.71 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02681/3.056, allocations: 8.401 MB / 0.8565 GB, free: 80.49 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02774/3.084, allocations: 5.326 MB / 0.8617 GB, free: 80.43 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004853/3.084, allocations: 48 kB / 0.8617 GB, free: 80.43 MB / 458.7 MB Notification: Performance of matching and sorting (n=1139) (initialization): time 0.06057/3.145, allocations: 14.62 MB / 0.876 GB, free: 79.69 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001538/3.145, allocations: 77.88 kB / 0.876 GB, free: 79.69 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002788/3.145, allocations: 173.9 kB / 0.8762 GB, free: 79.69 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01949/3.165, allocations: 3.727 MB / 0.8799 GB, free: 79.09 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01188/3.177, allocations: 1.861 MB / 0.8817 GB, free: 78.86 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05528/3.232, allocations: 24.74 MB / 0.9058 GB, free: 66.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01158/3.244, allocations: 0.4912 MB / 0.9063 GB, free: 66.64 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00226/3.246, allocations: 0.4984 MB / 0.9068 GB, free: 66.57 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 770 * 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],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Mid.color[3],Mid.color[2],Mid.color[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],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.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],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1003): * Single equations (assignments): 997 * 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 {(5,72.0%) 101,(1,100.0%) 4} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.01049/3.257, allocations: 3.617 MB / 0.9103 GB, free: 64.96 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002031/3.259, allocations: 0.6899 MB / 0.911 GB, free: 64.59 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03382/3.293, allocations: 8.917 MB / 0.9197 GB, free: 61.27 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.193e-05/3.293, allocations: 36 kB / 0.9197 GB, free: 61.23 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.686e-05/3.293, allocations: 20 kB / 0.9198 GB, free: 61.21 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.075e-05/3.293, allocations: 16.55 kB / 0.9198 GB, free: 61.21 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06294/3.356, allocations: 19.5 MB / 0.9388 GB, free: 45.38 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.794e-05/3.356, allocations: 15.56 kB / 0.9388 GB, free: 45.36 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004049/3.36, allocations: 451.2 kB / 0.9393 GB, free: 44.99 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01872/3.379, allocations: 3.483 MB / 0.9427 GB, free: 42.52 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000897/3.38, allocations: 68 kB / 0.9427 GB, free: 42.45 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05418/3.434, allocations: 23.99 MB / 0.9662 GB, free: 21.46 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.506e-05/3.434, allocations: 23.84 kB / 0.9662 GB, free: 21.44 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04079/3.475, allocations: 15.04 MB / 0.9809 GB, free: 8.215 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.4192/3.894, allocations: 1.279 MB / 0.9821 GB, free: 82.26 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002831/3.897, allocations: 71.75 kB / 0.9822 GB, free: 82.26 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006915/3.904, allocations: 216.6 kB / 0.9824 GB, free: 82.26 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00168/3.906, allocations: 267.8 kB / 0.9826 GB, free: 82.26 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007585/3.906, allocations: 102.9 kB / 0.9827 GB, free: 82.26 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01282/3.919, allocations: 4.649 MB / 0.9873 GB, free: 82.04 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.31e-07/3.919, allocations: 0 / 0.9873 GB, free: 82.04 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01326/3.933, allocations: 2.016 MB / 0.9893 GB, free: 82.04 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 2 (Inertia.phi,Inertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (243): * Single equations (assignments): 237 * 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,64.1%) 93,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.04314/3.976, allocations: 17.02 MB / 1.006 GB, free: 77.69 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02542/4.001, allocations: 9.385 MB / 1.015 GB, free: 77.18 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.535e-05/4.001, allocations: 0 / 1.015 GB, free: 77.18 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01143/4.013, allocations: 4.125 MB / 1.019 GB, free: 76.71 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009285/4.022, allocations: 1.026 MB / 1.02 GB, free: 76.68 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5774/4.599, allocations: 195.1 MB / 1.211 GB, free: 136.6 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01537/4.615, allocations: 5.947 MB / 1.216 GB, free: 135.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009874/4.625, allocations: 4.013 MB / 1.22 GB, free: 135.7 MB / 0.5105 GB Notification: Performance of SimCode: time 1.593e-06/4.625, allocations: 0 / 1.22 GB, free: 135.7 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.323/10.95, allocations: 251.4 MB / 1.466 GB, free: 80.59 MB / 0.5105 GB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat does not exist to compare? outputFormat=mat