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.Engine1a.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.001357/0.001357, allocations: 105.1 kB / 21.23 MB, free: 0.6562 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.001517/0.001517, allocations: 213.9 kB / 24.54 MB, free: 4.016 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.473/1.473, allocations: 230.6 MB / 258.3 MB, free: 8.039 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.Engine1a,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",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.001931/0.001931, allocations: 60.78 kB / 378.6 MB, free: 3.121 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2766/0.2786, allocations: 53.38 MB / 431.9 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.02121/0.2998, allocations: 19.47 MB / 451.4 MB, free: 3.324 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01341/0.3132, allocations: 6.042 MB / 457.5 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004135/0.3173, allocations: 190.9 kB / 457.6 MB, free: 13.08 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01165/0.329, allocations: 5.93 MB / 463.6 MB, free: 7.133 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009074/0.3381, allocations: 3.405 MB / 467 MB, free: 3.715 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00421/0.3423, allocations: 1.576 MB / 468.5 MB, free: 2.137 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01865/0.3609, allocations: 12.7 MB / 481.3 MB, free: 5.41 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009563/0.3705, allocations: 5.944 MB / 487.2 MB, free: 15.38 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007682/0.3782, allocations: 3.622 MB / 490.8 MB, free: 11.75 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01051/0.3887, allocations: 5.122 MB / 495.9 MB, free: 6.609 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00262/0.3913, allocations: 0.7148 MB / 496.7 MB, free: 5.895 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004325/0.3956, allocations: 1.705 MB / 498.4 MB, free: 4.188 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00568/0.4013, allocations: 4.355 MB / 0.4909 GB, free: 15.82 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008847/0.4101, allocations: 4.748 MB / 0.4956 GB, free: 11.05 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01914/0.4293, allocations: 14.35 MB / 0.5096 GB, free: 12.64 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.734e-06/0.4293, allocations: 0 / 0.5096 GB, free: 12.64 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.4293, allocations: 0 / 0.5096 GB, free: 12.64 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004981/0.4298, allocations: 4 kB / 0.5096 GB, free: 12.64 MB / 430.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.03007/0.4599, allocations: 10.49 MB / 0.5198 GB, free: 2.055 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.903e-05/0.4599, allocations: 8.031 kB / 0.5198 GB, free: 2.047 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003217/0.4631, allocations: 1.14 MB / 0.521 GB, free: 0.8945 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.6263/1.089, allocations: 24.3 MB / 0.5447 GB, free: 94 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01737/1.107, allocations: 9.048 MB / 0.5535 GB, free: 90.25 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002422/1.107, allocations: 426.4 kB / 0.5539 GB, free: 89.89 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001513/1.109, allocations: 0.5841 MB / 0.5545 GB, free: 89.36 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02429/1.133, allocations: 16.17 MB / 0.5703 GB, free: 72.36 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003032/1.133, allocations: 111.2 kB / 0.5704 GB, free: 72.25 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001016/1.134, allocations: 265.6 kB / 0.5706 GB, free: 72.04 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003347/1.137, allocations: 2.76 MB / 0.5733 GB, free: 69.27 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02257/1.16, allocations: 12.86 MB / 0.5859 GB, free: 56.41 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.07077/1.231, allocations: 66.29 MB / 0.6506 GB, free: 4.363 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01983/1.251, allocations: 6.917 MB / 0.6574 GB, free: 13.41 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005854/1.257, allocations: 3.928 MB / 0.6612 GB, free: 9.48 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02025/1.277, allocations: 11.02 MB / 0.672 GB, free: 14.57 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.179e-05/1.277, allocations: 76.25 kB / 0.6721 GB, free: 14.49 MB / 494.1 MB Notification: Performance of pre-optimization done (n=280): time 5.621e-06/1.277, allocations: 0 / 0.6721 GB, free: 14.49 MB / 494.1 MB Notification: Performance of matching and sorting (n=339): time 0.1828/1.46, allocations: 47.59 MB / 0.7185 GB, free: 15.16 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002477/1.46, allocations: 398 kB / 0.7189 GB, free: 14.68 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01476/1.475, allocations: 7.167 MB / 0.7259 GB, free: 7.543 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007963/1.475, allocations: 77.7 kB / 0.726 GB, free: 7.461 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.005439/1.481, allocations: 5.347 MB / 0.7312 GB, free: 2.07 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002133/1.483, allocations: 1.298 MB / 0.7325 GB, free: 0.7617 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003892/1.487, allocations: 1.659 MB / 0.7341 GB, free: 15.09 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001273/1.487, allocations: 301.1 kB / 0.7344 GB, free: 14.79 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006766/1.494, allocations: 3.963 MB / 0.7383 GB, free: 10.82 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2479/1.742, allocations: 8.581 MB / 0.7466 GB, free: 181.8 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01479/1.756, allocations: 13.48 MB / 0.7598 GB, free: 173.4 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001006/1.757, allocations: 47.16 kB / 0.7598 GB, free: 173.4 MB / 0.545 GB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.0342/1.791, allocations: 17.13 MB / 0.7766 GB, free: 167.8 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.854e-05/1.791, allocations: 77.41 kB / 0.7767 GB, free: 167.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001733/1.791, allocations: 159.4 kB / 0.7768 GB, free: 167.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01598/1.807, allocations: 5.769 MB / 0.7824 GB, free: 166.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005455/1.812, allocations: 1.751 MB / 0.7842 GB, free: 165.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03595/1.848, allocations: 31.36 MB / 0.8148 GB, free: 134.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007456/1.856, allocations: 0.5246 MB / 0.8153 GB, free: 134.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001363/1.857, allocations: 476 kB / 0.8157 GB, free: 133.9 MB / 0.545 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 (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 {(8,93,51.6%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.005625/1.863, allocations: 3.464 MB / 0.8191 GB, free: 130.5 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001427/1.864, allocations: 0.6869 MB / 0.8198 GB, free: 130.2 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02132/1.886, allocations: 11.41 MB / 0.8309 GB, free: 118.8 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.204e-05/1.886, allocations: 32 kB / 0.831 GB, free: 118.7 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.222e-05/1.886, allocations: 24 kB / 0.831 GB, free: 118.7 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.223e-05/1.886, allocations: 11.95 kB / 0.831 GB, free: 118.7 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04129/1.927, allocations: 24.64 MB / 0.8551 GB, free: 93.71 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-05/1.927, allocations: 8 kB / 0.8551 GB, free: 93.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001885/1.929, allocations: 419.4 kB / 0.8555 GB, free: 93.29 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01474/1.944, allocations: 5.375 MB / 0.8607 GB, free: 87.91 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008477/1.945, allocations: 64 kB / 0.8608 GB, free: 87.84 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03408/1.979, allocations: 30.04 MB / 0.8901 GB, free: 57.62 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/1.979, allocations: 8 kB / 0.8901 GB, free: 57.62 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0267/2.005, allocations: 16.46 MB / 0.9062 GB, free: 40.96 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001817/2.007, allocations: 0.6453 MB / 0.9068 GB, free: 40.32 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001474/2.009, allocations: 67.98 kB / 0.9069 GB, free: 40.26 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003359/2.012, allocations: 255.6 kB / 0.9071 GB, free: 40.01 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009124/2.013, allocations: 258.5 kB / 0.9074 GB, free: 39.75 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002959/2.013, allocations: 95.42 kB / 0.9075 GB, free: 39.66 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006347/2.02, allocations: 4.612 MB / 0.912 GB, free: 35.09 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.01e-07/2.02, allocations: 0 / 0.912 GB, free: 35.09 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008125/2.028, allocations: 1.951 MB / 0.9139 GB, free: 33.14 MB / 0.545 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 (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,87,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.02717/2.055, allocations: 17.15 MB / 0.9306 GB, free: 15.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01506/2.07, allocations: 10.09 MB / 0.9405 GB, free: 5.664 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.085e-05/2.07, allocations: 4 kB / 0.9405 GB, free: 5.66 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007067/2.077, allocations: 4.373 MB / 0.9448 GB, free: 1.238 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006372/2.083, allocations: 1.08 MB / 0.9458 GB, free: 168 kB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3574/2.441, allocations: 91.61 MB / 1.035 GB, free: 130.5 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006342/2.447, allocations: 5.528 MB / 1.041 GB, free: 124.9 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005391/2.452, allocations: 2.624 MB / 1.043 GB, free: 122.3 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004421/2.457, allocations: 3.744 MB / 1.047 GB, free: 118.6 MB / 0.5607 GB Notification: Performance of SimCode: time 1.212e-06/2.457, allocations: 0 / 1.047 GB, free: 118.6 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4503/2.907, allocations: 162.3 MB / 1.205 GB, free: 156.3 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 41.39/44.3, allocations: 4.766 kB / 1.205 GB, free: 156.2 MB / 0.5607 GB " [Timeout remaining time 616] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 46.92621852969751] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertia.phi', 'inertia.w'] 44.500882734078914 44.516785758 44.083783305 Calling exit ...