Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Idealized.Examples.Volumes.Reservoir.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009264/0.0009264, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.042/1.042, allocations: 177.1 MB / 202.8 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.7585/0.7585, allocations: 116 MB / 375.2 MB, free: 4.188 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Idealized.Examples.Volumes.Reservoir,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Idealized_Examples_Volumes_Reservoir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Idealized.Examples.Volumes.Reservoir,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Idealized_Examples_Volumes_Reservoir",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 0.5532 GB, free: 13.34 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.147e-05/2.272e-05, allocations: 2.281 kB / 0.5532 GB, free: 13.34 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Idealized.Examples.Volumes.Reservoir): time 0.02789/0.02791, allocations: 35.25 MB / 0.5877 GB, free: 9.961 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.01145/0.03937, allocations: 12.31 MB / 0.5997 GB, free: 13.61 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003166/0.03968, allocations: 31.69 kB / 0.5997 GB, free: 13.57 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0007624/0.04044, allocations: 309.8 kB / 0.6 GB, free: 13.27 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.001345/0.04179, allocations: 0.6516 MB / 0.6007 GB, free: 12.61 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.01173/0.05352, allocations: 5.459 MB / 0.606 GB, free: 7.156 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0009427/0.05447, allocations: 1.043 MB / 0.607 GB, free: 6.105 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001575/0.05462, allocations: 81.52 kB / 0.6071 GB, free: 6.023 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004488/0.05911, allocations: 3.919 MB / 0.6109 GB, free: 2.051 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002451/0.05936, allocations: 267.1 kB / 0.6112 GB, free: 1.789 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 7.902e-05/0.05944, allocations: 44 kB / 0.6112 GB, free: 1.746 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008285/0.06772, allocations: 6.887 MB / 0.6179 GB, free: 10.85 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0001051/0.06783, allocations: 119.5 kB / 0.618 GB, free: 10.73 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0001465/0.06797, allocations: 219.5 kB / 0.6183 GB, free: 10.52 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.005381/0.07335, allocations: 5.675 MB / 0.6238 GB, free: 4.832 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.07336, allocations: 0 / 0.6238 GB, free: 4.832 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.833e-06/0.07336, allocations: 4 kB / 0.6238 GB, free: 4.828 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 8.295e-06/0.07337, allocations: 0 / 0.6238 GB, free: 4.828 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.002088/0.07546, allocations: 1.378 MB / 0.6251 GB, free: 3.414 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.862e-05/0.0755, allocations: 11.97 kB / 0.6252 GB, free: 3.402 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.775e-05/0.07557, allocations: 90.7 kB / 0.6252 GB, free: 3.305 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003722/0.07594, allocations: 132.5 kB / 0.6254 GB, free: 3.176 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005809/0.07652, allocations: 439 kB / 0.6258 GB, free: 2.719 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.912e-05/0.07656, allocations: 41.38 kB / 0.6258 GB, free: 2.676 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.692e-05/0.07662, allocations: 56.11 kB / 0.6259 GB, free: 2.621 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008776/0.0775, allocations: 0.8092 MB / 0.6267 GB, free: 1.73 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.07751, allocations: 4 kB / 0.6267 GB, free: 1.727 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.135e-05/0.07754, allocations: 20 kB / 0.6267 GB, free: 1.707 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.07755, allocations: 12 kB / 0.6267 GB, free: 1.695 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007199/0.07827, allocations: 475.5 kB / 0.6272 GB, free: 1.23 MB / 0.5417 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002219/0.08049, allocations: 1.99 MB / 0.6291 GB, free: 15.15 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005777/0.08107, allocations: 359.3 kB / 0.6294 GB, free: 14.79 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001656/0.08124, allocations: 132.8 kB / 0.6296 GB, free: 14.66 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01478/0.09602, allocations: 8.666 MB / 0.638 GB, free: 5.988 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.704e-05/0.09605, allocations: 38.56 kB / 0.6381 GB, free: 5.941 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=35): time 1.773e-06/0.09605, allocations: 0 / 0.6381 GB, free: 5.941 MB / 0.5573 GB Notification: Performance of matching and sorting (n=40): time 0.002331/0.09838, allocations: 1.133 MB / 0.6392 GB, free: 4.797 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.389e-05/0.09845, allocations: 55.41 kB / 0.6392 GB, free: 4.73 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004295/0.09888, allocations: 434 kB / 0.6396 GB, free: 4.293 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 2.506e-05/0.09891, allocations: 33.7 kB / 0.6397 GB, free: 4.254 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001567/0.09906, allocations: 292.4 kB / 0.64 GB, free: 3.965 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 7.144e-05/0.09913, allocations: 138.8 kB / 0.6401 GB, free: 3.828 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.201e-05/0.09923, allocations: 86.14 kB / 0.6402 GB, free: 3.738 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 9.786e-05/0.09932, allocations: 358.8 kB / 0.6405 GB, free: 3.379 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001731/0.0995, allocations: 132.9 kB / 0.6406 GB, free: 3.25 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002067/0.0997, allocations: 220.1 kB / 0.6409 GB, free: 2.992 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004091/0.1001, allocations: 390.5 kB / 0.6412 GB, free: 2.57 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1001, allocations: 0 / 0.6412 GB, free: 2.57 MB / 0.5573 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0007386/0.1009, allocations: 0.5683 MB / 0.6418 GB, free: 1.988 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.1009, allocations: 7.938 kB / 0.6418 GB, free: 1.98 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.1009, allocations: 4 kB / 0.6418 GB, free: 1.977 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004711/0.1013, allocations: 158 kB / 0.6419 GB, free: 1.816 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001535/0.1015, allocations: 75.91 kB / 0.642 GB, free: 1.742 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009361/0.1024, allocations: 1.234 MB / 0.6432 GB, free: 468 kB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001252/0.1026, allocations: 19.98 kB / 0.6432 GB, free: 448 kB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.275e-05/0.1026, allocations: 16 kB / 0.6433 GB, free: 432 kB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 4 (reservoir.medium.phase,massFlowRate.outlet.state.phase,isenthalpic.outlet.state.phase,source.outlet.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(2,4), (2,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001908/0.1028, allocations: 186.1 kB / 0.6434 GB, free: 240 kB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.894e-05/0.1028, allocations: 59.62 kB / 0.6435 GB, free: 180 kB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3382/0.441, allocations: 1.478 MB / 0.6449 GB, free: 94.57 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.416e-05/0.441, allocations: 21.06 kB / 0.6449 GB, free: 94.57 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.441, allocations: 0 / 0.6449 GB, free: 94.57 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/0.4411, allocations: 2.391 kB / 0.645 GB, free: 94.57 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001054/0.4421, allocations: 0.7874 MB / 0.6457 GB, free: 94.16 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.845e-06/0.4421, allocations: 1.344 kB / 0.6457 GB, free: 94.16 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002046/0.4423, allocations: 65.39 kB / 0.6458 GB, free: 94.15 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006778/0.443, allocations: 299.4 kB / 0.6461 GB, free: 94.07 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.192e-05/0.443, allocations: 11.95 kB / 0.6461 GB, free: 94.07 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001091/0.4441, allocations: 1.49 MB / 0.6475 GB, free: 92.87 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.4441, allocations: 0 / 0.6475 GB, free: 92.87 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001907/0.446, allocations: 1.582 MB / 0.6491 GB, free: 92.14 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001914/0.4462, allocations: 116.5 kB / 0.6492 GB, free: 92.11 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.954e-05/0.4463, allocations: 18.69 kB / 0.6492 GB, free: 92.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001653/0.4464, allocations: 28.55 kB / 0.6492 GB, free: 92.09 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.385e-05/0.4465, allocations: 32.91 kB / 0.6493 GB, free: 92.09 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.648e-05/0.4465, allocations: 22.38 kB / 0.6493 GB, free: 92.09 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0003566/0.4469, allocations: 346.4 kB / 0.6496 GB, free: 91.92 MB / 0.5573 GB Notification: Performance of sort global known variables: time 8e-08/0.4469, allocations: 0 / 0.6496 GB, free: 91.92 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.003257/0.4501, allocations: 1.018 MB / 0.6506 GB, free: 91.87 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (reservoir.M,reservoir.U_med) * Number of discrete variables: 9 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,reservoir.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(2,4), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005657/0.4558, allocations: 3.187 MB / 0.6537 GB, free: 90.61 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0009141/0.4567, allocations: 0.5333 MB / 0.6542 GB, free: 90.43 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.218e-06/0.4567, allocations: 0 / 0.6542 GB, free: 90.43 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0004644/0.4572, allocations: 373.3 kB / 0.6546 GB, free: 90.3 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001079/0.4583, allocations: 224.2 kB / 0.6548 GB, free: 90.26 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009273/0.4675, allocations: 5.392 MB / 0.6601 GB, free: 87.32 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005584/0.4681, allocations: 347.1 kB / 0.6604 GB, free: 87.21 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0004373/0.4685, allocations: 131.4 kB / 0.6605 GB, free: 87.21 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004674/0.469, allocations: 281.9 kB / 0.6608 GB, free: 86.99 MB / 0.5573 GB Notification: Performance of SimCode: time 2.054e-06/0.469, allocations: 0 / 0.6608 GB, free: 86.99 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08584/0.5549, allocations: 49.71 MB / 0.7093 GB, free: 48.15 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.37/10.92, allocations: 3.094 kB / 0.7094 GB, free: 48.15 MB / 0.5573 GB " [Timeout remaining time 649] (rm -f ThermofluidStream_dev_ThermofluidStream.Idealized.Examples.Volumes.Reservoir.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Idealized.Examples.Volumes.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Idealized.Examples.Volumes.Reservoir.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Idealized.Examples.Volumes.Reservoir.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Idealized.Examples.Volumes.Reservoir_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Idealized_Examples_Volumes_Reservoir_fmu --startTime=0 --stopTime=100 --stepSize=0.1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Idealized_Examples_Volumes_Reservoir.fmu > ThermofluidStream_dev_ThermofluidStream.Idealized.Examples.Volumes.Reservoir.pipe 2>&1) [Timeout 1260.0] [Calling os._exit(0), Time elapsed: 13.947609237395227] Failed to read output from testmodel.py, exit status != 0: 11.038244252093136 11.045754086 10.970910873 Calling exit ...