Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.001659/0.001659, allocations: 120 kB / 18.5 MB, free: 4.539 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.001835/0.001835, allocations: 209.7 kB / 21.46 MB, free: 1.586 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.463/1.463, 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.LossyGearDemo1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",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.002023/0.002023, allocations: 71.83 kB / 373.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1154, allocations: 53.32 MB / 427 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004754/0.1201, allocations: 2.552 MB / 429.5 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002488/0.1226, allocations: 1.143 MB / 430.7 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002384/0.1229, allocations: 11.94 kB / 430.7 MB, free: 1.066 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003718/0.1232, allocations: 59.5 kB / 430.8 MB, free: 1.008 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006754/0.1239, allocations: 180.9 kB / 430.9 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005378/0.1245, allocations: 179.6 kB / 431.1 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007087/0.1252, allocations: 0.518 MB / 431.6 MB, free: 144 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002104/0.1254, allocations: 60.95 kB / 431.7 MB, free: 80 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2405/0.3659, allocations: 235.2 kB / 431.9 MB, free: 7.727 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005855/0.3665, allocations: 281 kB / 432.2 MB, free: 7.711 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000136/0.3666, allocations: 42.38 kB / 432.2 MB, free: 7.711 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004585/0.3671, allocations: 137.9 kB / 432.4 MB, free: 7.711 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001769/0.3673, allocations: 119.4 kB / 432.5 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002343/0.3675, allocations: 203.2 kB / 432.7 MB, free: 7.648 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008827/0.3684, allocations: 0.5474 MB / 433.2 MB, free: 7.578 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.3684, allocations: 3.188 kB / 433.2 MB, free: 7.578 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3684, allocations: 1.438 kB / 433.2 MB, free: 7.578 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.008e-05/0.3684, allocations: 0.625 kB / 433.2 MB, free: 7.578 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001403/0.3698, allocations: 0.7133 MB / 433.9 MB, free: 7.094 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.3699, allocations: 10.22 kB / 434 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.622e-05/0.3699, allocations: 72.27 kB / 434 MB, free: 7.055 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004158/0.3703, allocations: 63.41 kB / 434.1 MB, free: 7.035 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005298/0.3709, allocations: 315.7 kB / 434.4 MB, free: 6.812 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001232/0.371, allocations: 92.06 kB / 434.5 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.3e-05/0.3711, allocations: 35.33 kB / 434.5 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008283/0.3719, allocations: 426.4 kB / 434.9 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.942e-05/0.3719, allocations: 1.094 kB / 434.9 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.214e-05/0.372, allocations: 14.73 kB / 435 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.304e-05/0.372, allocations: 7.719 kB / 435 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001055/0.373, allocations: 471.7 kB / 435.4 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001755/0.3748, allocations: 0.9862 MB / 436.4 MB, free: 6.344 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008718/0.3757, allocations: 366.1 kB / 436.8 MB, free: 6.316 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004779/0.3761, allocations: 211.2 kB / 437 MB, free: 6.305 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.329e-05/0.3762, allocations: 9.578 kB / 437 MB, free: 6.305 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.975e-05/0.3762, allocations: 37.75 kB / 437 MB, free: 6.266 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 1.784e-06/0.3762, allocations: 1.125 kB / 437 MB, free: 6.266 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.00552/0.3817, allocations: 2.149 MB / 439.2 MB, free: 5.445 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.334e-05/0.3818, allocations: 84.05 kB / 439.3 MB, free: 5.352 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004018/0.3822, allocations: 270.3 kB / 439.5 MB, free: 5.191 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.532e-05/0.3822, allocations: 37.89 kB / 439.6 MB, free: 5.152 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.104e-05/0.3823, allocations: 141.7 kB / 439.7 MB, free: 5.023 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001463/0.3825, allocations: 191.5 kB / 439.9 MB, free: 4.879 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001798/0.3826, allocations: 97.45 kB / 440 MB, free: 4.828 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.615e-05/0.3827, allocations: 340.4 kB / 440.3 MB, free: 4.504 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004625/0.3832, allocations: 196.4 kB / 440.5 MB, free: 4.438 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005025/0.3837, allocations: 239.5 kB / 440.7 MB, free: 4.336 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008254/0.3845, allocations: 387.5 kB / 441.1 MB, free: 4.176 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3845, allocations: 0 / 441.1 MB, free: 4.176 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001414/0.3859, allocations: 0.6 MB / 441.7 MB, free: 3.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.316e-05/0.3859, allocations: 9.703 kB / 441.7 MB, free: 3.926 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.3859, allocations: 1.125 kB / 441.7 MB, free: 3.926 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008562/0.3868, allocations: 302.5 kB / 442 MB, free: 3.848 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003383/0.3871, allocations: 66.06 kB / 442.1 MB, free: 3.848 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003861/0.391, allocations: 2.947 MB / 445 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004342/0.3914, allocations: 32.12 kB / 445.1 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.309e-05/0.3915, allocations: 18.8 kB / 445.1 MB, free: 1.645 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (33): * Single equations (assignments): 32 * 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,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0002318/0.3917, allocations: 161.1 kB / 445.2 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001069/0.3918, allocations: 36.22 kB / 445.3 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001203/0.392, allocations: 48.3 kB / 445.3 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.392, allocations: 6.875 kB / 445.3 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.392, allocations: 0 / 445.3 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.392, allocations: 4.031 kB / 445.3 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002438/0.3944, allocations: 1.29 MB / 446.6 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.3944, allocations: 1.469 kB / 446.6 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003411/0.3948, allocations: 70.2 kB / 446.7 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007698/0.3955, allocations: 280.8 kB / 447 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.322e-05/0.3956, allocations: 21.31 kB / 447 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004281/0.3999, allocations: 2.857 MB / 449.8 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.3999, allocations: 4.531 kB / 449.8 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002281/0.4022, allocations: 0.9389 MB / 450.8 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002824/0.4024, allocations: 160.5 kB / 450.9 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.045e-05/0.4025, allocations: 17.11 kB / 451 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003303/0.4028, allocations: 23.8 kB / 451 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002434/0.4031, allocations: 78.47 kB / 451.1 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.416e-05/0.4031, allocations: 19.23 kB / 451.1 MB, free: 13.9 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003191/0.4035, allocations: 200.1 kB / 451.3 MB, free: 13.79 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4035, allocations: 0 / 451.3 MB, free: 13.79 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008296/0.4043, allocations: 150.7 kB / 451.4 MB, free: 13.76 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: 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 (31): * Single equations (assignments): 30 * 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.003878/0.4082, allocations: 1.785 MB / 453.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001845/0.41, allocations: 0.6645 MB / 453.9 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.41, allocations: 0 / 453.9 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001031/0.411, allocations: 464.9 kB / 454.3 MB, free: 12.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000581/0.4116, allocations: 45.05 kB / 454.4 MB, free: 12.13 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00793/0.4195, allocations: 3.813 MB / 458.2 MB, free: 9.859 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006373/0.4202, allocations: 0.7955 MB / 459 MB, free: 9.152 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004035/0.4206, allocations: 74.91 kB / 459 MB, free: 9.133 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002857/0.4209, allocations: 111.8 kB / 459.2 MB, free: 9.059 MB / 366.1 MB Notification: Performance of SimCode: time 1.392e-06/0.4209, allocations: 0.9375 kB / 459.2 MB, free: 9.059 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05116/0.472, allocations: 11.75 MB / 470.9 MB, free: 3.648 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.46/12.93, allocations: 15.78 kB / 470.9 MB, free: 3.633 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_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_LossyGearDemo1.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.564301596954465] Failed to read output from testmodel.py, exit status != 0: ['time', 'Inertia2.phi', 'Inertia2.w', 'gear.mode'] 13.083282114937901 13.096883238 12.725348271 Calling exit ...