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.001822/0.001822, 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.002206/0.002206, allocations: 169.9 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.023/1.023, allocations: 177.1 MB / 202.8 MB, free: 5.742 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.8224/0.8224, allocations: 116 MB / 375.2 MB, free: 4.191 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.357e-06/3.357e-06, allocations: 0 / 0.5532 GB, free: 13.34 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.716e-05/5.052e-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.03321/0.03327, allocations: 35.26 MB / 0.5877 GB, free: 9.953 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.01918/0.05245, allocations: 12.32 MB / 0.5997 GB, free: 13.59 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009946/0.05344, allocations: 31.69 kB / 0.5997 GB, free: 13.56 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.001613/0.05506, allocations: 313.8 kB / 0.6 GB, free: 13.25 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.002511/0.05757, allocations: 0.6439 MB / 0.6007 GB, free: 12.61 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.02131/0.07888, allocations: 5.463 MB / 0.606 GB, free: 7.145 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.00298/0.08186, allocations: 1.043 MB / 0.607 GB, free: 6.094 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000422/0.08228, allocations: 77.56 kB / 0.6071 GB, free: 6.016 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00804/0.09032, allocations: 3.919 MB / 0.6109 GB, free: 2.043 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008655/0.09118, allocations: 279.1 kB / 0.6112 GB, free: 1.77 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 0.0001254/0.09131, allocations: 44 kB / 0.6112 GB, free: 1.727 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01629/0.1076, allocations: 6.883 MB / 0.6179 GB, free: 10.84 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0004943/0.1081, allocations: 123.4 kB / 0.6181 GB, free: 10.71 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0005728/0.1087, allocations: 219.5 kB / 0.6183 GB, free: 10.5 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.01967/0.1283, allocations: 5.667 MB / 0.6238 GB, free: 4.82 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.1283, allocations: 4 kB / 0.6238 GB, free: 4.816 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.326e-06/0.1283, allocations: 0 / 0.6238 GB, free: 4.816 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 2.198e-05/0.1284, allocations: 0 / 0.6238 GB, free: 4.816 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.005996/0.1344, allocations: 1.382 MB / 0.6252 GB, free: 3.398 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 0.00014/0.1345, allocations: 12.03 kB / 0.6252 GB, free: 3.387 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001115/0.1346, allocations: 86.7 kB / 0.6253 GB, free: 3.293 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006796/0.1353, allocations: 136.4 kB / 0.6254 GB, free: 3.16 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001301/0.1366, allocations: 443 kB / 0.6258 GB, free: 2.699 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.586e-05/0.1367, allocations: 37.38 kB / 0.6258 GB, free: 2.66 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.852e-05/0.1367, allocations: 52.12 kB / 0.6259 GB, free: 2.609 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001372/0.1381, allocations: 0.8014 MB / 0.6267 GB, free: 1.727 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.1381, allocations: 0 / 0.6267 GB, free: 1.727 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.892e-05/0.1382, allocations: 20 kB / 0.6267 GB, free: 1.707 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.523e-05/0.1382, allocations: 12 kB / 0.6267 GB, free: 1.695 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009811/0.1392, 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.003846/0.143, allocations: 1.994 MB / 0.6291 GB, free: 15.15 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009402/0.1439, allocations: 363.4 kB / 0.6294 GB, free: 14.79 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002146/0.1442, allocations: 136.7 kB / 0.6296 GB, free: 14.65 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01943/0.1636, allocations: 8.658 MB / 0.638 GB, free: 5.984 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.243e-05/0.1636, allocations: 38.56 kB / 0.6381 GB, free: 5.938 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=35): time 7.133e-06/0.1636, allocations: 0 / 0.6381 GB, free: 5.938 MB / 0.5573 GB Notification: Performance of matching and sorting (n=40): time 0.003503/0.1671, allocations: 1.133 MB / 0.6392 GB, free: 4.793 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.055e-05/0.1672, allocations: 55.41 kB / 0.6392 GB, free: 4.727 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006453/0.1679, allocations: 434 kB / 0.6396 GB, free: 4.289 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 6.038e-05/0.1679, allocations: 37.7 kB / 0.6397 GB, free: 4.246 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000218/0.1681, allocations: 284.4 kB / 0.64 GB, free: 3.965 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.1683, allocations: 142.8 kB / 0.6401 GB, free: 3.824 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.1684, allocations: 90.14 kB / 0.6402 GB, free: 3.73 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001903/0.1686, allocations: 362.8 kB / 0.6405 GB, free: 3.367 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002291/0.1688, allocations: 128.9 kB / 0.6406 GB, free: 3.242 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000278/0.1691, allocations: 232 kB / 0.6409 GB, free: 2.973 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004662/0.1695, allocations: 382.5 kB / 0.6412 GB, free: 2.559 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.1695, allocations: 0 / 0.6412 GB, free: 2.559 MB / 0.5573 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001739/0.1713, allocations: 0.5687 MB / 0.6418 GB, free: 1.977 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 5.501e-05/0.1713, allocations: 15.97 kB / 0.6418 GB, free: 1.961 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.273e-05/0.1714, allocations: 4 kB / 0.6418 GB, free: 1.957 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000618/0.172, allocations: 141.6 kB / 0.6419 GB, free: 1.812 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00023/0.1722, allocations: 75.91 kB / 0.642 GB, free: 1.738 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001198/0.1734, allocations: 1.241 MB / 0.6432 GB, free: 456 kB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003328/0.1737, allocations: 20.02 kB / 0.6432 GB, free: 436 kB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.634e-05/0.1738, allocations: 20 kB / 0.6433 GB, free: 416 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.0002744/0.1741, allocations: 178.5 kB / 0.6434 GB, free: 228 kB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.777e-05/0.1741, allocations: 63.61 kB / 0.6435 GB, free: 164 kB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5524/0.7265, allocations: 1.469 MB / 0.6449 GB, free: 94.71 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-05/0.7266, allocations: 17.91 kB / 0.6449 GB, free: 94.71 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/0.7266, allocations: 1.5 kB / 0.6449 GB, free: 94.71 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.989e-06/0.7266, allocations: 3.672 kB / 0.6449 GB, free: 94.71 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001601/0.7282, allocations: 0.7878 MB / 0.6457 GB, free: 94.29 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.304e-05/0.7282, allocations: 1.031 kB / 0.6457 GB, free: 94.29 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002832/0.7285, allocations: 66.58 kB / 0.6458 GB, free: 94.29 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007359/0.7292, allocations: 304.6 kB / 0.6461 GB, free: 94.21 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.709e-05/0.7292, allocations: 9.172 kB / 0.6461 GB, free: 94.21 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001136/0.7304, allocations: 1.488 MB / 0.6475 GB, free: 93 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.7304, allocations: 1.5 kB / 0.6475 GB, free: 93 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002296/0.7327, allocations: 1.58 MB / 0.6491 GB, free: 92.27 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000248/0.7329, allocations: 113.5 kB / 0.6492 GB, free: 92.25 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.034e-05/0.733, allocations: 18.02 kB / 0.6492 GB, free: 92.24 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001684/0.7331, allocations: 29.19 kB / 0.6492 GB, free: 92.23 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.016e-05/0.7332, allocations: 30.7 kB / 0.6493 GB, free: 92.23 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.012e-05/0.7333, allocations: 24.28 kB / 0.6493 GB, free: 92.22 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0004701/0.7337, allocations: 351.4 kB / 0.6496 GB, free: 92.06 MB / 0.5573 GB Notification: Performance of sort global known variables: time 6e-08/0.7337, allocations: 0 / 0.6496 GB, free: 92.06 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.004187/0.7379, allocations: 1.017 MB / 0.6506 GB, free: 92.01 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.007424/0.7453, allocations: 3.191 MB / 0.6537 GB, free: 90.68 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001208/0.7465, allocations: 0.5302 MB / 0.6542 GB, free: 90.52 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.295e-06/0.7466, allocations: 6.438 kB / 0.6543 GB, free: 90.52 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0004805/0.747, allocations: 373.8 kB / 0.6546 GB, free: 90.39 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001212/0.7482, allocations: 217.9 kB / 0.6548 GB, free: 90.34 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01139/0.7596, allocations: 5.397 MB / 0.6601 GB, free: 87.39 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000638/0.7603, allocations: 345 kB / 0.6604 GB, free: 87.29 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.000817/0.7611, allocations: 124.9 kB / 0.6605 GB, free: 87.29 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003903/0.7615, allocations: 280.8 kB / 0.6608 GB, free: 87.07 MB / 0.5573 GB Notification: Performance of SimCode: time 2.625e-06/0.7615, allocations: 2.219 kB / 0.6608 GB, free: 87.07 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.124/0.8855, allocations: 49.72 MB / 0.7094 GB, free: 48.19 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/12.46, allocations: 2.844 kB / 0.7094 GB, free: 48.19 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: 15.975712027400732] Failed to read output from testmodel.py, exit status != 0: 12.583692624233663 12.593425435 12.462908756 Calling exit ...