Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.00139/0.00139, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.001583/0.001583, allocations: 211.9 kB / 24.54 MB, free: 4.02 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.482/1.482, 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.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",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.001932/0.001932, allocations: 72.75 kB / 378.5 MB, free: 3.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.286/0.288, allocations: 53.36 MB / 431.9 MB, free: 6.895 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.00627/0.2942, allocations: 2.978 MB / 434.9 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002801/0.297, allocations: 1.068 MB / 436 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002646/0.2973, allocations: 11.94 kB / 436 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003846/0.2977, allocations: 79.3 kB / 436 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005796/0.2983, allocations: 162.9 kB / 436.2 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005494/0.2988, allocations: 183.7 kB / 436.4 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009572/0.2998, allocations: 0.5969 MB / 437 MB, free: 1.801 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002739/0.3001, allocations: 94.91 kB / 437.1 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005297/0.3006, allocations: 263.3 kB / 437.3 MB, free: 1.449 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005673/0.3012, allocations: 295 kB / 437.6 MB, free: 1.16 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001235/0.3013, allocations: 48 kB / 437.7 MB, free: 1.113 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002874/0.3016, allocations: 99.98 kB / 437.8 MB, free: 1.016 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002505/0.3018, allocations: 135.6 kB / 437.9 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003179/0.3021, allocations: 230.9 kB / 438.1 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001049/0.3032, allocations: 0.5884 MB / 438.7 MB, free: 72 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.3032, allocations: 0 / 438.7 MB, free: 72 kB / 334.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.3032, allocations: 3.938 kB / 438.7 MB, free: 68 kB / 334.1 MB Notification: Performance of Transformations before backend: time 9.367e-06/0.3032, allocations: 4 kB / 438.7 MB, free: 64 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.002056/0.3053, allocations: 0.7155 MB / 439.4 MB, free: 15.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.084e-05/0.3053, allocations: 12.03 kB / 439.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000172/0.3055, allocations: 75.72 kB / 439.5 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001552/0.3056, allocations: 48.61 kB / 439.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007176/0.3064, allocations: 268.8 kB / 439.8 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.24e-05/0.3064, allocations: 29.38 kB / 439.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001207/0.3065, allocations: 36.38 kB / 439.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001315/0.3078, allocations: 454.4 kB / 440.3 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.996e-05/0.3079, allocations: 4 kB / 440.3 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.71e-05/0.3079, allocations: 16 kB / 440.4 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.774e-05/0.308, allocations: 12 kB / 440.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001562/0.3095, allocations: 447.7 kB / 440.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003882/0.3134, allocations: 1.221 MB / 442 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001568/0.315, allocations: 396.9 kB / 442.4 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008622/0.3158, allocations: 222.1 kB / 442.6 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.804e-05/0.3159, allocations: 8.438 kB / 442.6 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.305e-05/0.3159, allocations: 35 kB / 442.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 3.387e-06/0.316, allocations: 0 / 442.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.009494/0.3254, allocations: 1.967 MB / 444.6 MB, free: 9.922 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.87e-05/0.3255, allocations: 55.84 kB / 444.7 MB, free: 9.855 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006358/0.3261, allocations: 265.8 kB / 445 MB, free: 9.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.175e-05/0.3262, allocations: 53.62 kB / 445 MB, free: 9.531 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002041/0.3264, allocations: 176.9 kB / 445.2 MB, free: 9.352 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002594/0.3267, allocations: 194.5 kB / 445.4 MB, free: 9.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002788/0.327, allocations: 98.28 kB / 445.5 MB, free: 9.059 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002188/0.3272, allocations: 338.8 kB / 445.8 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008258/0.328, allocations: 225.2 kB / 446 MB, free: 8.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001045/0.3291, allocations: 292 kB / 446.3 MB, free: 8.199 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001383/0.3304, allocations: 402.8 kB / 446.7 MB, free: 7.785 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.3304, allocations: 0 / 446.7 MB, free: 7.785 MB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002767/0.3332, allocations: 0.7182 MB / 447.4 MB, free: 7.051 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.982e-05/0.3332, allocations: 8 kB / 447.4 MB, free: 7.043 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.3333, allocations: 0 / 447.4 MB, free: 7.043 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001618/0.3349, allocations: 426.4 kB / 447.8 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003811/0.3353, allocations: 63.91 kB / 447.9 MB, free: 6.555 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004425/0.3397, allocations: 3.442 MB / 451.3 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007289/0.3404, allocations: 76.09 kB / 451.4 MB, free: 2.781 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.122e-05/0.3405, allocations: 27.92 kB / 451.4 MB, free: 2.754 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 16 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 41 * Array equations: 0 * 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 {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0003592/0.3408, allocations: 169.7 kB / 451.6 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001393/0.341, allocations: 43.7 kB / 451.7 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001796/0.3428, allocations: 0.7107 MB / 452.4 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.3428, allocations: 4 kB / 452.4 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.445e-06/0.3428, allocations: 4 kB / 452.4 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.3428, allocations: 0 / 452.4 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002612/0.3454, allocations: 1.248 MB / 453.6 MB, free: 0.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.3454, allocations: 0 / 453.6 MB, free: 0.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002843/0.3457, allocations: 63.89 kB / 453.7 MB, free: 448 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001038/0.3467, allocations: 402.3 kB / 454.1 MB, free: 36 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.391e-05/0.3468, allocations: 23.91 kB / 454.1 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003335/0.3501, allocations: 3.404 MB / 457.5 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.3501, allocations: 0 / 457.5 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002183/0.3523, allocations: 1.019 MB / 458.5 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002546/0.3526, allocations: 87.72 kB / 458.6 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001105/0.3527, allocations: 19.94 kB / 458.6 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004881/0.3532, allocations: 75.91 kB / 458.7 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002475/0.3534, allocations: 92.31 kB / 458.8 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.378e-05/0.3535, allocations: 19.97 kB / 458.8 MB, free: 11.02 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00025/0.3537, allocations: 193.2 kB / 459 MB, free: 10.84 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3537, allocations: 3.938 kB / 459 MB, free: 10.83 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006009/0.3543, allocations: 123.9 kB / 459.1 MB, free: 10.71 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (clutch.mode,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward,clutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * Array equations: 0 * 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 {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003765/0.3581, allocations: 1.817 MB / 460.9 MB, free: 8.988 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001853/0.3599, allocations: 0.7636 MB / 461.7 MB, free: 8.195 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.3599, allocations: 0 / 461.7 MB, free: 8.195 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009994/0.3609, allocations: 0.5106 MB / 462.2 MB, free: 7.66 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005897/0.3615, allocations: 79.66 kB / 462.3 MB, free: 7.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008029/0.3696, allocations: 4.303 MB / 466.6 MB, free: 3.156 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005088/0.3701, allocations: 0.8085 MB / 467.4 MB, free: 2.316 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001859/0.3702, allocations: 39.28 kB / 467.4 MB, free: 2.277 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002019/0.3704, allocations: 123.4 kB / 467.6 MB, free: 2.156 MB / 366.1 MB Notification: Performance of SimCode: time 9.81e-07/0.3705, allocations: 4 kB / 467.6 MB, free: 2.152 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07659/0.447, allocations: 14.32 MB / 481.9 MB, free: 3.938 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.58/13.02, allocations: 4.062 kB / 481.9 MB, free: 3.934 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_SimpleGearShift.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.622834106907248] Failed to read output from testmodel.py, exit status != 0: ['time', 'clutch.phi_rel', 'clutch.w_rel', 'engine.phi', 'engine.w', 'load.phi', 'load.w', 'brake.mode', 'brake.startBackward', 'brake.startForward', 'clutch.mode', 'clutch.startBackward', 'clutch.startForward'] 13.197056034114212 13.218051047 12.910152413 Calling exit ...