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.0008716/0.0008716, allocations: 101.5 kB / 18.95 MB, free: 1.184 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.0009741/0.0009741, allocations: 213.2 kB / 22.25 MB, free: 3.586 MB / 13.93 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 0.9807/0.9807, allocations: 230.6 MB / 256 MB, free: 9.617 MB / 202.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.748/0.748, allocations: 150.8 MB / 463.3 MB, free: 6.453 MB / 362.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 0.002027/0.002027, allocations: 87.84 kB / 0.6392 GB, free: 32.52 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1432/0.1453, allocations: 88.06 MB / 0.7252 GB, free: 8.402 MB / 0.5417 GB Notification: Performance of NFInst.instantiate(ThermofluidStream.Idealized.Examples.Volumes.Reservoir): time 0.02617/0.1714, allocations: 35.48 MB / 0.7598 GB, free: 4.789 MB / 0.573 GB Notification: Performance of NFInst.instExpressions: time 0.01021/0.1816, allocations: 12.32 MB / 0.7718 GB, free: 8.426 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003572/0.182, allocations: 31.69 kB / 0.7719 GB, free: 8.395 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.000674/0.1827, allocations: 298 kB / 0.7722 GB, free: 8.102 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 0.001021/0.1837, allocations: 0.6173 MB / 0.7728 GB, free: 7.48 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.00939/0.1931, allocations: 5.404 MB / 0.778 GB, free: 2.082 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0008514/0.1939, allocations: 1 MB / 0.779 GB, free: 1.074 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001585/0.1941, allocations: 81.52 kB / 0.7791 GB, free: 0.9961 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004823/0.1989, allocations: 3.763 MB / 0.7828 GB, free: 13.18 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003058/0.1992, allocations: 322.3 kB / 0.7831 GB, free: 12.86 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 4.858e-05/0.1993, allocations: 40 kB / 0.7831 GB, free: 12.82 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009357/0.2086, allocations: 6.876 MB / 0.7898 GB, free: 5.941 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001462/0.2088, allocations: 123.5 kB / 0.7899 GB, free: 5.82 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001956/0.209, allocations: 254.8 kB / 0.7902 GB, free: 5.57 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.006495/0.2155, allocations: 4.583 MB / 0.7947 GB, free: 0.9766 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.2155, allocations: 0 / 0.7947 GB, free: 0.9766 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.034e-06/0.2155, allocations: 0 / 0.7947 GB, free: 0.9766 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.015e-05/0.2155, allocations: 0 / 0.7947 GB, free: 0.9766 MB / 0.6042 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.002379/0.2179, allocations: 1.386 MB / 0.796 GB, free: 15.55 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.2179, allocations: 12.03 kB / 0.796 GB, free: 15.54 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.525e-05/0.218, allocations: 94.7 kB / 0.7961 GB, free: 15.44 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004684/0.2185, allocations: 128.5 kB / 0.7962 GB, free: 15.32 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006175/0.2191, allocations: 447.5 kB / 0.7967 GB, free: 14.85 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.44e-05/0.2191, allocations: 37 kB / 0.7967 GB, free: 14.82 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.606e-05/0.2192, allocations: 52 kB / 0.7968 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009641/0.2201, allocations: 0.8014 MB / 0.7975 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.2201, allocations: 0 / 0.7975 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.594e-05/0.2202, allocations: 24 kB / 0.7976 GB, free: 13.86 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.493e-05/0.2202, allocations: 12 kB / 0.7976 GB, free: 13.85 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007606/0.221, allocations: 479.5 kB / 0.798 GB, free: 13.38 MB / 0.6198 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.001952/0.2229, allocations: 1.989 MB / 0.8 GB, free: 11.3 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006273/0.2235, allocations: 358.3 kB / 0.8003 GB, free: 10.95 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000183/0.2237, allocations: 136.8 kB / 0.8004 GB, free: 10.81 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01631/0.24, allocations: 8.678 MB / 0.8089 GB, free: 2.121 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.327e-05/0.2401, allocations: 34.56 kB / 0.8089 GB, free: 2.078 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=35): time 1.984e-06/0.2401, allocations: 8 kB / 0.809 GB, free: 2.07 MB / 0.6198 GB Notification: Performance of matching and sorting (n=40): time 0.00233/0.2424, allocations: 1.121 MB / 0.8101 GB, free: 0.9375 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.064e-05/0.2424, allocations: 59.41 kB / 0.8101 GB, free: 0.8672 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003488/0.2428, allocations: 437.9 kB / 0.8105 GB, free: 440 kB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.62e-05/0.2428, allocations: 33.7 kB / 0.8106 GB, free: 400 kB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001344/0.2429, allocations: 280.5 kB / 0.8108 GB, free: 112 kB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 8.03e-05/0.243, allocations: 146.9 kB / 0.811 GB, free: 15.96 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.901e-05/0.2431, allocations: 90.06 kB / 0.8111 GB, free: 15.87 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001021/0.2432, allocations: 362.8 kB / 0.8114 GB, free: 15.5 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001817/0.2434, allocations: 124.8 kB / 0.8115 GB, free: 15.38 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002168/0.2436, allocations: 231.5 kB / 0.8117 GB, free: 15.11 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004133/0.244, allocations: 386.4 kB / 0.8121 GB, free: 14.7 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.244, allocations: 3.75 kB / 0.8121 GB, free: 14.7 MB / 0.6355 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0007679/0.2448, allocations: 0.5761 MB / 0.8127 GB, free: 14.11 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.2448, allocations: 4 kB / 0.8127 GB, free: 14.1 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-06/0.2448, allocations: 4 kB / 0.8127 GB, free: 14.1 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004668/0.2453, allocations: 154 kB / 0.8128 GB, free: 13.94 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001717/0.2455, allocations: 79.89 kB / 0.8129 GB, free: 13.86 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007425/0.2462, allocations: 1.241 MB / 0.8141 GB, free: 12.57 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001421/0.2463, allocations: 12 kB / 0.8141 GB, free: 12.56 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.458e-05/0.2464, allocations: 19.98 kB / 0.8141 GB, free: 12.54 MB / 0.6355 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.0001703/0.2465, allocations: 177.7 kB / 0.8143 GB, free: 12.36 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.784e-05/0.2466, allocations: 59.61 kB / 0.8144 GB, free: 12.3 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001388/0.248, allocations: 1.47 MB / 0.8158 GB, free: 10.81 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.555e-05/0.248, allocations: 23.97 kB / 0.8158 GB, free: 10.79 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.248, allocations: 0 / 0.8158 GB, free: 10.79 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.248, allocations: 7.984 kB / 0.8158 GB, free: 10.78 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006289/0.2486, allocations: 0.7913 MB / 0.8166 GB, free: 9.938 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.2486, allocations: 0 / 0.8166 GB, free: 9.938 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000149/0.2488, allocations: 59.91 kB / 0.8167 GB, free: 9.879 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003778/0.2492, allocations: 303.8 kB / 0.817 GB, free: 9.578 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.145e-05/0.2492, allocations: 8 kB / 0.817 GB, free: 9.57 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007919/0.25, allocations: 1.493 MB / 0.8184 GB, free: 8.023 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.25, allocations: 4.125 kB / 0.8184 GB, free: 8.02 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001345/0.2513, allocations: 1.564 MB / 0.82 GB, free: 6.438 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000132/0.2515, allocations: 115.3 kB / 0.8201 GB, free: 6.324 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.25e-05/0.2515, allocations: 15.89 kB / 0.8201 GB, free: 6.309 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001557/0.2517, allocations: 27.97 kB / 0.8201 GB, free: 6.281 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.897e-05/0.2517, allocations: 31.94 kB / 0.8201 GB, free: 6.25 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.391e-05/0.2517, allocations: 23.92 kB / 0.8202 GB, free: 6.227 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.0002648/0.252, allocations: 346.9 kB / 0.8205 GB, free: 5.891 MB / 0.6355 GB Notification: Performance of sort global known variables: time 7e-08/0.252, allocations: 0 / 0.8205 GB, free: 5.891 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.002065/0.2541, allocations: 1.018 MB / 0.8215 GB, free: 4.871 MB / 0.6355 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.00431/0.2584, allocations: 3.063 MB / 0.8245 GB, free: 1.773 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0007016/0.2591, allocations: 0.5377 MB / 0.825 GB, free: 1.234 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.2591, allocations: 0 / 0.825 GB, free: 1.234 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.000387/0.2595, allocations: 374.6 kB / 0.8254 GB, free: 0.8711 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000684/0.2601, allocations: 221.2 kB / 0.8256 GB, free: 0.668 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2859/0.546, allocations: 5.449 MB / 0.8309 GB, free: 94.83 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002403/0.5463, allocations: 347.9 kB / 0.8312 GB, free: 94.73 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.00029/0.5466, allocations: 123.4 kB / 0.8313 GB, free: 94.72 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000198/0.5468, allocations: 283.9 kB / 0.8316 GB, free: 94.51 MB / 0.6355 GB Notification: Performance of SimCode: time 1.262e-06/0.5468, allocations: 3.938 kB / 0.8316 GB, free: 94.5 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07222/0.619, allocations: 49.46 MB / 0.8799 GB, free: 63.06 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.719/10.34, allocations: 17.3 kB / 0.8799 GB, free: 63.04 MB / 0.6355 GB " [Timeout remaining time 650] (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: 13.41535690240562] Failed to read output from testmodel.py, exit status != 0: 10.455676259472966 10.461792284 10.24486136 Calling exit ...