Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses.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.001771/0.001771, 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.002045/0.002045, 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.504/1.504, allocations: 230.6 MB / 258.3 MB, free: 8.043 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.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_HeatLosses",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.002013/0.002013, allocations: 68.77 kB / 378.6 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2639/0.2659, allocations: 53.36 MB / 431.9 MB, free: 6.898 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006419/0.2723, allocations: 4.514 MB / 436.4 MB, free: 2.367 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003594/0.2759, allocations: 1.594 MB / 438 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005541/0.2765, allocations: 15.88 kB / 438 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004909/0.277, allocations: 138.7 kB / 438.2 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007489/0.2777, allocations: 277.7 kB / 438.4 MB, free: 352 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001116/0.2788, allocations: 430.2 kB / 438.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001562/0.2804, allocations: 1.174 MB / 440 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004195/0.2808, allocations: 186.3 kB / 440.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008987/0.2817, allocations: 0.5102 MB / 440.7 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007852/0.2825, allocations: 0.541 MB / 441.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001661/0.2827, allocations: 96 kB / 441.4 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003604/0.283, allocations: 163.9 kB / 441.5 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002812/0.2833, allocations: 239.3 kB / 441.8 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004975/0.2838, allocations: 469.8 kB / 442.2 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001432/0.2852, allocations: 1.133 MB / 443.4 MB, free: 11.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.2852, allocations: 0 / 443.4 MB, free: 11.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2852, allocations: 0 / 443.4 MB, free: 11.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.471e-05/0.2852, allocations: 0 / 443.4 MB, free: 11.41 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: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.003415/0.2887, allocations: 1.395 MB / 444.7 MB, free: 9.977 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.2887, allocations: 12.03 kB / 444.8 MB, free: 9.965 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000161/0.2889, allocations: 118.6 kB / 444.9 MB, free: 9.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005393/0.2894, allocations: 124.3 kB / 445 MB, free: 9.719 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008305/0.2902, allocations: 407.9 kB / 445.4 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.302e-05/0.2903, allocations: 58.38 kB / 445.5 MB, free: 9.238 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001406/0.2904, allocations: 71.94 kB / 445.5 MB, free: 9.168 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001738/0.2922, allocations: 0.7998 MB / 446.3 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.959e-05/0.2922, allocations: 11.95 kB / 446.3 MB, free: 8.348 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.679e-05/0.2923, allocations: 28 kB / 446.4 MB, free: 8.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.693e-05/0.2923, allocations: 20 kB / 446.4 MB, free: 8.301 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002032/0.2944, allocations: 0.8393 MB / 447.2 MB, free: 7.461 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004732/0.2991, allocations: 2.35 MB / 449.6 MB, free: 4.988 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001624/0.3007, allocations: 0.6889 MB / 450.3 MB, free: 4.289 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009618/0.3017, allocations: 420.3 kB / 450.7 MB, free: 3.875 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.08e-05/0.3018, allocations: 16.98 kB / 450.7 MB, free: 3.859 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001212/0.303, allocations: 0.5399 MB / 451.2 MB, free: 3.309 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 2.966e-06/0.303, allocations: 0 / 451.2 MB, free: 3.309 MB / 350.1 MB Notification: Performance of matching and sorting (n=110): time 0.0111/0.3141, allocations: 3.794 MB / 455 MB, free: 15.48 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.064e-05/0.3141, allocations: 60.41 kB / 455.1 MB, free: 15.41 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000555/0.3147, allocations: 421.9 kB / 455.5 MB, free: 14.99 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001038/0.3148, allocations: 53.69 kB / 455.5 MB, free: 14.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002423/0.315, allocations: 297.4 kB / 455.8 MB, free: 14.64 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003604/0.3154, allocations: 396.7 kB / 456.2 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003404/0.3157, allocations: 190.8 kB / 456.4 MB, free: 14.05 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002083/0.3159, allocations: 370.8 kB / 456.8 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001008/0.3169, allocations: 418.4 kB / 457.2 MB, free: 13.27 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001084/0.318, allocations: 0.511 MB / 457.7 MB, free: 12.74 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001691/0.3197, allocations: 0.744 MB / 458.4 MB, free: 11.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.3197, allocations: 0 / 458.4 MB, free: 11.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003318/0.323, allocations: 1.288 MB / 459.7 MB, free: 10.68 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.435e-05/0.3231, allocations: 4 kB / 459.7 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/0.3231, allocations: 4 kB / 459.7 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00118/0.3243, allocations: 0.5372 MB / 460.3 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000849/0.3251, allocations: 191.8 kB / 460.5 MB, free: 9.934 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004654/0.3298, allocations: 3.3 MB / 463.8 MB, free: 6.465 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001239/0.331, allocations: 171.9 kB / 463.9 MB, free: 6.297 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.31e-05/0.3311, allocations: 36 kB / 464 MB, free: 6.262 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: 27 (supportFriction.free,massWithStopAndFriction.stopped,massWithStopAndFriction.mode,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.locked,massWithStopAndFriction.startBackward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,elastoGap.contact,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,9), (1,5), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0004885/0.3316, allocations: 237.5 kB / 464.2 MB, free: 6.023 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001785/0.3318, allocations: 83.47 kB / 464.3 MB, free: 5.941 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002525/0.332, allocations: 107.2 kB / 464.4 MB, free: 5.836 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.329e-05/0.332, allocations: 12.19 kB / 464.4 MB, free: 5.824 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.087e-05/0.332, allocations: 0 / 464.4 MB, free: 5.824 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.003e-05/0.332, allocations: 7.922 kB / 464.4 MB, free: 5.816 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005076/0.3371, allocations: 2.429 MB / 466.8 MB, free: 3.285 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.152e-06/0.3371, allocations: 0 / 466.8 MB, free: 3.285 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007897/0.3379, allocations: 179.9 kB / 467 MB, free: 3.109 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001053/0.339, allocations: 0.5021 MB / 467.5 MB, free: 2.598 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001157/0.3391, allocations: 35.95 kB / 467.5 MB, free: 2.562 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003978/0.3431, allocations: 3.084 MB / 470.6 MB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.3431, allocations: 192 / 470.6 MB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003884/0.347, allocations: 1.764 MB / 472.4 MB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004493/0.3474, allocations: 163.4 kB / 472.5 MB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001475/0.3476, allocations: 32 kB / 472.6 MB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001241/0.3488, allocations: 199.7 kB / 472.8 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009494/0.3497, allocations: 400.2 kB / 473.2 MB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.882e-05/0.3498, allocations: 43.95 kB / 473.2 MB, free: 12.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003714/0.3502, allocations: 291.1 kB / 473.5 MB, free: 12.39 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3502, allocations: 0 / 473.5 MB, free: 12.39 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008143/0.351, allocations: 243.9 kB / 473.7 MB, free: 12.16 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (springDamper.s_rel,springDamper.v_rel,elastoGap.s_rel,elastoGap.v_rel,massWithStopAndFriction.s,massWithStopAndFriction.v,springDamper1.s_rel,springDamper1.v_rel) * Number of discrete variables: 17 ($whenCondition1,elastoGap.contact,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,massWithStopAndFriction.free,massWithStopAndFriction.startForward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 9 (massWithStopAndFriction.mode,massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,brake.mode,brake.startForward,brake.startBackward,supportFriction.mode,supportFriction.startForward,supportFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 87 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,7), (1,8), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005468/0.3565, allocations: 2.607 MB / 476.3 MB, free: 9.637 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002741/0.3592, allocations: 1.091 MB / 477.4 MB, free: 8.535 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.3592, allocations: 320 / 477.4 MB, free: 8.535 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001717/0.361, allocations: 0.7193 MB / 478.1 MB, free: 7.805 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001002/0.362, allocations: 149.7 kB / 478.3 MB, free: 7.656 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01409/0.376, allocations: 7.291 MB / 485.6 MB, free: 184 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006751/0.3767, allocations: 0.9441 MB / 486.5 MB, free: 15.21 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004131/0.3771, allocations: 89.69 kB / 486.6 MB, free: 15.12 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000421/0.3776, allocations: 267.3 kB / 486.9 MB, free: 14.86 MB / 398.1 MB Notification: Performance of SimCode: time 1.393e-06/0.3776, allocations: 0 / 486.9 MB, free: 14.86 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06893/0.4465, allocations: 25.1 MB / 0.5 GB, free: 5.902 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.32/13.77, allocations: 7.875 kB / 0.5 GB, free: 5.895 MB / 414.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_HeatLosses_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_HeatLosses.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.33761387085542] Failed to read output from testmodel.py, exit status != 0: ['time', 'damper.s_rel', 'damper.v_rel', 'massWithStopAndFriction.s', 'massWithStopAndFriction.v', 'springDamper.s_rel', 'springDamper.v_rel', 'springDamper1.s_rel', 'springDamper1.v_rel', 'brake.mode', 'brake.startBackward', 'brake.startForward', 'massWithStopAndFriction.mode', 'massWithStopAndFriction.startBackward', 'massWithStopAndFriction.startForward', 'supportFriction.mode', 'supportFriction.startBackward', 'supportFriction.startForward'] 13.943301001098007 13.957873019 13.669540016000001 Calling exit ...