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.00151/0.00151, 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.001654/0.001654, allocations: 213.7 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.412/1.412, allocations: 230.6 MB / 258.3 MB, free: 8.074 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.001925/0.001925, allocations: 64.77 kB / 378.5 MB, free: 3.285 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2478/0.2497, allocations: 53.36 MB / 431.9 MB, free: 6.926 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004851/0.2545, allocations: 2.906 MB / 434.8 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002613/0.2572, allocations: 1.287 MB / 436.1 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000187/0.2573, allocations: 7.938 kB / 436.1 MB, free: 2.715 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003488/0.2577, allocations: 91.27 kB / 436.2 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006214/0.2583, allocations: 218.7 kB / 436.4 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006096/0.2589, allocations: 247.5 kB / 436.6 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008913/0.2598, allocations: 0.7172 MB / 437.4 MB, free: 1.453 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000211/0.26, allocations: 87.91 kB / 437.4 MB, free: 1.359 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005497/0.2606, allocations: 335.1 kB / 437.8 MB, free: 1.031 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005544/0.2611, allocations: 390.8 kB / 438.2 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001039/0.2612, allocations: 60 kB / 438.2 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003211/0.2615, allocations: 155.9 kB / 438.4 MB, free: 448 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002057/0.2618, allocations: 159.6 kB / 438.5 MB, free: 288 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002784/0.262, allocations: 274.7 kB / 438.8 MB, free: 12 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009785/0.263, allocations: 0.717 MB / 439.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.263, allocations: 0 / 439.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.263, allocations: 3.938 kB / 439.5 MB, free: 15.29 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.42e-05/0.263, allocations: 8 kB / 439.5 MB, free: 15.29 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.001815/0.2648, allocations: 0.7738 MB / 440.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.2649, allocations: 12.03 kB / 440.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001092/0.265, allocations: 82.64 kB / 440.4 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004391/0.2654, allocations: 76.62 kB / 440.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006654/0.2661, allocations: 312.7 kB / 440.8 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001954/0.2663, allocations: 156.4 kB / 440.9 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.685e-05/0.2664, allocations: 48.31 kB / 441 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001139/0.2675, allocations: 0.5564 MB / 441.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.302e-05/0.2676, allocations: 7.984 kB / 441.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.985e-05/0.2676, allocations: 16 kB / 441.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.687e-05/0.2676, allocations: 8 kB / 441.6 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001359/0.269, allocations: 0.6128 MB / 442.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002573/0.2716, allocations: 1.239 MB / 443.4 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001222/0.2728, allocations: 0.4893 MB / 443.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006436/0.2734, allocations: 294.1 kB / 444.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.774e-05/0.2735, allocations: 8.484 kB / 444.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.73e-05/0.2735, allocations: 39.06 kB / 444.2 MB, free: 10.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.524e-06/0.2735, allocations: 0 / 444.2 MB, free: 10.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.007061/0.2806, allocations: 2.438 MB / 446.7 MB, free: 7.922 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.286e-05/0.2807, allocations: 81.77 kB / 446.7 MB, free: 7.824 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005105/0.2812, allocations: 352.5 kB / 447.1 MB, free: 7.469 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.881e-05/0.2813, allocations: 41.7 kB / 447.1 MB, free: 7.422 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000136/0.2814, allocations: 169.7 kB / 447.3 MB, free: 7.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002127/0.2816, allocations: 245.9 kB / 447.5 MB, free: 7.008 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002373/0.2818, allocations: 130.2 kB / 447.7 MB, free: 6.875 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001947/0.282, allocations: 350.8 kB / 448 MB, free: 6.523 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006294/0.2827, allocations: 269.2 kB / 448.3 MB, free: 6.262 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007006/0.2834, allocations: 330.5 kB / 448.6 MB, free: 5.926 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001116/0.2845, allocations: 491.6 kB / 449.1 MB, free: 5.438 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.2845, allocations: 3.938 kB / 449.1 MB, free: 5.434 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001951/0.2864, allocations: 0.8219 MB / 449.9 MB, free: 4.602 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.2865, allocations: 8.031 kB / 449.9 MB, free: 4.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/0.2865, allocations: 4 kB / 449.9 MB, free: 4.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001174/0.2876, allocations: 437.3 kB / 450.3 MB, free: 4.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003932/0.288, allocations: 87.88 kB / 450.4 MB, free: 4.074 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001432/0.2895, allocations: 1.026 MB / 451.4 MB, free: 3.023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004852/0.29, allocations: 55.94 kB / 451.5 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.629e-05/0.29, allocations: 31.98 kB / 451.5 MB, free: 2.938 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.0002939/0.2903, allocations: 191.4 kB / 451.7 MB, free: 2.742 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001157/0.2904, allocations: 43.72 kB / 451.8 MB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001564/0.2906, allocations: 67.86 kB / 451.8 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-05/0.2906, allocations: 8 kB / 451.8 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.2906, allocations: 0 / 451.8 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.2906, allocations: 3.984 kB / 451.8 MB, free: 2.621 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003402/0.294, allocations: 1.656 MB / 453.5 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.294, allocations: 3.984 kB / 453.5 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003828/0.2944, allocations: 83.88 kB / 453.6 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001037/0.2954, allocations: 412.6 kB / 454 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.825e-05/0.2955, allocations: 23.97 kB / 454 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001384/0.2969, allocations: 0.9797 MB / 455 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.2969, allocations: 4.031 kB / 455 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002681/0.2996, allocations: 1.216 MB / 456.2 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002829/0.2999, allocations: 123.5 kB / 456.3 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001135/0.3, allocations: 16 kB / 456.3 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004624/0.3004, allocations: 51.94 kB / 456.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002315/0.3007, allocations: 96.47 kB / 456.5 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.342e-05/0.3007, allocations: 31.97 kB / 456.5 MB, free: 13.83 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003858/0.3011, allocations: 259 kB / 456.8 MB, free: 13.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3011, allocations: 0 / 456.8 MB, free: 13.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005696/0.3017, allocations: 143.9 kB / 456.9 MB, free: 13.43 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.004375/0.3061, allocations: 2.032 MB / 458.9 MB, free: 11.5 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001762/0.3078, allocations: 0.6273 MB / 459.6 MB, free: 10.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.3078, allocations: 0 / 459.6 MB, free: 10.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008975/0.3087, allocations: 352.7 kB / 459.9 MB, free: 10.53 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006363/0.3094, allocations: 68.34 kB / 460 MB, free: 10.46 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009719/0.3191, allocations: 4.872 MB / 464.9 MB, free: 5.484 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005443/0.3196, allocations: 0.8252 MB / 465.7 MB, free: 4.633 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003254/0.3199, allocations: 83.36 kB / 465.8 MB, free: 4.551 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002922/0.3202, allocations: 143.4 kB / 465.9 MB, free: 4.41 MB / 366.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3202, allocations: 8 kB / 465.9 MB, free: 4.402 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05547/0.3757, allocations: 15.13 MB / 481 MB, free: 5.363 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.58/12.96, allocations: 7.984 kB / 481.1 MB, free: 5.355 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.384248285088688] Failed to read output from testmodel.py, exit status != 0: ['time', 'Inertia2.phi', 'Inertia2.w', 'bearingFriction.mode', 'bearingFriction.startBackward', 'bearingFriction.startForward', 'gear.mode'] 13.126444151159376 13.150087879 12.882336973 Calling exit ...