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.001808/0.001808, allocations: 106.5 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.002047/0.002047, allocations: 213.2 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.438/1.438, allocations: 230.6 MB / 258.3 MB, free: 8.07 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.002112/0.002112, allocations: 68.77 kB / 378.6 MB, free: 3.238 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2587/0.2608, allocations: 53.37 MB / 431.9 MB, free: 6.914 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.02152/0.2824, allocations: 19.47 MB / 451.4 MB, free: 3.363 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01304/0.2954, allocations: 6.037 MB / 457.4 MB, free: 13.31 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003698/0.2991, allocations: 190.9 kB / 457.6 MB, free: 13.12 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01128/0.3104, allocations: 5.93 MB / 463.6 MB, free: 7.172 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008834/0.3192, allocations: 3.408 MB / 467 MB, free: 3.75 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003737/0.3229, allocations: 1.568 MB / 468.5 MB, free: 2.18 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0178/0.3407, allocations: 12.71 MB / 481.3 MB, free: 5.449 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008429/0.3492, allocations: 5.943 MB / 487.2 MB, free: 15.42 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007104/0.3563, allocations: 3.622 MB / 490.8 MB, free: 11.79 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008032/0.3643, allocations: 5.126 MB / 495.9 MB, free: 6.645 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002427/0.3667, allocations: 0.7148 MB / 496.7 MB, free: 5.93 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004158/0.3709, allocations: 1.701 MB / 498.4 MB, free: 4.227 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005554/0.3765, allocations: 4.359 MB / 0.4909 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007548/0.384, allocations: 4.744 MB / 0.4956 GB, free: 11.09 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01757/0.4016, allocations: 14.36 MB / 0.5096 GB, free: 12.68 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.4016, allocations: 0 / 0.5096 GB, free: 12.68 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.4016, allocations: 0 / 0.5096 GB, free: 12.68 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004867/0.4021, allocations: 4 kB / 0.5096 GB, free: 12.67 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.02874/0.4308, allocations: 10.49 MB / 0.5198 GB, free: 2.094 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/0.4309, allocations: 8.031 kB / 0.5198 GB, free: 2.086 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003048/0.4339, allocations: 1.148 MB / 0.521 GB, free: 0.9258 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.6137/1.048, allocations: 24.29 MB / 0.5447 GB, free: 93.99 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01862/1.066, allocations: 9.045 MB / 0.5535 GB, free: 90.27 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003243/1.067, allocations: 429.2 kB / 0.5539 GB, free: 89.9 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002036/1.069, allocations: 0.5777 MB / 0.5545 GB, free: 89.37 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0259/1.094, allocations: 16.17 MB / 0.5703 GB, free: 72.36 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003367/1.095, allocations: 103.2 kB / 0.5704 GB, free: 72.26 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001151/1.096, allocations: 266.2 kB / 0.5706 GB, free: 72.05 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003341/1.099, allocations: 2.765 MB / 0.5733 GB, free: 69.29 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02199/1.121, 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.07292/1.194, allocations: 66.28 MB / 0.6506 GB, free: 4.379 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01941/1.214, allocations: 6.914 MB / 0.6574 GB, free: 13.43 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005798/1.219, allocations: 3.928 MB / 0.6612 GB, free: 9.5 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0201/1.24, allocations: 11.03 MB / 0.672 GB, free: 14.58 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.723e-05/1.24, allocations: 72.5 kB / 0.6721 GB, free: 14.5 MB / 494.1 MB Notification: Performance of pre-optimization done (n=280): time 6.281e-06/1.24, allocations: 0 / 0.6721 GB, free: 14.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=339): time 0.1718/1.411, allocations: 47.59 MB / 0.7185 GB, free: 15.17 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002444/1.412, allocations: 402 kB / 0.7189 GB, free: 14.69 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01338/1.425, allocations: 7.167 MB / 0.7259 GB, free: 7.555 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0009217/1.426, allocations: 77.7 kB / 0.726 GB, free: 7.473 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.005459/1.431, allocations: 5.347 MB / 0.7312 GB, free: 2.082 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002156/1.434, allocations: 1.294 MB / 0.7325 GB, free: 0.7773 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003276/1.437, allocations: 1.655 MB / 0.7341 GB, free: 15.11 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001359/1.437, allocations: 305.1 kB / 0.7344 GB, free: 14.8 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006658/1.444, allocations: 3.963 MB / 0.7382 GB, free: 10.83 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2446/1.688, allocations: 8.588 MB / 0.7466 GB, free: 181.8 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01579/1.704, allocations: 13.48 MB / 0.7598 GB, free: 173.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001209/1.704, allocations: 43.31 kB / 0.7598 GB, free: 173.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.03198/1.736, allocations: 17.14 MB / 0.7766 GB, free: 167.8 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.053e-05/1.736, allocations: 77.41 kB / 0.7766 GB, free: 167.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001834/1.736, allocations: 156.7 kB / 0.7768 GB, free: 167.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01566/1.752, allocations: 5.773 MB / 0.7824 GB, free: 166.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005201/1.757, allocations: 1.754 MB / 0.7841 GB, free: 165.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03429/1.792, allocations: 31.36 MB / 0.8148 GB, free: 134.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007134/1.799, allocations: 0.5234 MB / 0.8153 GB, free: 134.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001331/1.8, allocations: 472.2 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.005016/1.805, allocations: 3.464 MB / 0.8191 GB, free: 130.5 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001271/1.806, allocations: 0.683 MB / 0.8198 GB, free: 130.2 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02038/1.827, allocations: 11.41 MB / 0.8309 GB, free: 118.7 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.723e-05/1.827, allocations: 43.56 kB / 0.831 GB, free: 118.7 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.129e-05/1.827, allocations: 16 kB / 0.831 GB, free: 118.7 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.746e-05/1.827, allocations: 15.94 kB / 0.831 GB, free: 118.7 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04192/1.869, allocations: 24.64 MB / 0.8551 GB, free: 93.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.296e-05/1.869, allocations: 4 kB / 0.8551 GB, free: 93.69 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001917/1.871, allocations: 427.3 kB / 0.8555 GB, free: 93.27 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01426/1.885, allocations: 5.365 MB / 0.8607 GB, free: 87.9 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007817/1.886, allocations: 71.98 kB / 0.8608 GB, free: 87.83 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03367/1.919, allocations: 30.05 MB / 0.8901 GB, free: 57.61 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.215e-06/1.919, allocations: 8 kB / 0.8901 GB, free: 57.6 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02665/1.946, allocations: 16.45 MB / 0.9062 GB, free: 40.96 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002016/1.948, allocations: 0.6448 MB / 0.9068 GB, free: 40.31 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001703/1.95, allocations: 60 kB / 0.9069 GB, free: 40.25 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003638/1.953, allocations: 263.6 kB / 0.9071 GB, free: 40 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009902/1.954, allocations: 256.5 kB / 0.9074 GB, free: 39.75 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003577/1.955, allocations: 91.91 kB / 0.9075 GB, free: 39.66 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006917/1.962, allocations: 4.612 MB / 0.912 GB, free: 35.08 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.91e-07/1.962, allocations: 0 / 0.912 GB, free: 35.08 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00856/1.97, allocations: 1.96 MB / 0.9139 GB, free: 33.13 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.02976/2, allocations: 17.15 MB / 0.9306 GB, free: 15.79 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01632/2.016, allocations: 10.09 MB / 0.9405 GB, free: 5.656 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.123e-05/2.016, allocations: 4 kB / 0.9405 GB, free: 5.652 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007691/2.024, allocations: 4.376 MB / 0.9448 GB, free: 1.227 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008252/2.032, allocations: 1.086 MB / 0.9458 GB, free: 160 kB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3646/2.397, allocations: 91.61 MB / 1.035 GB, free: 130.4 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007307/2.404, allocations: 5.525 MB / 1.041 GB, free: 124.8 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.006115/2.41, allocations: 2.622 MB / 1.043 GB, free: 122.2 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004938/2.415, allocations: 3.738 MB / 1.047 GB, free: 118.5 MB / 0.5607 GB Notification: Performance of SimCode: time 1.823e-06/2.415, allocations: 0 / 1.047 GB, free: 118.5 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4463/2.862, allocations: 162.3 MB / 1.205 GB, free: 156.3 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 40.19/43.05, allocations: 4.641 kB / 1.205 GB, free: 156.3 MB / 0.5607 GB " [Timeout remaining time 617] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 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: 45.71661185985431] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertia.phi', 'inertia.w'] 43.24189756019041 43.258430641 42.852856673 Calling exit ...