Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.001354/0.001354, allocations: 106.5 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.001605/0.001605, allocations: 211.8 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.396/1.396, allocations: 230.6 MB / 258.3 MB, free: 8.059 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.LossyGearDemo3,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",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: 60.77 kB / 378.5 MB, free: 3.176 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2693/0.2712, allocations: 53.37 MB / 431.9 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003888/0.2751, allocations: 2.478 MB / 434.4 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001798/0.2769, allocations: 1.073 MB / 435.5 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001073/0.277, allocations: 7.938 kB / 435.5 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002792/0.2773, allocations: 67.48 kB / 435.5 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003894/0.2777, allocations: 152.8 kB / 435.7 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003565/0.2781, allocations: 166.5 kB / 435.8 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005687/0.2786, allocations: 470.7 kB / 436.3 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001502/0.2788, allocations: 48.91 kB / 436.3 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000237/0.279, allocations: 207.5 kB / 436.6 MB, free: 2.227 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003602/0.2794, allocations: 251.2 kB / 436.8 MB, free: 1.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.965e-05/0.2794, allocations: 36 kB / 436.8 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002186/0.2797, allocations: 124 kB / 437 MB, free: 1.824 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001421/0.2798, allocations: 115.6 kB / 437.1 MB, free: 1.711 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001734/0.28, allocations: 179.2 kB / 437.2 MB, free: 1.535 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006005/0.2806, allocations: 0.4912 MB / 437.7 MB, free: 1.047 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.2806, allocations: 4 kB / 437.7 MB, free: 1.043 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.2806, allocations: 0 / 437.7 MB, free: 1.043 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.033e-05/0.2806, allocations: 4 kB / 437.7 MB, free: 1.039 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001188/0.2818, allocations: 0.5907 MB / 438.3 MB, free: 428 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.2818, allocations: 12.02 kB / 438.3 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.278e-05/0.2819, allocations: 62.73 kB / 438.4 MB, free: 344 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002917/0.2822, allocations: 56.67 kB / 438.5 MB, free: 288 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000482/0.2827, allocations: 247.6 kB / 438.7 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001836/0.2829, allocations: 144.1 kB / 438.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.297e-05/0.2829, allocations: 24.38 kB / 438.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007497/0.2837, allocations: 394.5 kB / 439.3 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.636e-05/0.2837, allocations: 0 / 439.3 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.627e-05/0.2837, allocations: 12 kB / 439.3 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.199e-05/0.2837, allocations: 4 kB / 439.3 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008517/0.2846, allocations: 422.2 kB / 439.7 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002115/0.2867, allocations: 1.204 MB / 440.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007032/0.2874, allocations: 326.4 kB / 441.2 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003729/0.2878, allocations: 164.7 kB / 441.4 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.009e-05/0.2878, allocations: 12.14 kB / 441.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.472e-05/0.2879, allocations: 35.28 kB / 441.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.272e-06/0.2879, allocations: 0 / 441.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.004638/0.2925, allocations: 1.671 MB / 443.1 MB, free: 11.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.193e-05/0.2926, allocations: 84.86 kB / 443.2 MB, free: 11.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003195/0.2929, allocations: 250.8 kB / 443.4 MB, free: 11.1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.088e-05/0.2929, allocations: 37.7 kB / 443.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.293, allocations: 136.8 kB / 443.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000136/0.2932, allocations: 158.6 kB / 443.7 MB, free: 10.76 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001475/0.2933, allocations: 86.06 kB / 443.8 MB, free: 10.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.2935, allocations: 338.8 kB / 444.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003743/0.2939, allocations: 164.8 kB / 444.3 MB, free: 10.17 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004228/0.2943, allocations: 225.9 kB / 444.5 MB, free: 9.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007248/0.295, allocations: 339.2 kB / 444.9 MB, free: 9.586 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.295, allocations: 0 / 444.9 MB, free: 9.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001135/0.2961, allocations: 0.5435 MB / 445.4 MB, free: 9.031 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.2962, allocations: 4 kB / 445.4 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.2962, allocations: 8.125 kB / 445.4 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007935/0.297, allocations: 300.5 kB / 445.7 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00024/0.2972, allocations: 51.91 kB / 445.8 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004091/0.3013, allocations: 2.785 MB / 448.5 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002547/0.3015, allocations: 35.84 kB / 448.6 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.247e-05/0.3016, allocations: 20 kB / 448.6 MB, free: 5.719 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.ideal,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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0001932/0.3018, allocations: 157.8 kB / 448.8 MB, free: 5.555 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.256e-05/0.3019, allocations: 31.81 kB / 448.8 MB, free: 5.523 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001013/0.302, allocations: 46.92 kB / 448.8 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.302, allocations: 4 kB / 448.8 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-06/0.302, allocations: 0 / 448.8 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.302, allocations: 0 / 448.8 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001971/0.3039, allocations: 1.077 MB / 449.9 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.304, allocations: 3.984 kB / 449.9 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000226/0.3042, allocations: 47.91 kB / 450 MB, free: 4.293 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007203/0.3049, allocations: 280.7 kB / 450.2 MB, free: 4.016 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.786e-05/0.3049, allocations: 19.92 kB / 450.3 MB, free: 3.996 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004075/0.309, allocations: 2.753 MB / 453 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.309, allocations: 0 / 453 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00246/0.3115, allocations: 0.7923 MB / 453.8 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002316/0.3117, allocations: 71.77 kB / 453.9 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.654e-05/0.3118, allocations: 15.94 kB / 453.9 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003977/0.3122, allocations: 23.97 kB / 453.9 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002508/0.3124, allocations: 67.94 kB / 454 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.968e-05/0.3125, allocations: 15.98 kB / 454 MB, free: 132 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003632/0.3129, allocations: 180.5 kB / 454.2 MB, free: 15.95 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3129, allocations: 0 / 454.2 MB, free: 15.95 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000986/0.3138, allocations: 140 kB / 454.3 MB, free: 15.82 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004786/0.3186, allocations: 1.659 MB / 456 MB, free: 14.26 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002056/0.3207, allocations: 0.586 MB / 456.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.3207, allocations: 0 / 456.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001219/0.3219, allocations: 422.2 kB / 457 MB, free: 13.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007277/0.3226, allocations: 35.77 kB / 457 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008517/0.3311, allocations: 3.412 MB / 460.4 MB, free: 9.668 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005691/0.3317, allocations: 0.7762 MB / 461.2 MB, free: 8.867 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003556/0.3321, allocations: 74.91 kB / 461.3 MB, free: 8.797 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002548/0.3323, allocations: 95.38 kB / 461.4 MB, free: 8.703 MB / 366.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3323, allocations: 0 / 461.4 MB, free: 8.703 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04323/0.3756, allocations: 11.03 MB / 472.4 MB, free: 13.76 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.41/12.78, allocations: 7.922 kB / 472.4 MB, free: 13.75 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv --start-time 0 --stop-time 1 --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_LossyGearDemo3.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.257214942015707] Failed to read output from testmodel.py, exit status != 0: ['time', 'Inertia2.phi', 'Inertia2.w', 'gear.mode'] 12.949893400073051 12.972972145 12.688843245 Calling exit ...