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.001296/0.001296, allocations: 122.6 kB / 18.5 MB, free: 4.578 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.001404/0.001404, allocations: 206.6 kB / 21.45 MB, free: 1.629 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.449/1.449, allocations: 230.5 MB / 254.8 MB, free: 15.09 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.001993/0.001993, allocations: 67.83 kB / 373.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1152, allocations: 53.33 MB / 427 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004321/0.1195, allocations: 2.468 MB / 429.5 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001977/0.1215, allocations: 1.053 MB / 430.5 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000143/0.1216, allocations: 4 kB / 430.5 MB, free: 1.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003189/0.122, allocations: 67.48 kB / 430.6 MB, free: 1.203 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004883/0.1224, allocations: 154 kB / 430.7 MB, free: 1.055 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000398/0.1228, allocations: 163.7 kB / 430.9 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005301/0.1234, allocations: 470.7 kB / 431.4 MB, free: 444 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001568/0.1235, allocations: 48.72 kB / 431.4 MB, free: 396 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002594/0.1238, allocations: 207.4 kB / 431.6 MB, free: 188 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2224/0.3461, allocations: 243.7 kB / 431.8 MB, free: 7.879 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001978/0.3463, allocations: 39.78 kB / 431.9 MB, free: 7.879 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004465/0.3468, allocations: 125 kB / 432 MB, free: 7.879 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001792/0.347, allocations: 110.7 kB / 432.1 MB, free: 7.879 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002307/0.3472, allocations: 171.7 kB / 432.3 MB, free: 7.875 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007664/0.348, allocations: 0.4965 MB / 432.8 MB, free: 7.812 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.348, allocations: 0 / 432.8 MB, free: 7.812 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.348, allocations: 0 / 432.8 MB, free: 7.812 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.799e-06/0.348, allocations: 1.031 kB / 432.8 MB, free: 7.812 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001266/0.3492, allocations: 0.6729 MB / 433.4 MB, free: 7.344 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.848e-05/0.3493, allocations: 9.656 kB / 433.5 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.469e-05/0.3494, allocations: 65.23 kB / 433.5 MB, free: 7.305 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003231/0.3497, allocations: 54.56 kB / 433.6 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004776/0.3502, allocations: 301.3 kB / 433.9 MB, free: 7.062 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001197/0.3503, allocations: 91.08 kB / 434 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.534e-05/0.3503, allocations: 29.28 kB / 434 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006692/0.351, allocations: 386.1 kB / 434.4 MB, free: 6.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.86e-05/0.351, allocations: 1.938 kB / 434.4 MB, free: 6.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.819e-05/0.3511, allocations: 9.562 kB / 434.4 MB, free: 6.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.3511, allocations: 8.312 kB / 434.4 MB, free: 6.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008208/0.3519, allocations: 419.1 kB / 434.8 MB, free: 6.926 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002048/0.354, allocations: 1.272 MB / 436.1 MB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007355/0.3547, allocations: 320.3 kB / 436.4 MB, free: 6.371 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003841/0.3551, allocations: 164.7 kB / 436.5 MB, free: 6.363 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.378e-05/0.3551, allocations: 14.58 kB / 436.6 MB, free: 6.363 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.587e-05/0.3551, allocations: 37.69 kB / 436.6 MB, free: 6.324 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.864e-06/0.3551, allocations: 0 / 436.6 MB, free: 6.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.005023/0.3602, allocations: 1.894 MB / 438.5 MB, free: 5.676 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.805e-05/0.3602, allocations: 85.81 kB / 438.6 MB, free: 5.578 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003374/0.3606, allocations: 248.5 kB / 438.8 MB, free: 5.434 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.447e-05/0.3606, allocations: 36.11 kB / 438.8 MB, free: 5.395 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.466e-05/0.3607, allocations: 139.3 kB / 439 MB, free: 5.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001149/0.3608, allocations: 158.3 kB / 439.1 MB, free: 5.148 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001578/0.3609, allocations: 91.53 kB / 439.2 MB, free: 5.094 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.614e-05/0.361, allocations: 337 kB / 439.6 MB, free: 4.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003998/0.3614, allocations: 160.4 kB / 439.7 MB, free: 4.719 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004323/0.3619, allocations: 225 kB / 439.9 MB, free: 4.609 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007105/0.3626, allocations: 343.4 kB / 440.3 MB, free: 4.445 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3626, allocations: 3.75 kB / 440.3 MB, free: 4.445 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001235/0.3638, allocations: 0.5397 MB / 440.8 MB, free: 4.219 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.282e-05/0.3638, allocations: 6.188 kB / 440.8 MB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.3639, allocations: 1.094 kB / 440.8 MB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008816/0.3647, allocations: 294.8 kB / 441.1 MB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002611/0.365, allocations: 61.11 kB / 441.2 MB, free: 4.141 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003906/0.3689, allocations: 2.898 MB / 444.1 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002929/0.3692, allocations: 21.62 kB / 444.1 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.233e-05/0.3692, allocations: 20.73 kB / 444.1 MB, free: 1.957 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.000208/0.3695, allocations: 162.9 kB / 444.3 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.71e-05/0.3695, allocations: 30 kB / 444.3 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001012/0.3696, allocations: 42.7 kB / 444.3 MB, free: 1.762 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.3696, allocations: 7.625 kB / 444.3 MB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.3697, allocations: 1.75 kB / 444.3 MB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.216e-06/0.3697, allocations: 1.969 kB / 444.3 MB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002021/0.3717, allocations: 1.097 MB / 445.4 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.3717, allocations: 1.219 kB / 445.4 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002655/0.372, allocations: 50.52 kB / 445.5 MB, free: 1.148 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007915/0.3727, allocations: 283.7 kB / 445.8 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.944e-05/0.3728, allocations: 12.52 kB / 445.8 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003962/0.3767, allocations: 2.847 MB / 448.6 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.3767, allocations: 0 / 448.6 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001873/0.3786, allocations: 0.8065 MB / 449.4 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002095/0.3788, allocations: 146.1 kB / 449.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.456e-05/0.3789, allocations: 16.44 kB / 449.6 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002758/0.3792, allocations: 21.45 kB / 449.6 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000239/0.3794, allocations: 63.33 kB / 449.7 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.45e-05/0.3795, allocations: 17.98 kB / 449.7 MB, free: 14.36 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000283/0.3797, allocations: 185.6 kB / 449.9 MB, free: 14.26 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3797, allocations: 3.938 kB / 449.9 MB, free: 14.25 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007228/0.3805, allocations: 141.5 kB / 450 MB, free: 14.23 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.00355/0.384, allocations: 1.639 MB / 451.7 MB, free: 13.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001677/0.3857, allocations: 0.5938 MB / 452.2 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.3857, allocations: 0 / 452.2 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008254/0.3865, allocations: 414 kB / 452.7 MB, free: 12.72 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005224/0.387, allocations: 50.03 kB / 452.7 MB, free: 12.69 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006209/0.3932, allocations: 3.407 MB / 456.1 MB, free: 10.55 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005246/0.3938, allocations: 0.7777 MB / 456.9 MB, free: 9.852 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002631/0.394, allocations: 75.11 kB / 457 MB, free: 9.836 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002046/0.3942, allocations: 89.89 kB / 457 MB, free: 9.777 MB / 366.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3942, allocations: 7.938 kB / 457.1 MB, free: 9.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04524/0.4395, allocations: 10.63 MB / 467.7 MB, free: 5.426 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.15/12.59, allocations: 7.078 kB / 467.7 MB, free: 5.422 MB / 366.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.200580917298794] Failed to read output from testmodel.py, exit status != 0: ['time', 'Inertia2.phi', 'Inertia2.w', 'gear.mode'] 12.751600428018719 12.776695639 12.423591855 Calling exit ...