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.001558/0.001558, allocations: 109.4 kB / 19.8 MB, free: 2.5 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.001801/0.001801, allocations: 217.8 kB / 23 MB, free: 5.578 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.461/1.461, allocations: 230.5 MB / 256.5 MB, free: 8.23 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.001849/0.001849, allocations: 67.88 kB / 376.2 MB, free: 4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3147/0.3166, allocations: 53.32 MB / 429.5 MB, free: 7.402 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006419/0.323, allocations: 4.519 MB / 434 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00313/0.3261, allocations: 1.586 MB / 435.6 MB, free: 1.277 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004254/0.3266, allocations: 11.94 kB / 435.6 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004416/0.327, allocations: 134.7 kB / 435.8 MB, free: 1.133 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006323/0.3276, allocations: 285.7 kB / 436 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001001/0.3286, allocations: 423.2 kB / 436.5 MB, free: 448 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001212/0.3299, allocations: 1.166 MB / 437.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000354/0.3302, allocations: 193.8 kB / 437.8 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007032/0.3309, allocations: 0.4985 MB / 438.3 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006633/0.3316, allocations: 0.5332 MB / 438.9 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001459/0.3317, allocations: 99.98 kB / 438.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003291/0.332, allocations: 163.9 kB / 439.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002727/0.3323, allocations: 243.2 kB / 439.3 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004505/0.3328, allocations: 457.9 kB / 439.8 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001263/0.334, allocations: 1.137 MB / 440.9 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.334, allocations: 0 / 440.9 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.334, allocations: 0 / 440.9 MB, free: 11.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.474e-05/0.3341, allocations: 0 / 440.9 MB, free: 11.95 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.003285/0.3373, allocations: 1.344 MB / 442.3 MB, free: 10.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.3374, allocations: 12.03 kB / 442.3 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001557/0.3375, allocations: 114.6 kB / 442.4 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000543/0.3381, allocations: 124.3 kB / 442.5 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007107/0.3388, allocations: 473.9 kB / 443 MB, free: 9.793 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.033e-05/0.3389, allocations: 54.38 kB / 443 MB, free: 9.742 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001446/0.339, allocations: 75.92 kB / 443.1 MB, free: 9.668 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001662/0.3407, allocations: 0.7959 MB / 443.9 MB, free: 8.863 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.129e-05/0.3407, allocations: 11.89 kB / 443.9 MB, free: 8.852 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.197e-05/0.3408, allocations: 31.98 kB / 443.9 MB, free: 8.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.764e-05/0.3408, allocations: 19.94 kB / 444 MB, free: 8.801 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002021/0.3428, allocations: 0.8432 MB / 444.8 MB, free: 7.957 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004578/0.3474, allocations: 2.404 MB / 447.2 MB, free: 5.418 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001509/0.3489, allocations: 0.6929 MB / 447.9 MB, free: 4.711 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009376/0.3498, allocations: 412.3 kB / 448.3 MB, free: 4.305 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.571e-05/0.3499, allocations: 16.94 kB / 448.3 MB, free: 4.285 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001169/0.3511, allocations: 0.54 MB / 448.9 MB, free: 3.734 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 2.495e-06/0.3511, allocations: 0 / 448.9 MB, free: 3.734 MB / 350.1 MB Notification: Performance of matching and sorting (n=110): time 0.01139/0.3625, allocations: 4.17 MB / 453 MB, free: 15.44 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.014e-05/0.3626, allocations: 60.41 kB / 453.1 MB, free: 15.37 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005367/0.3631, allocations: 429.8 kB / 453.5 MB, free: 14.94 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.773e-05/0.3632, allocations: 53.7 kB / 453.6 MB, free: 14.88 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002473/0.3634, allocations: 285.5 kB / 453.8 MB, free: 14.6 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003722/0.3638, allocations: 392.8 kB / 454.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003571/0.3642, allocations: 190.8 kB / 454.4 MB, free: 14.02 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002039/0.3644, allocations: 374.8 kB / 454.8 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009822/0.3654, allocations: 418.4 kB / 455.2 MB, free: 13.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001067/0.3664, allocations: 0.511 MB / 455.7 MB, free: 12.7 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001672/0.3681, allocations: 0.744 MB / 456.4 MB, free: 11.94 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.3681, allocations: 0 / 456.4 MB, free: 11.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003206/0.3713, allocations: 1.28 MB / 457.7 MB, free: 10.64 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.722e-05/0.3713, allocations: 7.984 kB / 457.7 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.3714, allocations: 4 kB / 457.7 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001216/0.3726, allocations: 0.5372 MB / 458.3 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008141/0.3734, allocations: 191.8 kB / 458.5 MB, free: 9.898 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004628/0.378, allocations: 3.407 MB / 461.9 MB, free: 6.301 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001249/0.3793, allocations: 175.9 kB / 462 MB, free: 6.129 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.92e-05/0.3793, allocations: 35.98 kB / 462.1 MB, free: 6.094 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.0004341/0.3798, allocations: 225.7 kB / 462.3 MB, free: 5.867 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000163/0.3799, allocations: 83.47 kB / 462.4 MB, free: 5.785 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002488/0.3802, allocations: 107.2 kB / 462.5 MB, free: 5.676 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.646e-06/0.3802, allocations: 8 kB / 462.5 MB, free: 5.668 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/0.3802, allocations: 128 / 462.5 MB, free: 5.668 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/0.3802, allocations: 11.98 kB / 462.5 MB, free: 5.656 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004798/0.385, allocations: 2.461 MB / 465 MB, free: 3.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.385, allocations: 4 kB / 465 MB, free: 3.086 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008013/0.3858, allocations: 180 kB / 465.1 MB, free: 2.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001051/0.3869, allocations: 0.502 MB / 465.6 MB, free: 2.398 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.22e-05/0.387, allocations: 39.95 kB / 465.7 MB, free: 2.359 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004094/0.3911, allocations: 3.18 MB / 468.9 MB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.96e-06/0.3911, allocations: 4 kB / 468.9 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003883/0.395, allocations: 1.757 MB / 470.6 MB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004492/0.3954, allocations: 240.8 kB / 470.9 MB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001518/0.3956, allocations: 35.98 kB / 470.9 MB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001288/0.3968, allocations: 199.7 kB / 471.1 MB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009869/0.3978, allocations: 384.3 kB / 471.5 MB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.185e-05/0.3979, allocations: 47.97 kB / 471.5 MB, free: 12.28 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003871/0.3983, allocations: 287.1 kB / 471.8 MB, free: 11.99 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3983, allocations: 0 / 471.8 MB, free: 11.99 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008726/0.3992, allocations: 243.9 kB / 472 MB, free: 11.75 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.005605/0.4048, allocations: 2.604 MB / 474.6 MB, free: 9.246 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002792/0.4076, allocations: 1.094 MB / 475.7 MB, free: 8.137 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.67e-06/0.4076, allocations: 0 / 475.7 MB, free: 8.137 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0017/0.4093, allocations: 0.7273 MB / 476.5 MB, free: 7.395 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009778/0.4103, allocations: 145.8 kB / 476.6 MB, free: 7.254 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01544/0.4257, allocations: 7.293 MB / 483.9 MB, free: 15.78 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006298/0.4263, allocations: 0.948 MB / 484.8 MB, free: 14.8 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003944/0.4267, allocations: 81.7 kB / 484.9 MB, free: 14.72 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004234/0.4271, allocations: 267.3 kB / 485.2 MB, free: 14.46 MB / 398.1 MB Notification: Performance of SimCode: time 6.71e-07/0.4271, allocations: 0 / 485.2 MB, free: 14.46 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06392/0.4911, allocations: 24.5 MB / 0.4977 GB, free: 6.113 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.86/13.36, allocations: 2.578 kB / 0.4977 GB, free: 6.113 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 --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: 15.794150754984003] 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.51123343600193 13.528612372 13.190880882 Calling exit ...