Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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 3.2.3+maint.om/package.mo", uses=false) 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 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.Engine1b,fileNamePrefix="Modelica_3_2_3_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_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",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.001075/0.001075, allocations: 97.88 kB / 16.93 MB, free: 5.984 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.001101/0.001101, allocations: 179.3 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.496/1.496, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000563/0.0005634, allocations: 16 kB / 280.9 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0977/0.09828, allocations: 47.58 MB / 328.4 MB, free: 4.004 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.2562/0.3545, allocations: 95.46 MB / 423.9 MB, free: 2.73 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.05992/0.4145, allocations: 21.45 MB / 445.3 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02176/0.4363, allocations: 498.7 kB / 445.8 MB, free: 124 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01842/0.4548, allocations: 4.817 MB / 450.6 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04883/0.5037, allocations: 13.73 MB / 464.4 MB, free: 13.52 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007279/0.511, allocations: 1.475 MB / 465.9 MB, free: 12.04 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.1129/0.6239, allocations: 77.88 MB / 0.531 GB, free: 14.07 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01379/0.6377, allocations: 9.249 MB / 0.54 GB, free: 4.746 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004981/0.6427, allocations: 2.539 MB / 0.5425 GB, free: 2.199 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2256/0.8683, allocations: 3.261 MB / 0.5457 GB, free: 83.37 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002889/0.8712, allocations: 291.8 kB / 0.546 GB, free: 83.37 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00445/0.8757, allocations: 1.109 MB / 0.5471 GB, free: 83.37 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00649/0.8822, allocations: 3.557 MB / 0.5505 GB, free: 83.37 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005007/0.8873, allocations: 1.659 MB / 0.5521 GB, free: 83.34 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01521/0.9025, allocations: 11.67 MB / 0.5635 GB, free: 82.57 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.9026, allocations: 3.656 kB / 0.5635 GB, free: 82.57 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.9026, allocations: 2.156 kB / 0.5635 GB, free: 82.57 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006507/0.9032, allocations: 0 / 0.5635 GB, free: 82.57 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: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.02914/0.9324, allocations: 9.198 MB / 0.5725 GB, free: 77.68 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.9324, allocations: 6.906 kB / 0.5725 GB, free: 77.68 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005003/0.9374, allocations: 1.195 MB / 0.5737 GB, free: 77.35 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2904/1.228, allocations: 29.83 MB / 0.6028 GB, free: 57.16 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0232/1.251, allocations: 9.334 MB / 0.612 GB, free: 50.46 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003845/1.252, allocations: 451.5 kB / 0.6124 GB, free: 50.21 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002847/1.254, allocations: 0.6135 MB / 0.613 GB, free: 49.81 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03674/1.291, allocations: 16.99 MB / 0.6296 GB, free: 36.59 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005114/1.292, allocations: 97.86 kB / 0.6297 GB, free: 36.53 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00153/1.293, allocations: 276.3 kB / 0.6299 GB, free: 36.45 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004793/1.298, allocations: 2.864 MB / 0.6327 GB, free: 34.11 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03077/1.329, allocations: 13.53 MB / 0.6459 GB, free: 24.71 MB / 446.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.09637/1.425, allocations: 68.2 MB / 0.7125 GB, free: 11.21 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01939/1.445, allocations: 7.25 MB / 0.7196 GB, free: 3.828 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2481/1.693, allocations: 12.23 MB / 0.7316 GB, free: 193.1 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.375e-05/1.693, allocations: 66.33 kB / 0.7316 GB, free: 193.1 MB / 494.1 MB Notification: Performance of pre-optimization done (n=293): time 6.612e-06/1.693, allocations: 3.844 kB / 0.7316 GB, free: 193.1 MB / 494.1 MB Notification: Performance of matching and sorting (n=365): time 0.1477/1.841, allocations: 42.04 MB / 0.7727 GB, free: 178 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001227/1.841, allocations: 405.8 kB / 0.7731 GB, free: 177.5 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01257/1.854, allocations: 8.157 MB / 0.781 GB, free: 170.4 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0011/1.855, allocations: 77.7 kB / 0.7811 GB, free: 170.3 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003618/1.858, allocations: 5.384 MB / 0.7864 GB, free: 165 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001977/1.86, allocations: 1.335 MB / 0.7877 GB, free: 163.6 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005853/1.861, allocations: 173.3 kB / 0.7878 GB, free: 163.5 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0003736/1.861, allocations: 0.6697 MB / 0.7885 GB, free: 162.8 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004764/1.866, allocations: 3.659 MB / 0.7921 GB, free: 159.1 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00668/1.873, allocations: 8.436 MB / 0.8003 GB, free: 148.5 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008191/1.881, allocations: 5.43 MB / 0.8056 GB, free: 143.1 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001884/1.881, allocations: 48 kB / 0.8056 GB, free: 143 MB / 494.1 MB Notification: Performance of matching and sorting (n=1124) (initialization): time 0.03103/1.912, allocations: 15.34 MB / 0.8206 GB, free: 127.6 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.394e-05/1.912, allocations: 76.97 kB / 0.8207 GB, free: 127.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000137/1.913, allocations: 164 kB / 0.8209 GB, free: 127.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01084/1.923, allocations: 4.068 MB / 0.8248 GB, free: 123.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006577/1.93, allocations: 1.833 MB / 0.8266 GB, free: 121.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03077/1.961, allocations: 26.46 MB / 0.8525 GB, free: 94.62 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009073/1.97, allocations: 0.4994 MB / 0.8529 GB, free: 94.12 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001598/1.972, allocations: 497.4 kB / 0.8534 GB, free: 93.64 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 756 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (988): * Single equations (assignments): 982 * 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.008335/1.98, allocations: 3.609 MB / 0.8569 GB, free: 90.01 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001933/1.982, allocations: 0.6826 MB / 0.8576 GB, free: 89.32 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01762/2, allocations: 9.407 MB / 0.8668 GB, free: 79.85 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.094e-05/2, allocations: 39.98 kB / 0.8668 GB, free: 79.81 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.277e-05/2, allocations: 20 kB / 0.8669 GB, free: 79.79 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.934e-05/2, allocations: 15.94 kB / 0.8669 GB, free: 79.77 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03901/2.039, allocations: 20.38 MB / 0.8868 GB, free: 59.16 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.582e-05/2.039, allocations: 8 kB / 0.8868 GB, free: 59.15 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002233/2.041, allocations: 451.3 kB / 0.8872 GB, free: 58.71 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01032/2.051, allocations: 3.837 MB / 0.891 GB, free: 54.86 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008029/2.052, allocations: 73.55 kB / 0.891 GB, free: 54.79 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03086/2.083, allocations: 25.75 MB / 0.9162 GB, free: 28.63 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.602e-06/2.083, allocations: 8 kB / 0.9162 GB, free: 28.62 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2652/2.348, allocations: 15.66 MB / 0.9315 GB, free: 172 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005524/2.354, allocations: 1.306 MB / 0.9328 GB, free: 171.9 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002053/2.356, allocations: 71.72 kB / 0.9328 GB, free: 171.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004147/2.36, allocations: 227 kB / 0.933 GB, free: 171.9 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009376/2.361, allocations: 265.1 kB / 0.9333 GB, free: 171.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003158/2.362, allocations: 103.8 kB / 0.9334 GB, free: 171.9 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.01074/2.372, allocations: 5.349 MB / 0.9386 GB, free: 171.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.5e-07/2.372, allocations: 0 / 0.9386 GB, free: 171.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01242/2.385, allocations: 2.045 MB / 0.9406 GB, free: 171.7 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * 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 (241): * Single equations (assignments): 235 * 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 {(9,69.1%) 92,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.02839/2.413, allocations: 17.64 MB / 0.9578 GB, free: 163.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01567/2.429, allocations: 9.635 MB / 0.9672 GB, free: 159.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.357e-05/2.429, allocations: 3.281 kB / 0.9673 GB, free: 159.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007408/2.436, allocations: 4.343 MB / 0.9715 GB, free: 157.6 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007457/2.444, allocations: 1.02 MB / 0.9725 GB, free: 157.2 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4502/2.894, allocations: 194.9 MB / 1.163 GB, free: 128.3 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0138/2.908, allocations: 5.939 MB / 1.169 GB, free: 126.5 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00989/2.918, allocations: 2.788 MB / 1.171 GB, free: 125.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007756/2.926, allocations: 3.954 MB / 1.175 GB, free: 122.1 MB / 494.1 MB Notification: Performance of SimCode: time 1.072e-06/2.926, allocations: 3.375 kB / 1.175 GB, free: 122.1 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4591/3.385, allocations: 166.9 MB / 1.338 GB, free: 120.5 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001504/3.385, allocations: 218.3 kB / 1.338 GB, free: 120.3 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.795/10.18, allocations: 3.938 kB / 1.338 GB, free: 120.3 MB / 494.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat does not exist to compare? outputFormat=mat