Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009169/0.000917, allocations: 90.39 kB / 16.32 MB, free: 6.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 179.8 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 223.3 MB / 241.2 MB, free: 5.445 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003163/0.0003163, allocations: 5.156 kB / 300.9 MB, free: 6.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1094, allocations: 50.43 MB / 351.3 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.3012/0.4106, allocations: 93.83 MB / 445.2 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.04582/0.4564, allocations: 19.12 MB / 464.3 MB, free: 14.99 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02357/0.4801, allocations: 473.8 kB / 464.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01696/0.497, allocations: 4.896 MB / 469.7 MB, free: 12.27 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04117/0.5382, allocations: 14.57 MB / 484.2 MB, free: 5.336 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006387/0.5447, allocations: 1.405 MB / 485.6 MB, free: 4.949 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.4564/1.001, allocations: 178.8 MB / 0.6489 GB, free: 95.52 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01136/1.013, allocations: 8.82 MB / 0.6575 GB, free: 89.29 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005718/1.018, allocations: 2.916 MB / 0.6603 GB, free: 87.29 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006161/1.024, allocations: 4.423 MB / 0.6647 GB, free: 84.06 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001777/1.026, allocations: 276 kB / 0.6649 GB, free: 83.79 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003263/1.03, allocations: 1.139 MB / 0.666 GB, free: 82.86 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003576/1.033, allocations: 3.672 MB / 0.6696 GB, free: 80.12 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002192/1.035, allocations: 1.585 MB / 0.6712 GB, free: 79.54 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00941/1.045, allocations: 11.23 MB / 0.6821 GB, free: 69.79 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/1.045, allocations: 0 / 0.6821 GB, free: 69.79 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.124e-06/1.045, allocations: 0 / 0.6821 GB, free: 69.79 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0004216/1.045, allocations: 0 / 0.6821 GB, free: 69.79 MB / 478.1 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.01887/1.064, allocations: 8.673 MB / 0.6906 GB, free: 61.79 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/1.064, allocations: 12.03 kB / 0.6906 GB, free: 61.78 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003051/1.067, allocations: 1.143 MB / 0.6917 GB, free: 61.11 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2183/1.286, allocations: 24.8 MB / 0.716 GB, free: 37.45 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02015/1.306, allocations: 9.404 MB / 0.7251 GB, free: 30.77 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003475/1.306, allocations: 427.2 kB / 0.7255 GB, free: 30.54 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002069/1.308, allocations: 0.5833 MB / 0.7261 GB, free: 30.15 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02912/1.337, allocations: 16.2 MB / 0.7419 GB, free: 16.49 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003802/1.338, allocations: 104 kB / 0.742 GB, free: 16.42 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001537/1.339, allocations: 267.7 kB / 0.7423 GB, free: 16.21 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00371/1.343, allocations: 2.761 MB / 0.745 GB, free: 13.48 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02619/1.369, allocations: 12.87 MB / 0.7575 GB, free: 0.8789 MB / 478.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4984/1.868, allocations: 66.45 MB / 0.8224 GB, free: 165.1 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01851/1.886, allocations: 7.624 MB / 0.8299 GB, free: 164.4 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00586/1.892, allocations: 4.196 MB / 0.834 GB, free: 164.4 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01532/1.908, allocations: 11.67 MB / 0.8454 GB, free: 158.5 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.323e-05/1.908, allocations: 74.98 kB / 0.8455 GB, free: 158.4 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=280): time 4.528e-06/1.908, allocations: 0 / 0.8455 GB, free: 158.4 MB / 0.4982 GB Notification: Performance of matching and sorting (n=339): time 0.1534/2.061, allocations: 48.27 MB / 0.8926 GB, free: 114.6 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/2.061, allocations: 397.8 kB / 0.893 GB, free: 114.1 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01152/2.073, allocations: 7.12 MB / 0.8999 GB, free: 107 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.0009803/2.074, allocations: 78.95 kB / 0.9 GB, free: 107 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.003573/2.077, allocations: 5.18 MB / 0.9051 GB, free: 101.8 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.001886/2.079, allocations: 1.239 MB / 0.9063 GB, free: 100.6 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006774/2.08, allocations: 169 kB / 0.9064 GB, free: 100.4 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0003938/2.08, allocations: 0.6492 MB / 0.9071 GB, free: 99.75 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005074/2.085, allocations: 3.928 MB / 0.9109 GB, free: 95.81 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007233/2.093, allocations: 8.558 MB / 0.9193 GB, free: 85.04 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007724/2.101, allocations: 5.62 MB / 0.9247 GB, free: 79.53 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001073/2.101, allocations: 44 kB / 0.9248 GB, free: 79.49 MB / 0.4982 GB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.03567/2.136, allocations: 17.1 MB / 0.9415 GB, free: 62.34 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002377/2.137, allocations: 79.98 kB / 0.9416 GB, free: 62.27 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003129/2.137, allocations: 160.1 kB / 0.9417 GB, free: 62.11 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01568/2.153, allocations: 5.78 MB / 0.9474 GB, free: 56.31 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005596/2.158, allocations: 1.751 MB / 0.9491 GB, free: 54.56 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03757/2.196, allocations: 29.73 MB / 0.9781 GB, free: 24.42 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008026/2.204, allocations: 0.5344 MB / 0.9786 GB, free: 23.89 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001822/2.206, allocations: 465.4 kB / 0.9791 GB, free: 23.43 MB / 0.4982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 727 * Number of states: 0 () * Number of discrete variables: 66 (cylinder.boxColor[3],cylinder.boxColor[2],cylinder.boxColor[1],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],mid.color[3],mid.color[2],mid.color[1],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[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],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (934): * Single equations (assignments): 928 * 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%) 94,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.007565/2.213, allocations: 3.466 MB / 0.9825 GB, free: 19.95 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002109/2.216, allocations: 0.6557 MB / 0.9831 GB, free: 19.29 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02418/2.24, allocations: 11.45 MB / 0.9943 GB, free: 7.762 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.02e-05/2.24, allocations: 36 kB / 0.9943 GB, free: 7.727 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.593e-05/2.24, allocations: 16 kB / 0.9943 GB, free: 7.711 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-05/2.24, allocations: 19.94 kB / 0.9943 GB, free: 7.691 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3162/2.556, allocations: 24.85 MB / 1.019 GB, free: 183.9 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.077e-05/2.556, allocations: 3.906 kB / 1.019 GB, free: 183.9 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001952/2.558, allocations: 422.1 kB / 1.019 GB, free: 183.9 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01415/2.572, allocations: 5.4 MB / 1.024 GB, free: 183.8 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007279/2.573, allocations: 66.91 kB / 1.024 GB, free: 183.8 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0323/2.605, allocations: 28.45 MB / 1.052 GB, free: 166.5 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.095e-06/2.605, allocations: 12.75 kB / 1.052 GB, free: 166.5 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02562/2.631, allocations: 16.45 MB / 1.068 GB, free: 150.3 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002578/2.634, allocations: 0.6871 MB / 1.069 GB, free: 150 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001755/2.636, allocations: 60 kB / 1.069 GB, free: 149.9 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003262/2.639, allocations: 268.7 kB / 1.069 GB, free: 149.6 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007588/2.64, allocations: 246.2 kB / 1.069 GB, free: 149.4 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002453/2.64, allocations: 89.33 kB / 1.07 GB, free: 149.3 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.0068/2.647, allocations: 4.579 MB / 1.074 GB, free: 144.8 MB / 0.4982 GB Notification: Performance of sort global known variables: time 2.81e-07/2.647, allocations: 0 / 1.074 GB, free: 144.8 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.008445/2.655, allocations: 1.965 MB / 1.076 GB, free: 142.8 MB / 0.4982 GB 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.02591/2.681, allocations: 17.15 MB / 1.093 GB, free: 125.6 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.01645/2.697, allocations: 10.43 MB / 1.103 GB, free: 115.1 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.447e-05/2.698, allocations: 4 kB / 1.103 GB, free: 115.1 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.007801/2.705, allocations: 4.675 MB / 1.107 GB, free: 110.4 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009301/2.715, allocations: 1.042 MB / 1.108 GB, free: 109.4 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1412/2.856, allocations: 79.6 MB / 1.186 GB, free: 23.92 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01046/2.866, allocations: 5.528 MB / 1.192 GB, free: 18.36 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.008391/2.875, allocations: 2.622 MB / 1.194 GB, free: 15.73 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006056/2.881, allocations: 3.745 MB / 1.198 GB, free: 11.98 MB / 0.4982 GB Notification: Performance of SimCode: time 1.413e-06/2.881, allocations: 0 / 1.198 GB, free: 11.98 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4626/3.344, allocations: 162.1 MB / 1.356 GB, free: 53.91 MB / 0.4982 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001548/3.344, allocations: 215.5 kB / 1.356 GB, free: 53.68 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.645/9.989, allocations: 0 / 1.356 GB, free: 53.68 MB / 0.4982 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat does not exist to compare? outputFormat=mat