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.001306/0.001306, allocations: 120.4 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.00139/0.00139, allocations: 208.9 kB / 21.46 MB, free: 1.625 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.524/1.524, allocations: 230.5 MB / 254.7 MB, free: 15.01 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.001903/0.001903, allocations: 63.91 kB / 373.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1106, allocations: 53.31 MB / 426.9 MB, free: 4.887 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.007004/0.1176, allocations: 4.486 MB / 431.4 MB, free: 388 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2176/0.3351, allocations: 1.583 MB / 432.9 MB, free: 7.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005786/0.3357, allocations: 15.31 kB / 433 MB, free: 7.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004773/0.3362, allocations: 135.1 kB / 433.1 MB, free: 7.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007591/0.3369, allocations: 275.9 kB / 433.4 MB, free: 7.434 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00107/0.338, allocations: 433.1 kB / 433.8 MB, free: 7.414 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001239/0.3392, allocations: 1.175 MB / 435 MB, free: 7.211 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003553/0.3396, allocations: 182.1 kB / 435.1 MB, free: 7.172 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009545/0.3406, allocations: 0.4943 MB / 435.6 MB, free: 7.102 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008966/0.3415, allocations: 0.5381 MB / 436.2 MB, free: 7.012 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002274/0.3417, allocations: 94.25 kB / 436.3 MB, free: 7.012 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004879/0.3422, allocations: 161.2 kB / 436.4 MB, free: 7.008 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002664/0.3424, allocations: 244.2 kB / 436.7 MB, free: 6.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005157/0.343, allocations: 467.2 kB / 437.1 MB, free: 6.641 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001767/0.3447, allocations: 1.128 MB / 438.2 MB, free: 6.238 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/0.3447, allocations: 4.797 kB / 438.2 MB, free: 6.234 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3447, allocations: 3.938 kB / 438.2 MB, free: 6.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.572e-05/0.3448, allocations: 1.062 kB / 438.2 MB, free: 6.23 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.003861/0.3486, allocations: 1.344 MB / 439.6 MB, free: 5.441 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.3487, allocations: 9.766 kB / 439.6 MB, free: 5.441 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001578/0.3488, allocations: 114.1 kB / 439.7 MB, free: 5.359 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005922/0.3494, allocations: 122.7 kB / 439.8 MB, free: 5.309 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008192/0.3502, allocations: 479.6 kB / 440.3 MB, free: 4.953 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.973e-05/0.3503, allocations: 56.28 kB / 440.4 MB, free: 4.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001555/0.3505, allocations: 74.8 kB / 440.4 MB, free: 4.902 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001834/0.3523, allocations: 0.8018 MB / 441.2 MB, free: 4.594 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.673e-05/0.3523, allocations: 6.297 kB / 441.2 MB, free: 4.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.377e-05/0.3524, allocations: 30.25 kB / 441.3 MB, free: 4.566 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.018e-05/0.3524, allocations: 16.28 kB / 441.3 MB, free: 4.566 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0021/0.3545, allocations: 0.8408 MB / 442.1 MB, free: 4.305 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00496/0.3595, allocations: 2.403 MB / 444.5 MB, free: 2.949 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001483/0.361, allocations: 0.692 MB / 445.2 MB, free: 2.652 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008964/0.3619, allocations: 414.7 kB / 445.6 MB, free: 2.492 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.773e-05/0.362, allocations: 17.92 kB / 445.6 MB, free: 2.484 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001157/0.3631, allocations: 0.5388 MB / 446.2 MB, free: 2.266 MB / 350.1 MB Notification: Performance of pre-optimization done (n=90): time 2.555e-06/0.3631, allocations: 0 / 446.2 MB, free: 2.266 MB / 350.1 MB Notification: Performance of matching and sorting (n=110): time 0.01103/0.3742, allocations: 4.165 MB / 450.3 MB, free: 280 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.597e-05/0.3742, allocations: 63.53 kB / 450.4 MB, free: 216 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006207/0.3748, allocations: 421.5 kB / 450.8 MB, free: 12 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001901/0.375, allocations: 57.56 kB / 450.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000309/0.3753, allocations: 287.3 kB / 451.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003983/0.3757, allocations: 389.4 kB / 451.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003836/0.3761, allocations: 192.2 kB / 451.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000221/0.3763, allocations: 376.5 kB / 452.1 MB, free: 14.99 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009924/0.3773, allocations: 418.1 kB / 452.5 MB, free: 14.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001051/0.3784, allocations: 0.5051 MB / 453 MB, free: 14.61 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001769/0.3801, allocations: 0.7467 MB / 453.8 MB, free: 14.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.329e-06/0.3801, allocations: 0 / 453.8 MB, free: 14.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003352/0.3835, allocations: 1.281 MB / 455 MB, free: 13.7 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.885e-05/0.3835, allocations: 14.36 kB / 455 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.287e-05/0.3835, allocations: 1.156 kB / 455 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0012/0.3847, allocations: 0.5348 MB / 455.6 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008007/0.3855, allocations: 193.1 kB / 455.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004677/0.3902, allocations: 3.411 MB / 459.2 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001452/0.3917, allocations: 171.1 kB / 459.3 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001035/0.3918, allocations: 41.95 kB / 459.4 MB, free: 10.18 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.0005082/0.3923, allocations: 221.4 kB / 459.6 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001819/0.3925, allocations: 85.34 kB / 459.7 MB, free: 9.953 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002499/0.3927, allocations: 110.5 kB / 459.8 MB, free: 9.852 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.15e-05/0.3927, allocations: 10.84 kB / 459.8 MB, free: 9.852 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.727e-05/0.3927, allocations: 0 / 459.8 MB, free: 9.852 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.341e-05/0.3928, allocations: 5.016 kB / 459.8 MB, free: 9.848 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005018/0.3978, allocations: 2.463 MB / 462.3 MB, free: 8.168 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/0.3978, allocations: 2.156 kB / 462.3 MB, free: 8.168 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008021/0.3986, allocations: 174.3 kB / 462.4 MB, free: 8.125 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001031/0.3996, allocations: 0.5045 MB / 463 MB, free: 7.863 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001072/0.3997, allocations: 40.73 kB / 463 MB, free: 7.832 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004217/0.4039, allocations: 3.185 MB / 466.2 MB, free: 4.906 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/0.4039, allocations: 5.031 kB / 466.2 MB, free: 4.906 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004176/0.4081, allocations: 1.761 MB / 467.9 MB, free: 3.891 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006428/0.4088, allocations: 240.1 kB / 468.2 MB, free: 3.672 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001759/0.4089, allocations: 36.59 kB / 468.2 MB, free: 3.648 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001317/0.4103, allocations: 199.1 kB / 468.4 MB, free: 3.559 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009616/0.4112, allocations: 385.6 kB / 468.8 MB, free: 3.328 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000106/0.4113, allocations: 43.12 kB / 468.8 MB, free: 3.309 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000433/0.4118, allocations: 293.3 kB / 469.1 MB, free: 3.125 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4118, allocations: 0 / 469.1 MB, free: 3.125 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009541/0.4127, allocations: 243.6 kB / 469.4 MB, free: 3.09 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.005512/0.4182, allocations: 2.602 MB / 472 MB, free: 1.441 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002884/0.4211, allocations: 1.092 MB / 473 MB, free: 0.875 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.4211, allocations: 0 / 473 MB, free: 0.875 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001741/0.4229, allocations: 0.7308 MB / 473.8 MB, free: 348 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001104/0.424, allocations: 152.3 kB / 473.9 MB, free: 204 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01626/0.4402, allocations: 7.277 MB / 481.2 MB, free: 8.754 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006921/0.4409, allocations: 0.9519 MB / 482.2 MB, free: 7.773 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005/0.4414, allocations: 81.7 kB / 482.2 MB, free: 7.691 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004393/0.4419, allocations: 267.3 kB / 482.5 MB, free: 7.43 MB / 382.1 MB Notification: Performance of SimCode: time 2.004e-06/0.4419, allocations: 0 / 482.5 MB, free: 7.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0666/0.5085, allocations: 24.17 MB / 0.4948 GB, free: 15.48 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.15/13.66, allocations: 14.69 kB / 0.4948 GB, free: 15.46 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.197141332086176] 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.820275747217238 13.842046393 13.493178522 Calling exit ...