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.001529/0.001529, allocations: 180.4 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.178/2.178, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001091/0.001091, allocations: 86.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.247e-05/6.271e-05, allocations: 4 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1227, allocations: 47.57 MB / 369.2 MB, free: 2.102 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4692/0.592, allocations: 97.72 MB / 466.9 MB, free: 11.39 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003419/0.5925, allocations: 90.77 kB / 467 MB, free: 11.34 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9952/1.588, allocations: 166.7 MB / 0.6188 GB, free: 63.38 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.354e-06/1.588, allocations: 0 / 0.6188 GB, free: 63.38 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008092/1.589, allocations: 168 kB / 0.619 GB, free: 63.21 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: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.03472/1.623, allocations: 8.197 MB / 0.627 GB, free: 54.93 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.914e-05/1.623, allocations: 8.031 kB / 0.627 GB, free: 54.93 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006695/1.63, allocations: 1.252 MB / 0.6282 GB, free: 53.66 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1192/1.749, allocations: 16.58 MB / 0.6444 GB, free: 37.05 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04649/1.796, allocations: 13.77 MB / 0.6578 GB, free: 23.19 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000774/1.797, allocations: 0.5497 MB / 0.6584 GB, free: 22.64 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004157/1.801, allocations: 0.7612 MB / 0.6591 GB, free: 21.88 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05314/1.854, allocations: 16.82 MB / 0.6755 GB, free: 3.738 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007626/1.855, allocations: 119 kB / 0.6756 GB, free: 3.621 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003635/1.859, allocations: 343.9 kB / 0.676 GB, free: 3.285 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003459/1.862, allocations: 1.539 MB / 0.6775 GB, free: 1.738 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04804/1.91, allocations: 13.14 MB / 0.6903 GB, free: 4.586 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7681/2.678, allocations: 74.8 MB / 0.7633 GB, free: 28.61 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03096/2.709, allocations: 7.036 MB / 0.7702 GB, free: 27.89 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008032/2.717, allocations: 3.916 MB / 0.774 GB, free: 26.42 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03079/2.748, allocations: 11.91 MB / 0.7857 GB, free: 20.45 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.408e-05/2.748, allocations: 65.16 kB / 0.7857 GB, free: 20.39 MB / 426.8 MB Notification: Performance of pre-optimization done (n=293): time 7.334e-06/2.748, allocations: 3.938 kB / 0.7857 GB, free: 20.39 MB / 426.8 MB Notification: Performance of matching and sorting (n=366): time 0.2147/2.963, allocations: 35.32 MB / 0.8202 GB, free: 7.305 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001471/2.963, allocations: 405.3 kB / 0.8206 GB, free: 6.824 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01747/2.981, allocations: 6.37 MB / 0.8268 GB, free: 1.273 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001084/2.982, allocations: 81.7 kB / 0.8269 GB, free: 1.188 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.006693/2.989, allocations: 5.096 MB / 0.8319 GB, free: 12.58 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002879/2.992, allocations: 1.345 MB / 0.8332 GB, free: 11.39 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001501/2.993, allocations: 170.2 kB / 0.8334 GB, free: 11.22 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0009226/2.994, allocations: 0.6787 MB / 0.834 GB, free: 10.64 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01056/3.005, allocations: 3.463 MB / 0.8374 GB, free: 7.504 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01557/3.02, allocations: 8.33 MB / 0.8455 GB, free: 13.39 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01429/3.035, allocations: 5.294 MB / 0.8507 GB, free: 8.961 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002141/3.035, allocations: 48 kB / 0.8508 GB, free: 8.914 MB / 458.8 MB Notification: Performance of matching and sorting (n=1139) (initialization): time 0.4025/3.437, allocations: 14.53 MB / 0.865 GB, free: 93.41 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001984/3.438, allocations: 77.34 kB / 0.865 GB, free: 93.41 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004197/3.438, allocations: 172.7 kB / 0.8652 GB, free: 93.41 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02161/3.46, allocations: 3.718 MB / 0.8688 GB, free: 93.37 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01336/3.473, allocations: 1.865 MB / 0.8706 GB, free: 93.37 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05727/3.53, allocations: 23.8 MB / 0.8939 GB, free: 89.34 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0121/3.543, allocations: 0.4904 MB / 0.8944 GB, free: 89.34 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002481/3.545, allocations: 0.4937 MB / 0.8949 GB, free: 89.34 MB / 458.8 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 () * 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.004134/3.549, allocations: 0.7753 MB / 0.8956 GB, free: 89.22 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002219/3.552, allocations: 0.6933 MB / 0.8963 GB, free: 89.22 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04612/3.598, allocations: 8.831 MB / 0.9049 GB, free: 88.58 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.867e-05/3.598, allocations: 42.48 kB / 0.9049 GB, free: 88.58 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.144e-05/3.598, allocations: 20.56 kB / 0.905 GB, free: 88.58 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.641e-05/3.598, allocations: 19.86 kB / 0.905 GB, free: 88.58 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07584/3.674, allocations: 19.43 MB / 0.924 GB, free: 81.58 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.539e-05/3.674, allocations: 10.81 kB / 0.924 GB, free: 81.58 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004165/3.678, allocations: 452.2 kB / 0.9244 GB, free: 81.56 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01908/3.697, allocations: 3.472 MB / 0.9278 GB, free: 80.86 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001002/3.698, allocations: 67.38 kB / 0.9279 GB, free: 80.82 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05409/3.753, allocations: 23.08 MB / 0.9504 GB, free: 69.69 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.305e-05/3.753, allocations: 14.69 kB / 0.9504 GB, free: 69.69 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04002/3.793, allocations: 14.91 MB / 0.965 GB, free: 57.11 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005249/3.798, allocations: 1.228 MB / 0.9662 GB, free: 55.97 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00269/3.801, allocations: 72.33 kB / 0.9662 GB, free: 55.9 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006906/3.808, allocations: 215.2 kB / 0.9664 GB, free: 55.76 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00172/3.809, allocations: 267.7 kB / 0.9667 GB, free: 55.59 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007065/3.81, allocations: 104.7 kB / 0.9668 GB, free: 55.5 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.01806/3.828, allocations: 4.582 MB / 0.9713 GB, free: 51.49 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.213e-06/3.828, allocations: 1.5 kB / 0.9713 GB, free: 51.49 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.0131/3.841, allocations: 2.011 MB / 0.9732 GB, free: 49.5 MB / 458.8 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 (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.04185/3.883, allocations: 16.91 MB / 0.9898 GB, free: 34.43 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.02328/3.907, allocations: 9.246 MB / 0.9988 GB, free: 26.17 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.881e-05/3.907, allocations: 4 kB / 0.9988 GB, free: 26.16 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01165/3.918, allocations: 4.058 MB / 1.003 GB, free: 22.47 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009308/3.928, allocations: 1.027 MB / 1.004 GB, free: 21.64 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07117/3.999, allocations: 18.88 MB / 1.022 GB, free: 2.875 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01734/4.016, allocations: 5.945 MB / 1.028 GB, free: 12.93 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3548/4.371, allocations: 4.015 MB / 1.032 GB, free: 106.1 MB / 474.8 MB Notification: Performance of SimCode: time 2.846e-06/4.371, allocations: 1.031 kB / 1.032 GB, free: 106.1 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.914/11.29, allocations: 251.5 MB / 1.277 GB, free: 100.7 MB / 490.8 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