Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001979/0.001979, allocations: 115.9 kB / 17.73 MB, free: 5.336 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002194/0.002194, allocations: 185.3 kB / 20.68 MB, free: 2.402 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 222.9 MB / 246.4 MB, free: 4.207 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001563/0.001563, allocations: 51.92 kB / 357.5 MB, free: 8.828 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1134, allocations: 49.43 MB / 406.9 MB, free: 7.352 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006178/0.1196, allocations: 4.296 MB / 411.2 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003074/0.1227, allocations: 1.387 MB / 412.6 MB, free: 1.637 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003889/0.1231, allocations: 8 kB / 412.6 MB, free: 1.629 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003881/0.1235, allocations: 114.8 kB / 412.7 MB, free: 1.516 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004533/0.124, allocations: 226 kB / 412.9 MB, free: 1.293 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001124/0.1251, allocations: 442.9 kB / 413.4 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001215/0.1264, allocations: 1.127 MB / 414.5 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004163/0.1268, allocations: 253.6 kB / 414.8 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006775/0.1275, allocations: 482.5 kB / 415.2 MB, free: 15 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006491/0.1281, allocations: 0.5176 MB / 415.7 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001496/0.1283, allocations: 92 kB / 415.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003304/0.1286, allocations: 147.9 kB / 416 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002627/0.1289, allocations: 231.3 kB / 416.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004786/0.1294, allocations: 441.9 kB / 416.6 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001329/0.1307, allocations: 1.07 MB / 417.7 MB, free: 12.51 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1307, allocations: 0 / 417.7 MB, free: 12.51 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.418e-06/0.1308, allocations: 3.938 kB / 417.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.349e-05/0.1308, allocations: 3.938 kB / 417.7 MB, free: 12.5 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.003498/0.1343, allocations: 1.301 MB / 419 MB, free: 11.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.1343, allocations: 8.031 kB / 419 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001627/0.1345, allocations: 114.6 kB / 419.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002498/0.1348, allocations: 92.38 kB / 419.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007337/0.1355, allocations: 446 kB / 419.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.678e-05/0.1356, allocations: 58.38 kB / 419.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001349/0.1357, allocations: 68.33 kB / 419.8 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00175/0.1375, allocations: 0.8036 MB / 420.6 MB, free: 9.523 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.864e-05/0.1375, allocations: 23.92 kB / 420.6 MB, free: 9.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.555e-05/0.1377, allocations: 28 kB / 420.6 MB, free: 9.473 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.798e-05/0.1377, allocations: 16 kB / 420.7 MB, free: 9.457 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002057/0.1397, allocations: 0.8627 MB / 421.5 MB, free: 8.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004412/0.1442, allocations: 2.381 MB / 423.9 MB, free: 6.082 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001584/0.1458, allocations: 0.7112 MB / 424.6 MB, free: 5.359 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009984/0.1468, allocations: 472.2 kB / 425.1 MB, free: 4.898 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.983e-05/0.1469, allocations: 9 kB / 425.1 MB, free: 4.887 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00121/0.1481, allocations: 0.5594 MB / 425.6 MB, free: 4.316 MB / 350.1 MB Notification: Performance of pre-optimization done (n=86): time 3.186e-06/0.1481, allocations: 0 / 425.6 MB, free: 4.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.1923/0.3405, allocations: 4.225 MB / 429.9 MB, free: 22.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.544e-05/0.3405, allocations: 62.16 kB / 429.9 MB, free: 22.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000446/0.341, allocations: 390.3 kB / 430.3 MB, free: 22.31 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000206/0.3412, allocations: 58.11 kB / 430.4 MB, free: 22.28 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000156/0.3414, allocations: 269.6 kB / 430.6 MB, free: 22.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002591/0.3416, allocations: 379.2 kB / 431 MB, free: 22.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002737/0.3419, allocations: 192.5 kB / 431.2 MB, free: 22.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.568e-05/0.342, allocations: 373.3 kB / 431.5 MB, free: 21.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009229/0.3429, allocations: 438.7 kB / 432 MB, free: 21.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000983/0.3439, allocations: 0.5296 MB / 432.5 MB, free: 21.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001625/0.3455, allocations: 0.7838 MB / 433.3 MB, free: 21.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.626e-06/0.3456, allocations: 2.625 kB / 433.3 MB, free: 21.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003098/0.3487, allocations: 1.353 MB / 434.6 MB, free: 21.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.237e-05/0.3487, allocations: 11.09 kB / 434.7 MB, free: 21.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.3487, allocations: 1.562 kB / 434.7 MB, free: 21.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001321/0.3501, allocations: 0.6509 MB / 435.3 MB, free: 21.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008523/0.3509, allocations: 202.3 kB / 435.5 MB, free: 21.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00365/0.3546, allocations: 3.432 MB / 438.9 MB, free: 18.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001262/0.3559, allocations: 177.8 kB / 439.1 MB, free: 18.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.217e-05/0.356, allocations: 35.02 kB / 439.1 MB, free: 18.88 MB / 350.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,7), (1,5), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003498/0.3563, allocations: 224.9 kB / 439.4 MB, free: 18.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001492/0.3565, allocations: 83.47 kB / 439.4 MB, free: 18.72 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000192/0.3567, allocations: 102.5 kB / 439.5 MB, free: 18.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.09e-05/0.3567, allocations: 12.28 kB / 439.6 MB, free: 18.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.3567, allocations: 1.125 kB / 439.6 MB, free: 18.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.232e-05/0.3567, allocations: 4.875 kB / 439.6 MB, free: 18.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004394/0.3611, allocations: 2.501 MB / 442.1 MB, free: 18.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.555e-06/0.3612, allocations: 3.391 kB / 442.1 MB, free: 18.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007608/0.3619, allocations: 181.6 kB / 442.2 MB, free: 18.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001031/0.363, allocations: 0.6201 MB / 442.9 MB, free: 18.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001026/0.3631, allocations: 39.81 kB / 442.9 MB, free: 18.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00325/0.3663, allocations: 3.215 MB / 446.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/0.3664, allocations: 2.312 kB / 446.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004451/0.3708, allocations: 1.857 MB / 448 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005133/0.3714, allocations: 234.4 kB / 448.2 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001391/0.3715, allocations: 32.56 kB / 448.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001378/0.3729, allocations: 201.2 kB / 448.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001015/0.3739, allocations: 382.2 kB / 448.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001045/0.3741, allocations: 41.33 kB / 448.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003259/0.3744, allocations: 274.6 kB / 449.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3744, allocations: 0 / 449.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009062/0.3753, allocations: 245.7 kB / 449.4 MB, free: 14.75 MB / 350.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 (89): * Single equations (assignments): 86 * 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,6), (1,6), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004286/0.3796, allocations: 2.454 MB / 451.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00269/0.3823, allocations: 1.198 MB / 453 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.3824, allocations: 1.188 kB / 453 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001645/0.384, allocations: 0.7838 MB / 453.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009623/0.385, allocations: 131.7 kB / 453.9 MB, free: 12.47 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01283/0.3978, allocations: 7.36 MB / 461.3 MB, free: 8.602 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003654/0.3982, allocations: 0.9315 MB / 462.2 MB, free: 7.84 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004118/0.3987, allocations: 78.69 kB / 462.3 MB, free: 7.801 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003428/0.399, allocations: 252.7 kB / 462.5 MB, free: 7.602 MB / 350.1 MB Notification: Performance of SimCode: time 1.663e-06/0.399, allocations: 0 / 462.5 MB, free: 7.602 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06002/0.459, allocations: 23.65 MB / 486.2 MB, free: 1.293 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.9/13.36, allocations: 7.047 kB / 486.2 MB, free: 1.289 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_HeatLosses_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_HeatLosses.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.817182103870437] 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.461447559995577 13.475766644 13.342339082 Calling exit ...