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.001305/0.001305, allocations: 120.2 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.001359/0.001359, allocations: 205 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.49/1.49, allocations: 230.5 MB / 254.8 MB, free: 15.1 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.002007/0.002007, allocations: 71.83 kB / 373.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1248, allocations: 53.32 MB / 427 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006785/0.1316, allocations: 4.485 MB / 431.5 MB, free: 292 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2488/0.3803, allocations: 1.579 MB / 433.1 MB, free: 7.492 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004721/0.3808, allocations: 17.31 kB / 433.1 MB, free: 7.492 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004159/0.3812, allocations: 135.9 kB / 433.2 MB, free: 7.492 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006374/0.3819, allocations: 281.6 kB / 433.5 MB, free: 7.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001008/0.3829, allocations: 421.6 kB / 433.9 MB, free: 7.395 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001092/0.384, allocations: 1.174 MB / 435.1 MB, free: 7.191 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003508/0.3843, allocations: 183.3 kB / 435.3 MB, free: 7.152 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007406/0.3851, allocations: 0.5068 MB / 435.8 MB, free: 7.082 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006796/0.3857, allocations: 0.5335 MB / 436.3 MB, free: 6.992 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001635/0.3859, allocations: 93.78 kB / 436.4 MB, free: 6.992 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000405/0.3863, allocations: 165.9 kB / 436.5 MB, free: 6.984 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002797/0.3866, allocations: 239.9 kB / 436.8 MB, free: 6.887 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000452/0.387, allocations: 468.1 kB / 437.2 MB, free: 6.617 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001519/0.3885, allocations: 1.136 MB / 438.4 MB, free: 6.211 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3886, allocations: 0 / 438.4 MB, free: 6.211 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3886, allocations: 0 / 438.4 MB, free: 6.211 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.62e-05/0.3886, allocations: 0 / 438.4 MB, free: 6.211 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.003512/0.3921, allocations: 1.348 MB / 439.7 MB, free: 5.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.3921, allocations: 9.781 kB / 439.7 MB, free: 5.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001504/0.3923, allocations: 123.1 kB / 439.9 MB, free: 5.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005842/0.3929, allocations: 122.5 kB / 440 MB, free: 5.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007763/0.3936, allocations: 470.4 kB / 440.4 MB, free: 4.926 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.477e-05/0.3937, allocations: 56.25 kB / 440.5 MB, free: 4.902 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001541/0.3939, allocations: 75.22 kB / 440.6 MB, free: 4.875 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002222/0.3961, allocations: 0.7988 MB / 441.4 MB, free: 4.566 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.36e-05/0.3961, allocations: 6.938 kB / 441.4 MB, free: 4.562 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.433e-05/0.3962, allocations: 31.39 kB / 441.4 MB, free: 4.539 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.632e-05/0.3962, allocations: 20.78 kB / 441.4 MB, free: 4.535 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002365/0.3986, allocations: 0.8423 MB / 442.3 MB, free: 4.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004905/0.4035, allocations: 2.405 MB / 444.7 MB, free: 2.914 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001495/0.405, allocations: 0.6845 MB / 445.3 MB, free: 2.629 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009225/0.4059, allocations: 418.6 kB / 445.8 MB, free: 2.465 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.272e-05/0.406, allocations: 22.34 kB / 445.8 MB, free: 2.453 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001214/0.4072, allocations: 0.5366 MB / 446.3 MB, free: 2.234 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 3.246e-06/0.4072, allocations: 0 / 446.3 MB, free: 2.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=110): time 0.01208/0.4193, allocations: 4.161 MB / 450.5 MB, free: 256 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.24e-05/0.4193, allocations: 63.84 kB / 450.5 MB, free: 192 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006196/0.42, allocations: 426 kB / 451 MB, free: 15.99 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001234/0.4201, allocations: 61.25 kB / 451 MB, free: 15.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002453/0.4203, allocations: 283.7 kB / 451.3 MB, free: 15.7 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003423/0.4207, allocations: 393.2 kB / 451.7 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003574/0.421, allocations: 189.6 kB / 451.9 MB, free: 15.31 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002055/0.4212, allocations: 376 kB / 452.2 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000986/0.4222, allocations: 416.4 kB / 452.6 MB, free: 14.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001091/0.4233, allocations: 0.5068 MB / 453.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001836/0.4251, allocations: 0.7404 MB / 453.9 MB, free: 14.23 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.4252, allocations: 5.312 kB / 453.9 MB, free: 14.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003611/0.4288, allocations: 1.286 MB / 455.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.591e-05/0.4288, allocations: 5.5 kB / 455.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.496e-05/0.4288, allocations: 2.375 kB / 455.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00134/0.4302, allocations: 0.5418 MB / 455.7 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000869/0.431, allocations: 198.8 kB / 455.9 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005141/0.4362, allocations: 3.396 MB / 459.3 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001503/0.4377, allocations: 175.9 kB / 459.5 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.005e-05/0.4378, allocations: 32.41 kB / 459.5 MB, free: 10.16 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.0005972/0.4384, allocations: 231.6 kB / 459.7 MB, free: 9.969 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001893/0.4385, allocations: 80.62 kB / 459.8 MB, free: 9.926 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002861/0.4388, allocations: 112 kB / 459.9 MB, free: 9.828 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.191e-05/0.4388, allocations: 10.84 kB / 459.9 MB, free: 9.828 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.482e-05/0.4389, allocations: 0 / 459.9 MB, free: 9.828 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/0.4389, allocations: 5.234 kB / 459.9 MB, free: 9.824 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005197/0.4441, allocations: 2.464 MB / 462.4 MB, free: 8.137 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.865e-06/0.4441, allocations: 2.156 kB / 462.4 MB, free: 8.137 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008004/0.4449, allocations: 178.7 kB / 462.6 MB, free: 8.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001075/0.446, allocations: 0.5092 MB / 463.1 MB, free: 7.824 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-05/0.446, allocations: 33.53 kB / 463.1 MB, free: 7.801 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004251/0.4503, allocations: 3.185 MB / 466.3 MB, free: 4.875 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/0.4503, allocations: 6.5 kB / 466.3 MB, free: 4.871 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004406/0.4547, allocations: 1.755 MB / 468.1 MB, free: 3.859 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006402/0.4554, allocations: 239.3 kB / 468.3 MB, free: 3.641 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001605/0.4555, allocations: 32.16 kB / 468.3 MB, free: 3.621 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001423/0.4569, allocations: 203.8 kB / 468.5 MB, free: 3.527 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009468/0.4579, allocations: 385 kB / 468.9 MB, free: 3.297 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001012/0.458, allocations: 43.44 kB / 469 MB, free: 3.277 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000395/0.4584, allocations: 289.5 kB / 469.2 MB, free: 3.102 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4584, allocations: 0 / 469.2 MB, free: 3.102 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008975/0.4593, allocations: 250.5 kB / 469.5 MB, free: 3.059 MB / 366.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.005619/0.4649, allocations: 2.599 MB / 472.1 MB, free: 1.402 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002772/0.4677, allocations: 1.089 MB / 473.2 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.291e-06/0.4677, allocations: 0 / 473.2 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001674/0.4693, allocations: 0.7315 MB / 473.9 MB, free: 276 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001075/0.4704, allocations: 159.4 kB / 474.1 MB, free: 128 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01509/0.4855, allocations: 7.282 MB / 481.3 MB, free: 8.672 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007489/0.4863, allocations: 0.9441 MB / 482.3 MB, free: 7.699 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004355/0.4867, allocations: 77.7 kB / 482.4 MB, free: 7.621 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004606/0.4872, allocations: 275.3 kB / 482.6 MB, free: 7.352 MB / 382.1 MB Notification: Performance of SimCode: time 1.182e-06/0.4872, allocations: 0 / 482.6 MB, free: 7.352 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07135/0.5585, allocations: 24.16 MB / 0.4949 GB, free: 15.42 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.1/13.66, allocations: 7.922 kB / 0.4949 GB, free: 15.41 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.280638151802123] 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.820748900994658 13.841992666 13.449110658 Calling exit ...