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.001288/0.001288, allocations: 118.6 kB / 18.5 MB, free: 4.602 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.001391/0.001391, allocations: 206.6 kB / 21.45 MB, free: 1.652 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.49/1.49, allocations: 230.5 MB / 254.8 MB, free: 15.23 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.002014/0.002014, allocations: 63.91 kB / 373.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1024, allocations: 53.32 MB / 427 MB, free: 4.848 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004873/0.1072, allocations: 2.959 MB / 430 MB, free: 1.867 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001978/0.1092, allocations: 1.06 MB / 431 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002448/0.1095, allocations: 11.94 kB / 431 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003501/0.1098, allocations: 79.3 kB / 431.1 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004379/0.1103, allocations: 162.9 kB / 431.3 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000422/0.1107, allocations: 183.7 kB / 431.4 MB, free: 380 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007145/0.1114, allocations: 0.5968 MB / 432 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002179/0.1116, allocations: 86.69 kB / 432.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003487/0.112, allocations: 271.2 kB / 432.4 MB, free: 15.42 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003963/0.1124, allocations: 294.9 kB / 432.7 MB, free: 15.13 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.558e-05/0.1124, allocations: 48 kB / 432.7 MB, free: 15.08 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002182/0.1127, allocations: 99.97 kB / 432.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001717/0.1128, allocations: 123.6 kB / 432.9 MB, free: 14.86 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002378/0.1131, allocations: 234.9 kB / 433.2 MB, free: 14.63 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007524/0.1138, allocations: 0.5953 MB / 433.8 MB, free: 14.04 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1138, allocations: 0 / 433.8 MB, free: 14.04 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1138, allocations: 0 / 433.8 MB, free: 14.04 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.235e-05/0.1138, allocations: 0 / 433.8 MB, free: 14.04 MB / 366.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.001662/0.1155, allocations: 0.7869 MB / 434.6 MB, free: 13.2 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.1155, allocations: 8.031 kB / 434.6 MB, free: 13.19 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001412/0.1157, allocations: 79.67 kB / 434.6 MB, free: 13.1 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001168/0.1158, allocations: 52.66 kB / 434.7 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005515/0.1164, allocations: 322.7 kB / 435 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.764e-05/0.1164, allocations: 33.36 kB / 435 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.133e-05/0.1165, allocations: 44.3 kB / 435.1 MB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001014/0.1175, allocations: 438.5 kB / 435.5 MB, free: 12.19 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.8e-05/0.1175, allocations: 19.94 kB / 435.5 MB, free: 12.17 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.642e-05/0.1176, allocations: 8 kB / 435.5 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.332e-05/0.1176, allocations: 16 kB / 435.6 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00109/0.1187, allocations: 443.7 kB / 436 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002639/0.1213, allocations: 1.297 MB / 437.3 MB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000941/0.1223, allocations: 378.9 kB / 437.7 MB, free: 9.965 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005349/0.1228, allocations: 242 kB / 437.9 MB, free: 9.727 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.776e-05/0.1228, allocations: 4.438 kB / 437.9 MB, free: 9.723 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.205e-05/0.1229, allocations: 39 kB / 437.9 MB, free: 9.676 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.535e-06/0.1229, allocations: 0 / 437.9 MB, free: 9.676 MB / 366.1 MB Notification: Performance of matching and sorting (n=54): time 0.006097/0.129, allocations: 2.253 MB / 440.2 MB, free: 7.289 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.882e-05/0.129, allocations: 55.84 kB / 440.2 MB, free: 7.223 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003675/0.1294, allocations: 274.6 kB / 440.5 MB, free: 6.949 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.356e-05/0.1295, allocations: 41.7 kB / 440.6 MB, free: 6.902 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001572/0.1296, allocations: 176.9 kB / 440.7 MB, free: 6.723 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001937/0.1298, allocations: 190.5 kB / 440.9 MB, free: 6.535 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001973/0.13, allocations: 98.19 kB / 441 MB, free: 6.434 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.1302, allocations: 350.7 kB / 441.4 MB, free: 6.082 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005458/0.1307, allocations: 221 kB / 441.6 MB, free: 5.863 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005848/0.1313, allocations: 291.2 kB / 441.9 MB, free: 5.566 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008714/0.1322, allocations: 395.7 kB / 442.2 MB, free: 5.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.1322, allocations: 0 / 442.2 MB, free: 5.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001789/0.134, allocations: 0.7235 MB / 443 MB, free: 4.418 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.134, allocations: 4 kB / 443 MB, free: 4.414 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.134, allocations: 0 / 443 MB, free: 4.414 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001171/0.1352, allocations: 422.4 kB / 443.4 MB, free: 3.992 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002833/0.1355, allocations: 71.89 kB / 443.4 MB, free: 3.922 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2042/0.3396, allocations: 3.64 MB / 447.1 MB, free: 23.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007221/0.3404, allocations: 74.34 kB / 447.2 MB, free: 23.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.045e-05/0.3404, allocations: 19.67 kB / 447.2 MB, free: 23.98 MB / 366.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.0002658/0.3407, allocations: 173.7 kB / 447.4 MB, free: 23.87 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001127/0.3408, allocations: 42.22 kB / 447.4 MB, free: 23.87 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001868/0.3427, allocations: 0.7056 MB / 448.1 MB, free: 23.8 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.03e-05/0.3427, allocations: 8.516 kB / 448.1 MB, free: 23.8 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.3427, allocations: 1.531 kB / 448.1 MB, free: 23.8 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.3427, allocations: 2.062 kB / 448.1 MB, free: 23.8 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002254/0.3449, allocations: 1.281 MB / 449.4 MB, free: 23.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.541e-06/0.345, allocations: 1.062 kB / 449.4 MB, free: 23.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000292/0.3452, allocations: 65.88 kB / 449.5 MB, free: 23.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009969/0.3462, allocations: 405.5 kB / 449.9 MB, free: 23.45 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.126e-05/0.3463, allocations: 20.66 kB / 449.9 MB, free: 23.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002305/0.3486, allocations: 3.62 MB / 453.5 MB, free: 20.2 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3486, allocations: 0 / 453.5 MB, free: 20.2 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002138/0.3507, allocations: 1.011 MB / 454.5 MB, free: 19.71 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002334/0.351, allocations: 164.4 kB / 454.7 MB, free: 19.6 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.925e-05/0.3511, allocations: 16.58 kB / 454.7 MB, free: 19.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004929/0.3515, allocations: 73.22 kB / 454.8 MB, free: 19.58 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002522/0.3518, allocations: 99.58 kB / 454.8 MB, free: 19.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.678e-05/0.3518, allocations: 22.11 kB / 454.9 MB, free: 19.56 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002073/0.352, allocations: 192.2 kB / 455.1 MB, free: 19.45 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.352, allocations: 0 / 455.1 MB, free: 19.45 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005432/0.3526, allocations: 121.2 kB / 455.2 MB, free: 19.43 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.003563/0.3562, allocations: 1.841 MB / 457 MB, free: 18.38 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00181/0.358, allocations: 0.754 MB / 457.8 MB, free: 17.99 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.358, allocations: 0 / 457.8 MB, free: 17.99 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000984/0.359, allocations: 0.5099 MB / 458.3 MB, free: 17.68 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006277/0.3596, allocations: 80.33 kB / 458.4 MB, free: 17.64 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007497/0.3671, allocations: 4.295 MB / 462.7 MB, free: 15.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003409/0.3674, allocations: 0.8126 MB / 463.5 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001896/0.3676, allocations: 35.27 kB / 463.5 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001868/0.3678, allocations: 117.4 kB / 463.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3678, allocations: 0 / 463.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04917/0.417, allocations: 13.8 MB / 477.4 MB, free: 9.508 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.58/13, allocations: 15.86 kB / 477.4 MB, free: 9.496 MB / 366.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.585861160885543] 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.15255603613332 13.171129508 13.053687235 Calling exit ...