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.001043/0.001043, allocations: 80.23 kB / 19.27 MB, free: 0.6055 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.00102/0.00102, allocations: 162 kB / 22.57 MB, free: 1.949 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.056/1.056, allocations: 177.1 MB / 202.9 MB, free: 5.703 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.8719/0.8719, allocations: 116 MB / 375.4 MB, free: 4.172 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 3.647e-06/3.647e-06, allocations: 0 / 0.5535 GB, free: 13.24 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 5.997e-05/6.362e-05, allocations: 4.703 kB / 0.5535 GB, free: 13.24 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Idealized.Examples.Volumes.Reservoir): time 0.04058/0.04064, allocations: 35.24 MB / 0.5879 GB, free: 9.863 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.0148/0.05544, allocations: 12.31 MB / 0.5999 GB, free: 13.51 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007819/0.05622, allocations: 31.69 kB / 0.6 GB, free: 13.48 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.001198/0.05742, allocations: 305.8 kB / 0.6002 GB, free: 13.18 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.00215/0.05957, allocations: 0.6478 MB / 0.6009 GB, free: 12.52 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.01765/0.07721, allocations: 5.455 MB / 0.6062 GB, free: 7.047 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.001721/0.07894, allocations: 1.039 MB / 0.6072 GB, free: 6 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002637/0.0792, allocations: 77.58 kB / 0.6073 GB, free: 5.922 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005971/0.08517, allocations: 3.927 MB / 0.6111 GB, free: 1.941 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005232/0.08569, allocations: 271.1 kB / 0.6114 GB, free: 1.676 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 7.62e-05/0.08577, allocations: 40 kB / 0.6114 GB, free: 1.637 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01434/0.1001, allocations: 6.898 MB / 0.6182 GB, free: 10.73 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0001945/0.1003, allocations: 115.5 kB / 0.6183 GB, free: 10.62 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0002679/0.1006, allocations: 215.5 kB / 0.6185 GB, free: 10.41 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.01568/0.1163, allocations: 5.671 MB / 0.624 GB, free: 4.723 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.109e-05/0.1163, allocations: 0 / 0.624 GB, free: 4.723 MB / 0.5417 GB Notification: Performance of FrontEnd: time 6.261e-06/0.1163, allocations: 0 / 0.624 GB, free: 4.723 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 3.002e-05/0.1163, allocations: 0 / 0.624 GB, free: 4.723 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.004382/0.1207, allocations: 1.382 MB / 0.6254 GB, free: 3.305 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.804e-05/0.1208, allocations: 8.031 kB / 0.6254 GB, free: 3.297 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.263e-05/0.1208, allocations: 90.7 kB / 0.6255 GB, free: 3.199 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005068/0.1214, allocations: 136.4 kB / 0.6256 GB, free: 3.066 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001366/0.1227, allocations: 480.1 kB / 0.626 GB, free: 2.57 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.56e-05/0.1228, allocations: 41.38 kB / 0.6261 GB, free: 2.527 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.208e-05/0.1228, allocations: 48.12 kB / 0.6261 GB, free: 2.48 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001094/0.1239, allocations: 0.8053 MB / 0.6269 GB, free: 1.594 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.124, allocations: 0 / 0.6269 GB, free: 1.594 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.977e-05/0.124, allocations: 20 kB / 0.6269 GB, free: 1.574 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.42e-05/0.124, allocations: 12 kB / 0.6269 GB, free: 1.562 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007419/0.1248, allocations: 479.5 kB / 0.6274 GB, free: 1.094 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.002374/0.1271, allocations: 2.005 MB / 0.6294 GB, free: 15 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006579/0.1278, allocations: 358 kB / 0.6297 GB, free: 14.64 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001981/0.128, allocations: 136.8 kB / 0.6298 GB, free: 14.51 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01601/0.144, allocations: 8.677 MB / 0.6383 GB, free: 5.824 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.057e-05/0.144, allocations: 46.48 kB / 0.6384 GB, free: 5.77 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=35): time 2.324e-06/0.144, allocations: 0 / 0.6384 GB, free: 5.77 MB / 0.5573 GB Notification: Performance of matching and sorting (n=40): time 0.002631/0.1467, allocations: 1.122 MB / 0.6394 GB, free: 4.637 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.795e-05/0.1467, allocations: 59.39 kB / 0.6395 GB, free: 4.566 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008483/0.1476, allocations: 430 kB / 0.6399 GB, free: 4.133 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 3.01e-05/0.1476, allocations: 33.7 kB / 0.6399 GB, free: 4.094 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001867/0.1478, allocations: 300.3 kB / 0.6402 GB, free: 3.797 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 8.655e-05/0.1479, allocations: 138.8 kB / 0.6404 GB, free: 3.66 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001249/0.148, allocations: 86.14 kB / 0.6404 GB, free: 3.57 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.000147/0.1481, allocations: 362.8 kB / 0.6408 GB, free: 3.207 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002054/0.1483, allocations: 128.9 kB / 0.6409 GB, free: 3.082 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002571/0.1486, allocations: 228.1 kB / 0.6411 GB, free: 2.816 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004422/0.149, allocations: 382.5 kB / 0.6415 GB, free: 2.402 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.125e-06/0.149, allocations: 4 kB / 0.6415 GB, free: 2.398 MB / 0.5573 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0007764/0.1498, allocations: 0.5609 MB / 0.6421 GB, free: 1.824 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 3.815e-05/0.1499, allocations: 15.94 kB / 0.6421 GB, free: 1.809 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/0.1499, allocations: 0 / 0.6421 GB, free: 1.809 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005241/0.1504, allocations: 153.5 kB / 0.6422 GB, free: 1.652 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001963/0.1506, allocations: 79.89 kB / 0.6423 GB, free: 1.574 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008486/0.1514, allocations: 1.237 MB / 0.6435 GB, free: 292 kB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001361/0.1516, allocations: 12.12 kB / 0.6435 GB, free: 280 kB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.112e-05/0.1516, allocations: 27.98 kB / 0.6435 GB, free: 252 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.0002077/0.1518, allocations: 181.8 kB / 0.6437 GB, free: 60 kB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.172e-05/0.1519, allocations: 55.62 kB / 0.6438 GB, free: 4 kB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4952/0.6471, allocations: 1.473 MB / 0.6452 GB, free: 94.58 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-05/0.6471, allocations: 24.09 kB / 0.6452 GB, free: 94.57 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.166e-05/0.6471, allocations: 0.8438 kB / 0.6452 GB, free: 94.57 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.558e-05/0.6471, allocations: 3.562 kB / 0.6452 GB, free: 94.57 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001339/0.6485, allocations: 0.7858 MB / 0.646 GB, free: 94.16 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.816e-06/0.6485, allocations: 2.203 kB / 0.646 GB, free: 94.16 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002435/0.6487, allocations: 59.8 kB / 0.6461 GB, free: 94.16 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009326/0.6496, allocations: 303.5 kB / 0.6463 GB, free: 94.08 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.483e-05/0.6497, allocations: 13.77 kB / 0.6464 GB, free: 94.07 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001049/0.6507, allocations: 1.488 MB / 0.6478 GB, free: 92.87 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.6507, allocations: 0.9062 kB / 0.6478 GB, free: 92.87 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002012/0.6528, allocations: 1.581 MB / 0.6494 GB, free: 92.14 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002642/0.653, allocations: 108.7 kB / 0.6495 GB, free: 92.11 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.437e-05/0.6531, allocations: 17 kB / 0.6495 GB, free: 92.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001825/0.6533, allocations: 32.81 kB / 0.6495 GB, free: 92.09 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/0.6534, allocations: 28.2 kB / 0.6495 GB, free: 92.09 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.978e-05/0.6534, allocations: 18.56 kB / 0.6495 GB, free: 92.09 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0003299/0.6537, allocations: 349.2 kB / 0.6499 GB, free: 91.92 MB / 0.5573 GB Notification: Performance of sort global known variables: time 6e-08/0.6537, allocations: 0 / 0.6499 GB, free: 91.92 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.004067/0.6578, allocations: 1.016 MB / 0.6509 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.005546/0.6633, allocations: 3.207 MB / 0.654 GB, free: 90.59 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0007792/0.6641, allocations: 0.5305 MB / 0.6545 GB, free: 90.42 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.6641, allocations: 0 / 0.6545 GB, free: 90.42 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0004269/0.6646, allocations: 375 kB / 0.6549 GB, free: 90.29 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007648/0.6653, allocations: 220.8 kB / 0.6551 GB, free: 90.24 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009714/0.675, allocations: 5.394 MB / 0.6604 GB, free: 87.3 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006272/0.6757, allocations: 344.9 kB / 0.6607 GB, free: 87.2 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0004387/0.6761, allocations: 123.5 kB / 0.6608 GB, free: 87.19 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002757/0.6764, allocations: 280.7 kB / 0.6611 GB, free: 86.97 MB / 0.5573 GB Notification: Performance of SimCode: time 2.625e-06/0.6764, allocations: 0 / 0.6611 GB, free: 86.97 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09875/0.7751, allocations: 49.73 MB / 0.7096 GB, free: 48.03 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.86/12.64, allocations: 0 / 0.7096 GB, free: 48.03 MB / 0.5573 GB " [Timeout remaining time 647] (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 & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.Idealized.Examples.Volumes.Reservoir_res.csv --start-time 0 --stop-time 100 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 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: 16.080452407710254] Failed to read output from testmodel.py, exit status != 0: 12.761538800783455 12.768234481 12.650068963 Calling exit ...