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.0008668/0.0008668, allocations: 105.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.0009878/0.0009878, allocations: 212.1 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.9902/0.9902, allocations: 230.6 MB / 256 MB, free: 9.633 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.7638/0.7638, allocations: 150.8 MB / 463.2 MB, free: 6.48 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.001073/0.001073, allocations: 87.17 kB / 0.6392 GB, free: 32.66 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1577/0.1588, allocations: 88.07 MB / 0.7252 GB, free: 8.398 MB / 0.5417 GB Notification: Performance of NFInst.instantiate(ThermofluidStream.Idealized.Examples.Volumes.Reservoir): time 0.02943/0.1882, allocations: 35.48 MB / 0.7598 GB, free: 4.789 MB / 0.573 GB Notification: Performance of NFInst.instExpressions: time 0.01246/0.2007, allocations: 12.31 MB / 0.7718 GB, free: 8.438 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007108/0.2014, allocations: 31.69 kB / 0.7719 GB, free: 8.406 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.0009554/0.2024, allocations: 302 kB / 0.7722 GB, free: 8.109 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 0.001516/0.2039, allocations: 0.6211 MB / 0.7728 GB, free: 7.484 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.01204/0.2159, allocations: 5.393 MB / 0.778 GB, free: 2.094 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.001235/0.2172, allocations: 1.012 MB / 0.779 GB, free: 1.074 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001965/0.2174, allocations: 73.53 kB / 0.7791 GB, free: 1.004 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00535/0.2227, allocations: 3.774 MB / 0.7828 GB, free: 13.18 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003688/0.2231, allocations: 314.4 kB / 0.7831 GB, free: 12.87 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 5.693e-05/0.2231, allocations: 44 kB / 0.7831 GB, free: 12.82 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00987/0.233, allocations: 6.876 MB / 0.7898 GB, free: 5.941 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0002696/0.2333, allocations: 123.5 kB / 0.7899 GB, free: 5.82 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0004055/0.2337, allocations: 254.8 kB / 0.7902 GB, free: 5.57 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.01207/0.2458, allocations: 4.579 MB / 0.7947 GB, free: 0.9805 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 9.898e-06/0.2458, allocations: 0 / 0.7947 GB, free: 0.9805 MB / 0.6042 GB Notification: Performance of FrontEnd: time 3.507e-06/0.2458, allocations: 0 / 0.7947 GB, free: 0.9805 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 2.369e-05/0.2458, allocations: 0 / 0.7947 GB, free: 0.9805 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.003581/0.2494, allocations: 1.39 MB / 0.796 GB, free: 15.55 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.398e-05/0.2494, allocations: 8.031 kB / 0.796 GB, free: 15.55 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.126e-05/0.2495, allocations: 94.64 kB / 0.7961 GB, free: 15.45 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005308/0.25, allocations: 132.4 kB / 0.7962 GB, free: 15.32 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007078/0.2508, allocations: 443.6 kB / 0.7967 GB, free: 14.86 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.431e-05/0.2508, allocations: 37 kB / 0.7967 GB, free: 14.82 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.819e-05/0.2508, allocations: 48 kB / 0.7967 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001286/0.2521, allocations: 0.8014 MB / 0.7975 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.2521, allocations: 4 kB / 0.7975 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.368e-05/0.2522, allocations: 24 kB / 0.7976 GB, free: 13.87 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.2522, allocations: 12 kB / 0.7976 GB, free: 13.86 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007971/0.253, allocations: 475.5 kB / 0.798 GB, free: 13.39 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.002295/0.2553, allocations: 2.001 MB / 0.8 GB, free: 11.3 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006357/0.2559, allocations: 354.3 kB / 0.8003 GB, free: 10.95 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001774/0.2561, allocations: 132.8 kB / 0.8004 GB, free: 10.81 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01637/0.2725, allocations: 8.678 MB / 0.8089 GB, free: 2.125 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.418e-05/0.2725, allocations: 34.56 kB / 0.8089 GB, free: 2.082 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=35): time 2.775e-06/0.2725, allocations: 0 / 0.8089 GB, free: 2.082 MB / 0.6198 GB Notification: Performance of matching and sorting (n=40): time 0.002478/0.275, allocations: 1.121 MB / 0.81 GB, free: 0.9492 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.855e-05/0.275, allocations: 55.41 kB / 0.8101 GB, free: 0.8828 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004025/0.2754, allocations: 453.8 kB / 0.8105 GB, free: 440 kB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.814e-05/0.2755, allocations: 29.7 kB / 0.8106 GB, free: 404 kB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.000147/0.2756, allocations: 284.6 kB / 0.8108 GB, free: 112 kB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 8.324e-05/0.2757, allocations: 142.8 kB / 0.811 GB, free: 15.97 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.351e-05/0.2758, allocations: 86.08 kB / 0.811 GB, free: 15.88 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001125/0.2759, allocations: 362.8 kB / 0.8114 GB, free: 15.52 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000484/0.2764, allocations: 128.8 kB / 0.8115 GB, free: 15.39 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002149/0.2766, allocations: 231.5 kB / 0.8117 GB, free: 15.12 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004137/0.277, allocations: 382.5 kB / 0.8121 GB, free: 14.71 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.277, allocations: 3.938 kB / 0.8121 GB, free: 14.7 MB / 0.6355 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0007774/0.2778, allocations: 0.5724 MB / 0.8127 GB, free: 14.12 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.2778, allocations: 8.562 kB / 0.8127 GB, free: 14.11 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.2778, allocations: 4 kB / 0.8127 GB, free: 14.11 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004687/0.2783, allocations: 153.6 kB / 0.8128 GB, free: 13.95 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001694/0.2785, allocations: 72.09 kB / 0.8129 GB, free: 13.88 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007767/0.2792, allocations: 1.249 MB / 0.8141 GB, free: 12.58 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000171/0.2794, allocations: 12 kB / 0.8141 GB, free: 12.57 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.747e-05/0.2794, allocations: 23.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.0001937/0.2796, allocations: 181.8 kB / 0.8143 GB, free: 12.36 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.09e-05/0.2797, allocations: 55.67 kB / 0.8144 GB, free: 12.3 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001323/0.281, allocations: 1.474 MB / 0.8158 GB, free: 10.81 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.529e-05/0.281, allocations: 19.97 kB / 0.8158 GB, free: 10.79 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.281, allocations: 0 / 0.8158 GB, free: 10.79 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.281, allocations: 3.984 kB / 0.8158 GB, free: 10.79 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006555/0.2817, allocations: 0.7914 MB / 0.8166 GB, free: 9.945 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.2817, allocations: 0 / 0.8166 GB, free: 9.945 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001473/0.2818, allocations: 59.91 kB / 0.8167 GB, free: 9.887 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004068/0.2823, allocations: 303.7 kB / 0.817 GB, free: 9.586 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.932e-05/0.2823, allocations: 19.98 kB / 0.817 GB, free: 9.566 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001171/0.2835, allocations: 1.486 MB / 0.8184 GB, free: 8.027 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.2835, allocations: 0 / 0.8184 GB, free: 8.027 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001313/0.2848, allocations: 1.568 MB / 0.82 GB, free: 6.441 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001614/0.2849, allocations: 111.3 kB / 0.8201 GB, free: 6.332 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.9e-05/0.285, allocations: 15.89 kB / 0.8201 GB, free: 6.316 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001526/0.2851, allocations: 31.97 kB / 0.8201 GB, free: 6.285 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.567e-05/0.2852, allocations: 32 kB / 0.8201 GB, free: 6.254 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.218e-05/0.2852, allocations: 19.98 kB / 0.8202 GB, free: 6.234 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.0002678/0.2855, allocations: 346.8 kB / 0.8205 GB, free: 5.898 MB / 0.6355 GB Notification: Performance of sort global known variables: time 8.1e-08/0.2855, allocations: 0 / 0.8205 GB, free: 5.898 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.002775/0.2883, allocations: 1.026 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.005564/0.2938, allocations: 3.065 MB / 0.8245 GB, free: 1.777 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0008387/0.2947, allocations: 0.5379 MB / 0.825 GB, free: 1.238 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.2947, allocations: 4 kB / 0.825 GB, free: 1.234 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0004197/0.2951, allocations: 370.4 kB / 0.8254 GB, free: 0.875 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001161/0.2962, allocations: 218.2 kB / 0.8256 GB, free: 0.6719 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3105/0.6067, allocations: 5.45 MB / 0.8309 GB, free: 94.95 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002894/0.607, allocations: 347 kB / 0.8312 GB, free: 94.85 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0003349/0.6074, allocations: 129.1 kB / 0.8313 GB, free: 94.84 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002189/0.6076, allocations: 278.2 kB / 0.8316 GB, free: 94.63 MB / 0.6355 GB Notification: Performance of SimCode: time 1.433e-06/0.6076, allocations: 1.625 kB / 0.8316 GB, free: 94.63 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08029/0.6879, allocations: 49.46 MB / 0.8799 GB, free: 63.26 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.511/10.2, allocations: 15.86 kB / 0.8799 GB, free: 63.24 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 & /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.211299827322364] Failed to read output from testmodel.py, exit status != 0: 10.317433868534863 10.324126426 10.076717865 Calling exit ...