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.002339/0.002339, allocations: 186.2 kB / 16.4 MB, free: 5.746 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.099/2.099, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001167/0.001167, allocations: 98.08 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004091/0.0004091, allocations: 12 kB / 327.1 MB, free: 112 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3427/0.3431, allocations: 47.58 MB / 374.6 MB, free: 45.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2287/0.5719, allocations: 96.3 MB / 470.9 MB, free: 412 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005136/0.5725, allocations: 87.95 kB / 471 MB, free: 324 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9869/1.559, allocations: 161.3 MB / 0.6175 GB, free: 12.1 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.587e-06/1.559, allocations: 0 / 0.6175 GB, free: 12.1 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.00081/1.56, allocations: 156 kB / 0.6176 GB, free: 11.95 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: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.04216/1.602, allocations: 8.989 MB / 0.6264 GB, free: 2.867 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.601e-05/1.603, allocations: 8.031 kB / 0.6264 GB, free: 2.859 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006307/1.609, allocations: 1.206 MB / 0.6276 GB, free: 1.641 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1249/1.734, allocations: 16.47 MB / 0.6437 GB, free: 1.137 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3523/2.086, allocations: 13.56 MB / 0.6569 GB, free: 53.52 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006779/2.087, allocations: 0.5219 MB / 0.6574 GB, free: 53.51 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00374/2.091, allocations: 0.7256 MB / 0.6581 GB, free: 53.51 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0519/2.143, allocations: 16.4 MB / 0.6741 GB, free: 49.91 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009033/2.144, allocations: 112.8 kB / 0.6743 GB, free: 49.91 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003563/2.147, allocations: 337.6 kB / 0.6746 GB, free: 49.91 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003959/2.151, allocations: 1.488 MB / 0.676 GB, free: 49.9 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04192/2.193, allocations: 12.91 MB / 0.6886 GB, free: 49.84 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1187/2.312, allocations: 73.43 MB / 0.7603 GB, free: 14.73 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03443/2.346, allocations: 7.498 MB / 0.7677 GB, free: 10.95 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03228/2.379, allocations: 11.59 MB / 0.779 GB, free: 1.102 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.469e-05/2.379, allocations: 71.88 kB / 0.7791 GB, free: 1.027 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 6.081e-06/2.379, allocations: 0 / 0.7791 GB, free: 1.027 MB / 426.7 MB Notification: Performance of matching and sorting (n=339): time 0.6293/3.008, allocations: 46.58 MB / 0.8245 GB, free: 98.07 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001371/3.008, allocations: 399.8 kB / 0.8249 GB, free: 97.63 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0162/3.025, allocations: 6.26 MB / 0.831 GB, free: 97.29 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009597/3.026, allocations: 81.08 kB / 0.8311 GB, free: 97.25 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004821/3.03, allocations: 4.868 MB / 0.8359 GB, free: 96.13 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002089/3.033, allocations: 1.251 MB / 0.8371 GB, free: 95.39 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001549/3.034, allocations: 163.7 kB / 0.8372 GB, free: 95.39 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007285/3.035, allocations: 0.6604 MB / 0.8379 GB, free: 95.06 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009523/3.044, allocations: 3.803 MB / 0.8416 GB, free: 95.04 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01327/3.058, allocations: 8.467 MB / 0.8499 GB, free: 89.06 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01394/3.072, allocations: 5.513 MB / 0.8553 GB, free: 89 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002183/3.072, allocations: 50.38 kB / 0.8553 GB, free: 89 MB / 458.7 MB Notification: Performance of matching and sorting (n=1083) (initialization): time 0.05664/3.129, allocations: 16.38 MB / 0.8713 GB, free: 87.91 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001421/3.129, allocations: 74.25 kB / 0.8714 GB, free: 87.91 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002967/3.129, allocations: 167.9 kB / 0.8715 GB, free: 87.91 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02932/3.159, allocations: 5.507 MB / 0.8769 GB, free: 86.98 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0108/3.169, allocations: 1.799 MB / 0.8787 GB, free: 86.77 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06958/3.239, allocations: 28.96 MB / 0.9069 GB, free: 73.21 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0141/3.253, allocations: 0.5218 MB / 0.9075 GB, free: 73.06 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002013/3.255, allocations: 476.6 kB / 0.9079 GB, free: 73 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 () * Number of clocked 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.009928/3.265, allocations: 3.485 MB / 0.9113 GB, free: 71.45 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001904/3.267, allocations: 0.6582 MB / 0.912 GB, free: 71.09 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04261/3.31, allocations: 10.96 MB / 0.9227 GB, free: 63.75 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.78e-05/3.31, allocations: 36 kB / 0.9227 GB, free: 63.71 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.59e-05/3.31, allocations: 16 kB / 0.9227 GB, free: 63.7 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-05/3.31, allocations: 12.98 kB / 0.9227 GB, free: 63.7 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07461/3.385, allocations: 24.02 MB / 0.9462 GB, free: 43.95 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-05/3.385, allocations: 4 kB / 0.9462 GB, free: 43.95 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003743/3.389, allocations: 429.1 kB / 0.9466 GB, free: 43.61 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02819/3.417, allocations: 5.096 MB / 0.9516 GB, free: 40.24 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009081/3.418, allocations: 63.5 kB / 0.9516 GB, free: 40.18 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06162/3.479, allocations: 27.72 MB / 0.9787 GB, free: 13.78 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.128e-05/3.479, allocations: 15.89 kB / 0.9787 GB, free: 13.77 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3757/3.855, allocations: 16.88 MB / 0.9952 GB, free: 86.5 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005235/3.86, allocations: 1.268 MB / 0.9964 GB, free: 86.4 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002319/3.863, allocations: 57.59 kB / 0.9965 GB, free: 86.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006643/3.869, allocations: 264.6 kB / 0.9968 GB, free: 86.4 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001557/3.871, allocations: 240.6 kB / 0.997 GB, free: 86.39 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006216/3.872, allocations: 89.67 kB / 0.9971 GB, free: 86.39 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01284/3.885, allocations: 4.532 MB / 1.001 GB, free: 86.18 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.002e-06/3.885, allocations: 0 / 1.001 GB, free: 86.18 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01255/3.897, allocations: 1.972 MB / 1.003 GB, free: 86.18 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 () * Number of clocked 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.05327/3.951, allocations: 18.62 MB / 1.022 GB, free: 82.56 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02578/3.976, allocations: 10.14 MB / 1.032 GB, free: 82.03 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.352e-05/3.976, allocations: 0 / 1.032 GB, free: 82.03 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01325/3.99, allocations: 4.502 MB / 1.036 GB, free: 81.28 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008698/3.998, allocations: 0.9799 MB / 1.037 GB, free: 80.92 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5616/4.56, allocations: 191 MB / 1.223 GB, free: 71.06 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01378/4.574, allocations: 5.715 MB / 1.229 GB, free: 70.16 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008814/4.583, allocations: 3.785 MB / 1.233 GB, free: 70.16 MB / 490.7 MB Notification: Performance of SimCode: time 1.373e-06/4.583, allocations: 2.594 kB / 1.233 GB, free: 70.16 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.121/10.7, allocations: 243.6 MB / 1.471 GB, free: 16.7 MB / 490.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