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.003369/0.003369, allocations: 178 kB / 8.363 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.048/2.048, allocations: 205.3 MB / 214.1 MB, free: 14.13 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.00169/0.00169, allocations: 91.52 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.288e-05/2.295e-05, allocations: 0 / 314.9 MB, free: 9.051 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.342/0.3421, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.162/0.5041, allocations: 97.07 MB / 459.5 MB, free: 5.109 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003466/0.5045, allocations: 92.64 kB / 459.6 MB, free: 5.023 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.9366/1.441, allocations: 163.3 MB / 0.6083 GB, free: 33.54 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.735e-06/1.441, allocations: 0 / 0.6083 GB, free: 33.54 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0007859/1.442, allocations: 175.9 kB / 0.6084 GB, free: 33.36 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: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.03348/1.475, allocations: 8.19 MB / 0.6164 GB, free: 25.09 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.24e-05/1.476, allocations: 8.031 kB / 0.6165 GB, free: 25.09 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.118/1.594, allocations: 16.57 MB / 0.6326 GB, free: 8.477 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04842/1.642, allocations: 13.76 MB / 0.6461 GB, free: 10.62 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005629/1.643, allocations: 240 kB / 0.6463 GB, free: 10.39 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004091/1.647, allocations: 463.7 kB / 0.6467 GB, free: 9.938 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03002/1.677, allocations: 9.882 MB / 0.6564 GB, free: 52 kB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3514/2.028, allocations: 14.78 MB / 0.6708 GB, free: 57.54 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008097/2.029, allocations: 115.3 kB / 0.6709 GB, free: 57.54 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003522/2.033, allocations: 45 kB / 0.671 GB, free: 57.54 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0036/2.036, allocations: 1.534 MB / 0.6725 GB, free: 57.53 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.125/2.161, allocations: 72.63 MB / 0.7434 GB, free: 14.48 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01055/2.172, allocations: 5.378 MB / 0.7487 GB, free: 11.86 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007243/2.179, allocations: 3.828 MB / 0.7524 GB, free: 10.2 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001863/2.181, allocations: 1.384 MB / 0.7537 GB, free: 8.926 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.005e-05/2.181, allocations: 65.75 kB / 0.7538 GB, free: 8.863 MB / 411.1 MB Notification: Performance of pre-optimization done (n=299): time 7.705e-06/2.181, allocations: 0 / 0.7538 GB, free: 8.863 MB / 411.1 MB Notification: Performance of matching and sorting (n=371): time 0.1564/2.338, allocations: 35.75 MB / 0.7887 GB, free: 7.801 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002874/2.338, allocations: 400.6 kB / 0.7891 GB, free: 7.324 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01781/2.356, allocations: 5.659 MB / 0.7946 GB, free: 2.473 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001072/2.357, allocations: 29.7 kB / 0.7947 GB, free: 2.438 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.006677/2.364, allocations: 5.165 MB / 0.7997 GB, free: 13.67 MB / 443.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002732/2.367, allocations: 1.323 MB / 0.801 GB, free: 12.48 MB / 443.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001371/2.368, allocations: 0 / 0.801 GB, free: 12.48 MB / 443.1 MB Notification: Performance of setup shared object (initialization): time 0.0009756/2.369, allocations: 0.6872 MB / 0.8017 GB, free: 11.89 MB / 443.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009585/2.379, allocations: 3.347 MB / 0.8049 GB, free: 8.883 MB / 443.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01532/2.394, allocations: 8.3 MB / 0.813 GB, free: 14.77 MB / 459.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01366/2.408, allocations: 5.189 MB / 0.8181 GB, free: 10.32 MB / 459.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000249/2.408, allocations: 52 kB / 0.8182 GB, free: 10.27 MB / 459.1 MB Notification: Performance of matching and sorting (n=1168) (initialization): time 0.3843/2.792, allocations: 13.49 MB / 0.8313 GB, free: 94.63 MB / 459.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001452/2.793, allocations: 78.19 kB / 0.8314 GB, free: 94.63 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000288/2.793, allocations: 180.4 kB / 0.8316 GB, free: 94.63 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01883/2.812, allocations: 3.685 MB / 0.8352 GB, free: 94.58 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01157/2.823, allocations: 1.911 MB / 0.837 GB, free: 94.58 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05055/2.874, allocations: 22.23 MB / 0.8587 GB, free: 90.72 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01081/2.885, allocations: 330.2 kB / 0.8591 GB, free: 90.72 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002437/2.887, allocations: 0.5061 MB / 0.8596 GB, free: 90.72 MB / 459.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 794 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1032): * Single equations (assignments): 1026 * 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%) 98,(1,100.0%) 4} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.003395/2.891, allocations: 0.564 MB / 0.8601 GB, free: 90.61 MB / 459.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03052/2.921, allocations: 8.486 MB / 0.8684 GB, free: 90.4 MB / 459.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002333/2.924, allocations: 0.6507 MB / 0.869 GB, free: 90.39 MB / 459.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03145/2.955, allocations: 8.493 MB / 0.8773 GB, free: 90.1 MB / 459.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.132e-05/2.955, allocations: 43.02 kB / 0.8774 GB, free: 90.1 MB / 459.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-05/2.955, allocations: 17.75 kB / 0.8774 GB, free: 90.1 MB / 459.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.88e-05/2.955, allocations: 14.72 kB / 0.8774 GB, free: 90.1 MB / 459.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06019/3.016, allocations: 18.13 MB / 0.8951 GB, free: 83.85 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.515e-05/3.016, allocations: 11.73 kB / 0.8951 GB, free: 83.85 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003958/3.02, allocations: 454.2 kB / 0.8955 GB, free: 83.83 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0179/3.038, allocations: 3.4 MB / 0.8989 GB, free: 83.14 MB / 459.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008929/3.039, allocations: 21.88 kB / 0.8989 GB, free: 83.14 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04624/3.085, allocations: 21.56 MB / 0.9199 GB, free: 72.57 MB / 459.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.514e-05/3.085, allocations: 13.62 kB / 0.9199 GB, free: 72.57 MB / 459.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03613/3.121, allocations: 14.56 MB / 0.9342 GB, free: 61.78 MB / 459.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004868/3.126, allocations: 1.186 MB / 0.9353 GB, free: 60.67 MB / 459.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002157/3.128, allocations: 15.94 kB / 0.9353 GB, free: 60.66 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006484/3.135, allocations: 157.5 kB / 0.9355 GB, free: 60.57 MB / 459.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001579/3.136, allocations: 272.2 kB / 0.9358 GB, free: 60.41 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004867/3.137, allocations: 106.4 kB / 0.9359 GB, free: 60.31 MB / 459.1 MB Notification: Performance of sorting global known variables: time 0.01014/3.147, allocations: 3.94 MB / 0.9397 GB, free: 56.91 MB / 459.1 MB Notification: Performance of sort global known variables: time 1.032e-06/3.147, allocations: 2.625 kB / 0.9397 GB, free: 56.91 MB / 459.1 MB Notification: Performance of remove unused functions: time 0.01281/3.16, allocations: 1.764 MB / 0.9414 GB, free: 55.16 MB / 459.1 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (248): * Single equations (assignments): 242 * 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.03682/3.197, allocations: 16.59 MB / 0.9576 GB, free: 40.42 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.02174/3.219, allocations: 8.967 MB / 0.9664 GB, free: 32.72 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 1.337e-05/3.219, allocations: 6.031 kB / 0.9664 GB, free: 32.71 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01034/3.229, allocations: 3.949 MB / 0.9702 GB, free: 29.21 MB / 459.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008116/3.237, allocations: 0.872 MB / 0.9711 GB, free: 28.51 MB / 459.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05924/3.296, allocations: 18.47 MB / 0.9891 GB, free: 11.57 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3724/3.669, allocations: 5.939 MB / 0.9949 GB, free: 92.2 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009554/3.679, allocations: 3.978 MB / 0.9988 GB, free: 92.2 MB / 459.1 MB Notification: Performance of SimCode: time 1.493e-06/3.679, allocations: 3.312 kB / 0.9988 GB, free: 92.2 MB / 459.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.446/10.12, allocations: 247.9 MB / 1.241 GB, free: 89.91 MB / 475.1 MB (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