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.001552/0.001552, allocations: 109 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.001416/0.001416, allocations: 213.6 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.513/1.513, allocations: 230.6 MB / 258.3 MB, free: 8.023 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.002052/0.002052, allocations: 69 kB / 378.5 MB, free: 3.164 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3017/0.3037, allocations: 53.37 MB / 431.9 MB, free: 7.059 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006643/0.3104, allocations: 4.522 MB / 436.4 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004435/0.3148, allocations: 1.586 MB / 438 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006007/0.3154, allocations: 15.88 kB / 438 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005306/0.316, allocations: 138.7 kB / 438.2 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000853/0.3168, allocations: 281.7 kB / 438.4 MB, free: 0.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001111/0.3179, allocations: 427.1 kB / 438.9 MB, free: 84 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001482/0.3194, allocations: 1.17 MB / 440 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003905/0.3198, allocations: 194.2 kB / 440.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008641/0.3207, allocations: 0.5102 MB / 440.7 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007788/0.3214, allocations: 0.541 MB / 441.3 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001656/0.3216, allocations: 96 kB / 441.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003786/0.322, allocations: 156 kB / 441.5 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002954/0.3223, allocations: 247.2 kB / 441.8 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004834/0.3228, allocations: 461.9 kB / 442.2 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001476/0.3242, allocations: 1.133 MB / 443.3 MB, free: 11.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.3242, allocations: 0 / 443.3 MB, free: 11.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3242, allocations: 4 kB / 443.4 MB, free: 11.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.259e-05/0.3243, allocations: 0 / 443.4 MB, free: 11.57 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.003632/0.3279, allocations: 1.399 MB / 444.7 MB, free: 10.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.256e-05/0.3279, allocations: 12.03 kB / 444.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001631/0.3281, allocations: 110.7 kB / 444.9 MB, free: 9.996 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005905/0.3287, allocations: 124.3 kB / 445 MB, free: 9.875 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001107/0.3298, allocations: 407.9 kB / 445.4 MB, free: 9.449 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.81e-05/0.3299, allocations: 58.31 kB / 445.4 MB, free: 9.395 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001683/0.3301, allocations: 75.92 kB / 445.5 MB, free: 9.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001902/0.332, allocations: 0.7998 MB / 446.3 MB, free: 8.512 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.208e-05/0.332, allocations: 11.94 kB / 446.3 MB, free: 8.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.565e-05/0.3321, allocations: 28 kB / 446.4 MB, free: 8.473 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.785e-05/0.3321, allocations: 20 kB / 446.4 MB, free: 8.453 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002059/0.3342, allocations: 0.8432 MB / 447.2 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004717/0.3389, allocations: 2.354 MB / 449.6 MB, free: 5.133 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001591/0.3405, allocations: 0.685 MB / 450.3 MB, free: 4.438 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009263/0.3414, allocations: 424.3 kB / 450.7 MB, free: 4.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.75e-05/0.3415, allocations: 9 kB / 450.7 MB, free: 4.012 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001186/0.3427, allocations: 0.5399 MB / 451.2 MB, free: 3.461 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 2.885e-06/0.3427, allocations: 0 / 451.2 MB, free: 3.461 MB / 350.1 MB Notification: Performance of matching and sorting (n=110): time 0.01123/0.3539, allocations: 3.801 MB / 455 MB, free: 15.62 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.694e-05/0.354, allocations: 60.41 kB / 455.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00076/0.3548, allocations: 421.8 kB / 455.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001131/0.3549, allocations: 57.69 kB / 455.6 MB, free: 15.07 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002882/0.3552, allocations: 289.5 kB / 455.8 MB, free: 14.79 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003996/0.3556, allocations: 388.7 kB / 456.2 MB, free: 14.4 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003337/0.3559, allocations: 194.8 kB / 456.4 MB, free: 14.21 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002358/0.3561, allocations: 374.8 kB / 456.8 MB, free: 13.83 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009949/0.3571, allocations: 410.4 kB / 457.2 MB, free: 13.43 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001058/0.3582, allocations: 0.5111 MB / 457.7 MB, free: 12.9 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001646/0.3598, allocations: 0.744 MB / 458.4 MB, free: 12.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.3598, allocations: 0 / 458.4 MB, free: 12.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003153/0.363, allocations: 1.292 MB / 459.7 MB, free: 10.83 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.347e-05/0.363, allocations: 4 kB / 459.7 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.305e-05/0.363, allocations: 4 kB / 459.7 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001164/0.3642, allocations: 0.5294 MB / 460.3 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007957/0.365, allocations: 203.7 kB / 460.5 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004742/0.3697, allocations: 3.292 MB / 463.7 MB, free: 6.621 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001245/0.371, allocations: 176.1 kB / 463.9 MB, free: 6.449 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.331e-05/0.3711, allocations: 35.98 kB / 464 MB, free: 6.414 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.0004707/0.3715, allocations: 241.5 kB / 464.2 MB, free: 6.172 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001747/0.3717, allocations: 83.47 kB / 464.3 MB, free: 6.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000234/0.3719, allocations: 103.2 kB / 464.4 MB, free: 5.988 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.037e-05/0.372, allocations: 12 kB / 464.4 MB, free: 5.977 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.372, allocations: 0 / 464.4 MB, free: 5.977 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.144e-05/0.372, allocations: 7.969 kB / 464.4 MB, free: 5.969 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00487/0.3768, allocations: 2.432 MB / 466.8 MB, free: 3.434 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/0.3768, allocations: 0 / 466.8 MB, free: 3.434 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007897/0.3776, allocations: 176.1 kB / 467 MB, free: 3.262 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001024/0.3787, allocations: 0.5021 MB / 467.5 MB, free: 2.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.909e-05/0.3787, allocations: 31.97 kB / 467.5 MB, free: 2.719 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003959/0.3827, allocations: 3.092 MB / 470.6 MB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.3827, allocations: 3.984 kB / 470.6 MB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004054/0.3868, allocations: 1.765 MB / 472.4 MB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004667/0.3872, allocations: 163.4 kB / 472.5 MB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001486/0.3874, allocations: 32 kB / 472.6 MB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001264/0.3886, allocations: 195.7 kB / 472.8 MB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009629/0.3896, allocations: 404.2 kB / 473.2 MB, free: 12.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.739e-05/0.3897, allocations: 39.97 kB / 473.2 MB, free: 12.83 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000371/0.3901, allocations: 287.1 kB / 473.5 MB, free: 12.55 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3901, allocations: 0 / 473.5 MB, free: 12.55 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008272/0.3909, allocations: 244 kB / 473.7 MB, free: 12.31 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.005585/0.3965, allocations: 2.606 MB / 476.3 MB, free: 9.789 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00269/0.3992, allocations: 1.091 MB / 477.4 MB, free: 8.688 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.3992, allocations: 0 / 477.4 MB, free: 8.688 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001754/0.4009, allocations: 0.7234 MB / 478.1 MB, free: 7.953 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001029/0.402, allocations: 153.3 kB / 478.3 MB, free: 7.805 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01428/0.4162, allocations: 7.28 MB / 485.6 MB, free: 344 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006542/0.4169, allocations: 0.948 MB / 486.5 MB, free: 15.36 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004299/0.4173, allocations: 85.69 kB / 486.6 MB, free: 15.27 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004257/0.4177, allocations: 263.3 kB / 486.9 MB, free: 15.02 MB / 398.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4177, allocations: 4 kB / 486.9 MB, free: 15.01 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09426/0.512, allocations: 25.11 MB / 0.5 GB, free: 6.051 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.18/13.69, allocations: 7.875 kB / 0.5 GB, free: 6.043 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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 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.345520953647792] 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.868511788081378 13.883343539 13.555914511 Calling exit ...