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.0009245/0.0009245, allocations: 98.44 kB / 16.3 MB, free: 5.582 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.0009304/0.0009306, allocations: 178.6 kB / 17.19 MB, free: 5.516 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.456/1.456, allocations: 223.2 MB / 241.1 MB, free: 14.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004107/0.0004107, allocations: 8 kB / 300.8 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.1297, allocations: 50.41 MB / 351.2 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.316/0.4458, allocations: 88.46 MB / 439.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.05446/0.5003, allocations: 20.07 MB / 459.8 MB, free: 7.414 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02435/0.5247, allocations: 470.7 kB / 460.2 MB, free: 6.953 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01718/0.5419, allocations: 4.456 MB / 464.7 MB, free: 2.477 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04255/0.5845, allocations: 12.78 MB / 477.5 MB, free: 5.668 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006885/0.5914, allocations: 1.391 MB / 478.9 MB, free: 4.277 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.4546/1.046, allocations: 139.8 MB / 0.6041 GB, free: 39.31 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01301/1.059, allocations: 8.745 MB / 0.6127 GB, free: 33.11 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006644/1.066, allocations: 2.403 MB / 0.615 GB, free: 31.56 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005173/1.071, allocations: 3.113 MB / 0.618 GB, free: 29.33 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001722/1.073, allocations: 280 kB / 0.6183 GB, free: 29.06 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003399/1.076, allocations: 1.112 MB / 0.6194 GB, free: 28.14 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003768/1.08, allocations: 3.4 MB / 0.6227 GB, free: 25.65 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003152/1.083, allocations: 1.588 MB / 0.6243 GB, free: 25.07 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01158/1.095, allocations: 11.21 MB / 0.6352 GB, free: 15.34 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/1.095, allocations: 0 / 0.6352 GB, free: 15.34 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.908e-06/1.095, allocations: 0 / 0.6352 GB, free: 15.34 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004964/1.095, allocations: 0 / 0.6352 GB, free: 15.34 MB / 446.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.02627/1.122, allocations: 8.837 MB / 0.6438 GB, free: 7.207 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/1.122, allocations: 8.031 kB / 0.6439 GB, free: 7.199 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00427/1.126, allocations: 1.144 MB / 0.645 GB, free: 6.52 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2884/1.414, allocations: 29.78 MB / 0.6741 GB, free: 10.63 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02056/1.435, allocations: 8.191 MB / 0.682 GB, free: 4.719 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004295/1.436, allocations: 430.6 kB / 0.6825 GB, free: 4.484 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002802/1.438, allocations: 0.5842 MB / 0.683 GB, free: 4.098 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03427/1.473, allocations: 16.4 MB / 0.699 GB, free: 7.281 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003816/1.473, allocations: 96.17 kB / 0.6991 GB, free: 7.223 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00123/1.474, allocations: 264.4 kB / 0.6994 GB, free: 7.148 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004764/1.479, allocations: 2.774 MB / 0.7021 GB, free: 4.883 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03258/1.512, allocations: 13.11 MB / 0.7149 GB, free: 11.75 MB / 0.4981 GB 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.4329/1.945, allocations: 66.81 MB / 0.7801 GB, free: 159.8 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01841/1.963, allocations: 7.711 MB / 0.7877 GB, free: 156.1 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01615/1.979, allocations: 11.85 MB / 0.7992 GB, free: 148.5 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.588e-05/1.979, allocations: 67.66 kB / 0.7993 GB, free: 148.5 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=280): time 4.979e-06/1.979, allocations: 0 / 0.7993 GB, free: 148.5 MB / 0.4982 GB Notification: Performance of matching and sorting (n=339): time 0.1679/2.147, allocations: 48.63 MB / 0.8468 GB, free: 101.4 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001191/2.147, allocations: 402.1 kB / 0.8472 GB, free: 101 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01525/2.163, allocations: 7.857 MB / 0.8549 GB, free: 93.15 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.0009664/2.164, allocations: 75.95 kB / 0.8549 GB, free: 93.07 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0042/2.168, allocations: 5.179 MB / 0.86 GB, free: 87.91 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.001807/2.17, allocations: 1.244 MB / 0.8612 GB, free: 86.67 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006806/2.171, allocations: 165.2 kB / 0.8614 GB, free: 86.51 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0004563/2.171, allocations: 0.6492 MB / 0.862 GB, free: 85.86 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00884/2.18, allocations: 3.924 MB / 0.8658 GB, free: 81.92 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01261/2.192, allocations: 8.527 MB / 0.8741 GB, free: 71.15 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01244/2.205, allocations: 5.628 MB / 0.8796 GB, free: 65.5 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001275/2.205, allocations: 44 kB / 0.8797 GB, free: 65.46 MB / 0.4982 GB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.03569/2.241, allocations: 17.1 MB / 0.8964 GB, free: 48.29 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001089/2.241, allocations: 73 kB / 0.8965 GB, free: 48.22 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001799/2.241, allocations: 160 kB / 0.8966 GB, free: 48.07 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0165/2.258, allocations: 5.78 MB / 0.9023 GB, free: 42.27 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005756/2.264, allocations: 1.754 MB / 0.904 GB, free: 40.51 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03516/2.299, allocations: 30.66 MB / 0.9339 GB, free: 9.445 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00822/2.307, allocations: 0.5276 MB / 0.9344 GB, free: 8.918 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001625/2.309, allocations: 476 kB / 0.9349 GB, free: 8.453 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.005999/2.315, allocations: 3.466 MB / 0.9383 GB, free: 4.977 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001349/2.316, allocations: 0.6533 MB / 0.9389 GB, free: 4.316 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2259/2.542, allocations: 11.44 MB / 0.9501 GB, free: 189.3 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.684e-05/2.542, allocations: 36.75 kB / 0.9501 GB, free: 189.3 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-05/2.542, allocations: 20.03 kB / 0.9501 GB, free: 189.3 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.682e-05/2.542, allocations: 16.8 kB / 0.9501 GB, free: 189.3 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04808/2.59, allocations: 24.91 MB / 0.9745 GB, free: 180.3 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.878e-05/2.59, allocations: 10.81 kB / 0.9745 GB, free: 180.3 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001942/2.592, allocations: 420.9 kB / 0.9749 GB, free: 180.2 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01517/2.607, allocations: 5.405 MB / 0.9802 GB, free: 177.4 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007258/2.608, allocations: 66.08 kB / 0.9802 GB, free: 177.4 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03273/2.641, allocations: 29.39 MB / 1.009 GB, free: 151.2 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/2.641, allocations: 11.94 kB / 1.009 GB, free: 151.2 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02704/2.668, allocations: 17.6 MB / 1.026 GB, free: 133.7 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002837/2.671, allocations: 0.7251 MB / 1.027 GB, free: 133.2 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00209/2.673, allocations: 67.86 kB / 1.027 GB, free: 133.2 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004229/2.677, allocations: 268.5 kB / 1.027 GB, free: 132.9 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001183/2.679, allocations: 244.6 kB / 1.027 GB, free: 132.7 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003182/2.679, allocations: 96.69 kB / 1.027 GB, free: 132.6 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.007911/2.687, allocations: 5.159 MB / 1.033 GB, free: 127.4 MB / 0.4982 GB Notification: Performance of sort global known variables: time 6.11e-07/2.687, allocations: 0 / 1.033 GB, free: 127.4 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.00914/2.696, allocations: 2.005 MB / 1.034 GB, free: 125.5 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.02661/2.723, allocations: 19.34 MB / 1.053 GB, free: 105.9 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.01524/2.738, allocations: 10.41 MB / 1.064 GB, free: 95.5 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.323e-05/2.738, allocations: 0 / 1.064 GB, free: 95.5 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.007559/2.745, allocations: 4.687 MB / 1.068 GB, free: 90.78 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006629/2.752, allocations: 0.9705 MB / 1.069 GB, free: 89.83 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.379/3.131, allocations: 190.4 MB / 1.255 GB, free: 101.8 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006792/3.138, allocations: 5.693 MB / 1.261 GB, free: 99.55 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.007149/3.145, allocations: 2.636 MB / 1.263 GB, free: 97.45 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004666/3.15, allocations: 3.756 MB / 1.267 GB, free: 93.69 MB / 0.4982 GB Notification: Performance of SimCode: time 1.192e-06/3.15, allocations: 0 / 1.267 GB, free: 93.69 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.44/3.59, allocations: 163.6 MB / 1.427 GB, free: 134.1 MB / 0.4982 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001924/3.59, allocations: 222.3 kB / 1.427 GB, free: 133.8 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.539/10.13, allocations: 0 / 1.427 GB, free: 133.8 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