Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.001785/0.001785, 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.002114/0.002114, 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.461/1.461, allocations: 230.5 MB / 254.8 MB, free: 15.08 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.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",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.001982/0.001982, allocations: 67.83 kB / 373.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1066, allocations: 53.33 MB / 427 MB, free: 4.867 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004599/0.1112, allocations: 2.879 MB / 429.9 MB, free: 1.973 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00239/0.1136, allocations: 1.279 MB / 431.2 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001816/0.1137, allocations: 7.938 kB / 431.2 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003421/0.1141, allocations: 87.28 kB / 431.2 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005679/0.1147, allocations: 219.6 kB / 431.5 MB, free: 384 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005278/0.1152, allocations: 247.5 kB / 431.7 MB, free: 136 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2129/0.3281, allocations: 0.7098 MB / 432.4 MB, free: 7.633 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00027/0.3283, allocations: 86.5 kB / 432.5 MB, free: 7.617 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005471/0.3289, allocations: 330.6 kB / 432.8 MB, free: 7.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004358/0.3293, allocations: 392 kB / 433.2 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.306e-05/0.3294, allocations: 58.28 kB / 433.3 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003307/0.3297, allocations: 151.1 kB / 433.4 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001513/0.3299, allocations: 158.2 kB / 433.6 MB, free: 7.527 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001805/0.3301, allocations: 272.9 kB / 433.8 MB, free: 7.457 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007503/0.3308, allocations: 0.7225 MB / 434.6 MB, free: 7.363 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.3308, allocations: 3.656 kB / 434.6 MB, free: 7.363 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3308, allocations: 0 / 434.6 MB, free: 7.363 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.059e-05/0.3308, allocations: 0 / 434.6 MB, free: 7.363 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001601/0.3324, allocations: 0.8597 MB / 435.4 MB, free: 6.832 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.3325, allocations: 10.78 kB / 435.4 MB, free: 6.832 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001036/0.3326, allocations: 79.23 kB / 435.5 MB, free: 6.793 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004317/0.333, allocations: 73.98 kB / 435.6 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005807/0.3336, allocations: 367.7 kB / 435.9 MB, free: 6.531 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001287/0.3337, allocations: 102.1 kB / 436 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.082e-05/0.3338, allocations: 45.86 kB / 436.1 MB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001113/0.3349, allocations: 0.558 MB / 436.6 MB, free: 6.402 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.356e-05/0.335, allocations: 6.828 kB / 436.6 MB, free: 6.402 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.795e-05/0.335, allocations: 19.38 kB / 436.7 MB, free: 6.402 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.213e-05/0.335, allocations: 14.06 kB / 436.7 MB, free: 6.402 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001423/0.3365, allocations: 0.6108 MB / 437.3 MB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002539/0.339, allocations: 1.301 MB / 438.6 MB, free: 5.934 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001169/0.3402, allocations: 0.4916 MB / 439.1 MB, free: 5.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006254/0.3408, allocations: 276 kB / 439.3 MB, free: 5.645 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.349e-05/0.3408, allocations: 11.09 kB / 439.4 MB, free: 5.641 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.498e-05/0.3409, allocations: 43.47 kB / 439.4 MB, free: 5.598 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 1.894e-06/0.3409, allocations: 0 / 439.4 MB, free: 5.598 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.00681/0.3477, allocations: 2.742 MB / 442.1 MB, free: 4.184 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.541e-05/0.3477, allocations: 88.77 kB / 442.2 MB, free: 4.082 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004559/0.3482, allocations: 348.7 kB / 442.6 MB, free: 3.906 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.626e-05/0.3482, allocations: 44.3 kB / 442.6 MB, free: 3.863 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.96e-05/0.3483, allocations: 169.7 kB / 442.8 MB, free: 3.715 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001566/0.3485, allocations: 238.9 kB / 443 MB, free: 3.535 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002204/0.3487, allocations: 128.2 kB / 443.1 MB, free: 3.473 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.938e-05/0.3488, allocations: 348.6 kB / 443.5 MB, free: 3.145 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005877/0.3494, allocations: 266.8 kB / 443.7 MB, free: 3.047 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006416/0.35, allocations: 335.6 kB / 444.1 MB, free: 2.902 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001026/0.351, allocations: 490.5 kB / 444.5 MB, free: 2.691 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.351, allocations: 1.25 kB / 444.5 MB, free: 2.691 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.00183/0.3529, allocations: 0.8201 MB / 445.4 MB, free: 2.355 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.3529, allocations: 5.781 kB / 445.4 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.3529, allocations: 2.625 kB / 445.4 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001118/0.354, allocations: 448.8 kB / 445.8 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003872/0.3544, allocations: 84.73 kB / 445.9 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001127/0.3555, allocations: 1.021 MB / 446.9 MB, free: 1.484 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005397/0.3561, allocations: 63.7 kB / 447 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.785e-05/0.3561, allocations: 31.19 kB / 447 MB, free: 1.461 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,33)} Notification: Performance of prepare postOptimizeDAE: time 0.0002607/0.3564, allocations: 179.9 kB / 447.2 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001564/0.3566, allocations: 45.12 kB / 447.2 MB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001584/0.3567, allocations: 72.02 kB / 447.3 MB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.3567, allocations: 7.75 kB / 447.3 MB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.388e-06/0.3567, allocations: 0 / 447.3 MB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.3567, allocations: 5.438 kB / 447.3 MB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003115/0.3599, allocations: 1.694 MB / 449 MB, free: 388 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.3599, allocations: 0.75 kB / 449 MB, free: 388 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003796/0.3602, allocations: 81.34 kB / 449.1 MB, free: 388 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009787/0.3612, allocations: 420.2 kB / 449.5 MB, free: 276 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.021e-05/0.3613, allocations: 26.56 kB / 449.5 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001242/0.3625, allocations: 0.9777 MB / 450.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3625, allocations: 0 / 450.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002713/0.3652, allocations: 1.214 MB / 451.7 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003028/0.3655, allocations: 190.9 kB / 451.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001018/0.3656, allocations: 21.56 kB / 451.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004665/0.3661, allocations: 50.3 kB / 452 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002387/0.3663, allocations: 88.06 kB / 452.1 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.039e-05/0.3664, allocations: 29.78 kB / 452.1 MB, free: 14.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003721/0.3668, allocations: 255.5 kB / 452.3 MB, free: 14.65 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3668, allocations: 1.062 kB / 452.3 MB, free: 14.65 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005909/0.3674, allocations: 143.8 kB / 452.5 MB, free: 14.62 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,30)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00417/0.3715, allocations: 2.037 MB / 454.5 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001694/0.3732, allocations: 0.6358 MB / 455.2 MB, free: 13.24 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.3732, allocations: 0 / 455.2 MB, free: 13.24 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009036/0.3741, allocations: 341 kB / 455.5 MB, free: 13.14 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005698/0.3747, allocations: 70.92 kB / 455.6 MB, free: 13.11 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009163/0.3839, allocations: 4.864 MB / 460.4 MB, free: 10.46 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004811/0.3844, allocations: 0.8255 MB / 461.2 MB, free: 9.746 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000294/0.3846, allocations: 81.7 kB / 461.3 MB, free: 9.719 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002971/0.3849, allocations: 146 kB / 461.5 MB, free: 9.625 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3849, allocations: 1.031 kB / 461.5 MB, free: 9.625 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04549/0.4304, allocations: 14.52 MB / 476 MB, free: 14.76 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.43/12.86, allocations: 3.859 kB / 476 MB, free: 14.75 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.456801951862872] Failed to read output from testmodel.py, exit status != 0: ['time', 'Inertia2.phi', 'Inertia2.w', 'bearingFriction.mode', 'bearingFriction.startBackward', 'bearingFriction.startForward', 'gear.mode'] 13.038991366047412 13.059778037 12.724928283 Calling exit ...