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.001677/0.001677, allocations: 122.5 kB / 18.51 MB, free: 4.52 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.001953/0.001953, allocations: 215.2 kB / 21.46 MB, free: 1.566 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.467/1.467, allocations: 230.5 MB / 254.8 MB, free: 14.9 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.001962/0.001962, allocations: 75.77 kB / 373.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09822/0.1002, allocations: 53.33 MB / 427 MB, free: 4.715 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.2146/0.3148, allocations: 20.52 MB / 447.6 MB, free: 15.06 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01487/0.3297, allocations: 6.209 MB / 453.8 MB, free: 10.99 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00459/0.3343, allocations: 203.9 kB / 454 MB, free: 10.92 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01307/0.3473, allocations: 6.407 MB / 460.4 MB, free: 8 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01036/0.3577, allocations: 3.496 MB / 463.9 MB, free: 5.684 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004397/0.3621, allocations: 1.663 MB / 465.5 MB, free: 4.559 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01867/0.3808, allocations: 12.96 MB / 478.5 MB, free: 13.26 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009557/0.3903, allocations: 6.768 MB / 485.3 MB, free: 6.41 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007814/0.3981, allocations: 3.801 MB / 489.1 MB, free: 2.594 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009003/0.4071, allocations: 5.352 MB / 494.4 MB, free: 13.23 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002816/0.41, allocations: 0.7461 MB / 495.2 MB, free: 12.48 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004996/0.415, allocations: 1.74 MB / 496.9 MB, free: 10.74 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00632/0.4213, allocations: 4.543 MB / 0.4897 GB, free: 6.184 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00942/0.4307, allocations: 4.931 MB / 0.4945 GB, free: 1.227 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02143/0.4521, allocations: 14.87 MB / 0.509 GB, free: 2.305 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.328e-06/0.4521, allocations: 0 / 0.509 GB, free: 2.305 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.4521, allocations: 0 / 0.509 GB, free: 2.305 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005205/0.4527, allocations: 0 / 0.509 GB, free: 2.305 MB / 414.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.03202/0.4847, allocations: 10.93 MB / 0.5197 GB, free: 7.262 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.4847, allocations: 11.97 kB / 0.5197 GB, free: 7.25 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003718/0.4884, allocations: 1.198 MB / 0.5209 GB, free: 6.043 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.31/0.7984, allocations: 24.34 MB / 0.5447 GB, free: 13.67 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02261/0.821, allocations: 9.346 MB / 0.5538 GB, free: 4.234 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004619/0.8215, allocations: 447.9 kB / 0.5542 GB, free: 3.797 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002346/0.8238, allocations: 0.6245 MB / 0.5548 GB, free: 3.172 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03547/0.8593, allocations: 16.74 MB / 0.5712 GB, free: 1.375 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004792/0.8598, allocations: 95.3 kB / 0.5713 GB, free: 1.281 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002198/0.862, allocations: 279.8 kB / 0.5715 GB, free: 1.008 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005416/0.8674, allocations: 2.855 MB / 0.5743 GB, free: 14.15 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03/0.8974, allocations: 13.27 MB / 0.5873 GB, free: 0.8711 MB / 494.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.4673/1.365, allocations: 68.11 MB / 0.6538 GB, free: 117.7 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02127/1.386, allocations: 7.633 MB / 0.6612 GB, free: 116.1 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005191/1.391, allocations: 4.041 MB / 0.6652 GB, free: 114.4 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01778/1.409, allocations: 12.06 MB / 0.677 GB, free: 108.8 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.011e-05/1.409, allocations: 67.59 kB / 0.677 GB, free: 108.8 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=293): time 5.641e-06/1.409, allocations: 3.906 kB / 0.677 GB, free: 108.8 MB / 0.5138 GB Notification: Performance of matching and sorting (n=359): time 0.1778/1.587, allocations: 50.18 MB / 0.726 GB, free: 70.23 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/1.587, allocations: 405.8 kB / 0.7264 GB, free: 69.75 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0097/1.597, allocations: 7.316 MB / 0.7336 GB, free: 62.57 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.000821/1.597, allocations: 81.7 kB / 0.7337 GB, free: 62.48 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002831/1.6, allocations: 5.531 MB / 0.7391 GB, free: 57.54 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001501/1.602, allocations: 1.367 MB / 0.7404 GB, free: 56.19 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002415/1.604, allocations: 1.707 MB / 0.7421 GB, free: 54.47 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 3.767e-05/1.604, allocations: 301.1 kB / 0.7423 GB, free: 54.18 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004725/1.609, allocations: 4.124 MB / 0.7464 GB, free: 50.04 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006747/1.616, allocations: 8.863 MB / 0.755 GB, free: 38.89 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01274/1.628, allocations: 13.95 MB / 0.7687 GB, free: 22.62 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001121/1.629, allocations: 48 kB / 0.7687 GB, free: 22.57 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1106) (initialization): time 0.03342/1.662, allocations: 17.83 MB / 0.7861 GB, free: 4.688 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001675/1.662, allocations: 76 kB / 0.7862 GB, free: 4.613 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002119/1.662, allocations: 160 kB / 0.7863 GB, free: 4.457 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01899/1.681, allocations: 6.045 MB / 0.7922 GB, free: 14.39 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006788/1.688, allocations: 1.829 MB / 0.794 GB, free: 12.56 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0525/1.741, allocations: 32.9 MB / 0.8262 GB, free: 11.25 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007842/1.748, allocations: 0.5501 MB / 0.8267 GB, free: 10.7 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00164/1.75, allocations: 484 kB / 0.8272 GB, free: 10.23 MB / 0.5607 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.007356/1.757, allocations: 3.574 MB / 0.8306 GB, free: 6.641 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001756/1.759, allocations: 0.7063 MB / 0.8313 GB, free: 5.93 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2346/1.994, allocations: 12 MB / 0.8431 GB, free: 187.8 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.4e-05/1.994, allocations: 39.72 kB / 0.8431 GB, free: 187.8 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.037e-05/1.994, allocations: 18.81 kB / 0.8431 GB, free: 187.8 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.839e-05/1.994, allocations: 19.61 kB / 0.8431 GB, free: 187.8 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04695/2.041, allocations: 25.78 MB / 0.8683 GB, free: 179 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-05/2.041, allocations: 9.25 kB / 0.8683 GB, free: 179 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002276/2.043, allocations: 469.5 kB / 0.8688 GB, free: 178.9 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01674/2.06, allocations: 5.698 MB / 0.8743 GB, free: 177.5 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007521/2.061, allocations: 61 kB / 0.8744 GB, free: 177.5 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03518/2.096, allocations: 31.71 MB / 0.9054 GB, free: 154.4 MB / 0.5607 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.6e-06/2.096, allocations: 11.94 kB / 0.9054 GB, free: 154.4 MB / 0.5607 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02869/2.125, allocations: 17.36 MB / 0.9223 GB, free: 137.3 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001829/2.126, allocations: 0.7348 MB / 0.923 GB, free: 136.9 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001519/2.128, allocations: 67.94 kB / 0.9231 GB, free: 136.9 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003874/2.132, allocations: 281.1 kB / 0.9234 GB, free: 136.6 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001038/2.133, allocations: 250.7 kB / 0.9236 GB, free: 136.4 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003032/2.133, allocations: 94.64 kB / 0.9237 GB, free: 136.3 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.006561/2.14, allocations: 4.711 MB / 0.9283 GB, free: 131.6 MB / 0.5607 GB Notification: Performance of sort global known variables: time 4.11e-07/2.14, allocations: 0 / 0.9283 GB, free: 131.6 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.008539/2.148, allocations: 2.034 MB / 0.9303 GB, free: 129.6 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.02927/2.178, allocations: 18.07 MB / 0.9479 GB, free: 111.5 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01663/2.194, allocations: 10.51 MB / 0.9582 GB, free: 101 MB / 0.5607 GB Notification: Performance of simCode: created event and clocks part: time 1.091e-05/2.194, allocations: 0 / 0.9582 GB, free: 101 MB / 0.5607 GB Notification: Performance of simCode: created simulation system equations: time 0.008003/2.202, allocations: 4.602 MB / 0.9627 GB, free: 96.38 MB / 0.5607 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007831/2.21, allocations: 1.101 MB / 0.9638 GB, free: 95.34 MB / 0.5607 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3675/2.577, allocations: 94.95 MB / 1.056 GB, free: 174.8 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01015/2.588, allocations: 5.73 MB / 1.062 GB, free: 173.9 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.007694/2.595, allocations: 2.716 MB / 1.065 GB, free: 173.9 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005786/2.601, allocations: 3.88 MB / 1.069 GB, free: 172.5 MB / 0.5607 GB Notification: Performance of SimCode: time 1.203e-06/2.601, allocations: 0 / 1.069 GB, free: 172.5 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2158/2.817, allocations: 165.5 MB / 1.23 GB, free: 27.57 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 42.67/45.49, allocations: 7.812 kB / 1.23 GB, free: 27.56 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.10377080459148] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertia.phi', 'inertia.w'] 45.68704643892124 45.705472109 45.249393413 Calling exit ...