Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001878/0.001878, allocations: 118.2 kB / 18.45 MB, free: 4.715 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002299/0.0023, allocations: 211.3 kB / 21.4 MB, free: 1.766 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.499/1.499, allocations: 227.7 MB / 251.9 MB, free: 15.87 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001961/0.001961, allocations: 63.84 kB / 365.3 MB, free: 172 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0987/0.1007, allocations: 50.55 MB / 415.8 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.02286/0.1236, allocations: 20.44 MB / 436.2 MB, free: 9.051 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0142/0.1378, allocations: 6.193 MB / 442.4 MB, free: 2.84 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004251/0.1421, allocations: 167.4 kB / 442.6 MB, free: 2.676 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2117/0.3539, allocations: 6.322 MB / 448.9 MB, free: 5.867 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009726/0.3637, allocations: 3.393 MB / 452.3 MB, free: 5.727 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004059/0.3678, allocations: 1.656 MB / 454 MB, free: 5.691 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01912/0.3869, allocations: 12.94 MB / 466.9 MB, free: 5.523 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01122/0.3982, allocations: 8.058 MB / 475 MB, free: 3.09 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007213/0.4054, allocations: 3.744 MB / 478.7 MB, free: 1.215 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00749/0.413, allocations: 4.947 MB / 483.7 MB, free: 14.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002633/0.4156, allocations: 0.742 MB / 484.4 MB, free: 14.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005145/0.4208, allocations: 1.697 MB / 486.1 MB, free: 13.53 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006455/0.4273, allocations: 4.32 MB / 490.4 MB, free: 9.219 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00978/0.4371, allocations: 4.933 MB / 495.3 MB, free: 4.285 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02099/0.4581, allocations: 14.85 MB / 0.4982 GB, free: 5.734 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.051e-05/0.4582, allocations: 0 / 0.4982 GB, free: 5.734 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4582, allocations: 3.938 kB / 0.4982 GB, free: 5.73 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004731/0.4587, allocations: 4 kB / 0.4983 GB, free: 5.727 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2488 * Number of variables: 2488 Notification: Performance of Generate backend data structure: time 0.03246/0.4911, allocations: 10.94 MB / 0.5089 GB, free: 10.84 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.369e-05/0.4912, allocations: 8.031 kB / 0.5089 GB, free: 10.83 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003572/0.4948, allocations: 1.191 MB / 0.5101 GB, free: 9.676 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.316/0.8108, allocations: 24.34 MB / 0.5339 GB, free: 1.309 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02226/0.8331, allocations: 9.359 MB / 0.543 GB, free: 7.977 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004945/0.8336, allocations: 448.2 kB / 0.5434 GB, free: 7.59 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002241/0.8359, allocations: 0.6182 MB / 0.544 GB, free: 7.02 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03579/0.8717, allocations: 16.75 MB / 0.5604 GB, free: 5.371 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004774/0.8722, allocations: 99.3 kB / 0.5605 GB, free: 5.273 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001909/0.8741, allocations: 280 kB / 0.5608 GB, free: 5.051 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005138/0.8793, allocations: 2.858 MB / 0.5636 GB, free: 2.199 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03043/0.9097, allocations: 13.27 MB / 0.5765 GB, free: 4.926 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.4678/1.378, allocations: 68.11 MB / 0.643 GB, free: 120.6 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02114/1.399, allocations: 7.881 MB / 0.6507 GB, free: 119.9 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006149/1.405, allocations: 4.321 MB / 0.6549 GB, free: 119.8 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01769/1.423, allocations: 12.07 MB / 0.6667 GB, free: 115.5 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.799e-05/1.423, allocations: 65.62 kB / 0.6668 GB, free: 115.5 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=293): time 7.724e-06/1.423, allocations: 1.5 kB / 0.6668 GB, free: 115.5 MB / 0.5138 GB Notification: Performance of matching and sorting (n=359): time 0.1728/1.596, allocations: 50.26 MB / 0.7159 GB, free: 83.24 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.984e-05/1.596, allocations: 394.2 kB / 0.7162 GB, free: 82.77 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009271/1.605, allocations: 7.316 MB / 0.7234 GB, free: 75.59 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0007924/1.606, allocations: 85.7 kB / 0.7235 GB, free: 75.5 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002854/1.609, allocations: 5.53 MB / 0.7289 GB, free: 70.55 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001432/1.61, allocations: 1.363 MB / 0.7302 GB, free: 69.21 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002298/1.612, allocations: 1.707 MB / 0.7319 GB, free: 67.49 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.032e-05/1.613, allocations: 305.1 kB / 0.7322 GB, free: 67.19 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004844/1.617, allocations: 4.127 MB / 0.7362 GB, free: 63.05 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006633/1.624, allocations: 8.859 MB / 0.7448 GB, free: 51.95 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01279/1.637, allocations: 13.96 MB / 0.7585 GB, free: 35.9 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001068/1.637, allocations: 48 kB / 0.7585 GB, free: 35.85 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1106) (initialization): time 0.03413/1.671, allocations: 17.9 MB / 0.776 GB, free: 17.89 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001048/1.671, allocations: 76 kB / 0.7761 GB, free: 17.82 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001902/1.671, allocations: 160 kB / 0.7762 GB, free: 17.66 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01756/1.689, allocations: 6.045 MB / 0.7821 GB, free: 11.61 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005741/1.695, allocations: 1.829 MB / 0.7839 GB, free: 9.773 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04815/1.743, allocations: 32.9 MB / 0.816 GB, free: 8.465 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007882/1.751, allocations: 0.5537 MB / 0.8166 GB, free: 7.914 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001709/1.753, allocations: 484 kB / 0.817 GB, free: 7.441 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 743 * 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],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 (967): * Single equations (assignments): 961 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(7,97,55.1%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.007317/1.76, allocations: 3.58 MB / 0.8205 GB, free: 3.852 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001682/1.762, allocations: 0.7124 MB / 0.8212 GB, free: 3.137 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02836/1.79, allocations: 12.08 MB / 0.833 GB, free: 6.992 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.555e-05/1.79, allocations: 43.94 kB / 0.8331 GB, free: 6.949 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.649e-05/1.79, allocations: 20 kB / 0.8331 GB, free: 6.93 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.355e-05/1.79, allocations: 15.94 kB / 0.8331 GB, free: 6.914 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2506/2.041, allocations: 25.86 MB / 0.8584 GB, free: 186.4 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.399e-05/2.041, allocations: 10.55 kB / 0.8584 GB, free: 186.4 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002425/2.044, allocations: 457.9 kB / 0.8588 GB, free: 186.4 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01776/2.061, allocations: 5.706 MB / 0.8644 GB, free: 185.4 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007065/2.062, allocations: 64.12 kB / 0.8644 GB, free: 185.3 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03567/2.098, allocations: 31.7 MB / 0.8954 GB, free: 170.6 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.025e-06/2.098, allocations: 14.75 kB / 0.8954 GB, free: 170.6 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0287/2.126, allocations: 17.43 MB / 0.9124 GB, free: 157.7 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001867/2.128, allocations: 0.7367 MB / 0.9131 GB, free: 157.3 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001617/2.13, allocations: 64 kB / 0.9132 GB, free: 157.2 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004075/2.134, allocations: 276.6 kB / 0.9135 GB, free: 157 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001084/2.135, allocations: 250.8 kB / 0.9137 GB, free: 156.7 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003043/2.136, allocations: 100.6 kB / 0.9138 GB, free: 156.6 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.00783/2.143, allocations: 4.706 MB / 0.9184 GB, free: 152 MB / 0.5607 GB Notification: Performance of sort global known variables: time 8.12e-07/2.143, allocations: 3.906 kB / 0.9184 GB, free: 152 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.01056/2.154, allocations: 2.033 MB / 0.9204 GB, free: 149.9 MB / 0.5607 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (231): * Single equations (assignments): 225 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(7,90,55.1%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02863/2.183, allocations: 18.15 MB / 0.9381 GB, free: 132 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01611/2.199, allocations: 10.95 MB / 0.9488 GB, free: 121.1 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.672e-05/2.199, allocations: 4 kB / 0.9488 GB, free: 121.1 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.008591/2.207, allocations: 4.965 MB / 0.9537 GB, free: 116.1 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008426/2.216, allocations: 1.104 MB / 0.9547 GB, free: 115 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3501/2.566, allocations: 95.08 MB / 1.048 GB, free: 186.5 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009837/2.576, allocations: 5.727 MB / 1.053 GB, free: 185.6 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.007799/2.584, allocations: 2.716 MB / 1.056 GB, free: 185.5 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005585/2.589, allocations: 3.875 MB / 1.06 GB, free: 185.5 MB / 0.5607 GB Notification: Performance of SimCode: time 7.41e-07/2.589, allocations: 2.031 kB / 1.06 GB, free: 185.5 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2503/2.84, allocations: 164.4 MB / 1.22 GB, free: 50.91 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 43.28/46.12, allocations: 8.047 kB / 1.22 GB, free: 50.9 MB / 0.5607 GB " [Timeout remaining time 614] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 9.94431e-05 Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 48.78773274202831] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertia.phi', 'inertia.w'] 46.31226074695587 46.328453895 45.867329711 Calling exit ...