Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo) Using package ObsoleteModelica4 with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|reservoir.M|reservoir.U_med|reservoir.m_flow_fore|reservoir.m_flow_rear|reservoir2.M|reservoir2.U_med|reservoir2.m_flow_in|reservoir2.m_flow_out",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") translateModel(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|reservoir.M|reservoir.U_med|reservoir.m_flow_fore|reservoir.m_flow_rear|reservoir2.M|reservoir2.U_med|reservoir2.m_flow_in|reservoir2.m_flow_out",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 172.5 kB / 7.647 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.491/1.491, allocations: 221.5 MB / 229.6 MB, free: 7.547 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 90 kB / 280.5 MB, free: 5.281 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo): time 0.01224/0.01224, allocations: 1.567 MB / 332.8 MB, free: 13.54 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.8692/0.8692, allocations: 90.03 MB / 474 MB, free: 13.03 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.854e-05/1.865e-05, allocations: 2.406 kB / 0.5375 GB, free: 33.12 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1726/0.1726, allocations: 69.37 MB / 0.6052 GB, free: 120 kB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.328/1.501, allocations: 456.6 MB / 1.051 GB, free: 101.8 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002895/1.501, allocations: 89.27 kB / 1.051 GB, free: 101.8 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 0.7525/2.254, allocations: 176.1 MB / 1.223 GB, free: 172.3 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.433e-06/2.254, allocations: 0 / 1.223 GB, free: 172.3 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 0.0001383/2.254, allocations: 24.61 kB / 1.223 GB, free: 172.3 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: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.004717/2.259, allocations: 1.452 MB / 1.225 GB, free: 171.4 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.395e-05/2.259, allocations: 9.969 kB / 1.225 GB, free: 171.4 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009629/2.26, allocations: 151.4 kB / 1.225 GB, free: 171.3 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00157/2.261, allocations: 0.5929 MB / 1.225 GB, free: 170.9 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.725e-05/2.262, allocations: 27.25 kB / 1.225 GB, free: 170.9 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002619/2.262, allocations: 59.03 kB / 1.225 GB, free: 170.9 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001746/2.264, allocations: 0.8858 MB / 1.226 GB, free: 170.6 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001861/2.265, allocations: 0.8878 MB / 1.227 GB, free: 170.2 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.577e-05/2.265, allocations: 0 / 1.227 GB, free: 170.2 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.639e-05/2.266, allocations: 10.77 kB / 1.227 GB, free: 170.2 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.259e-05/2.266, allocations: 21.28 kB / 1.227 GB, free: 170.2 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006681/2.272, allocations: 4.996 MB / 1.232 GB, free: 166.3 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001783/2.274, allocations: 1.073 MB / 1.233 GB, free: 165.7 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006119/2.275, allocations: 462.5 kB / 1.234 GB, free: 165.5 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003255/2.278, allocations: 2.763 MB / 1.236 GB, free: 162.9 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.433e-05/2.278, allocations: 46.94 kB / 1.236 GB, free: 162.8 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=115): time 2.886e-06/2.278, allocations: 0 / 1.236 GB, free: 162.8 MB / 0.6042 GB Notification: Performance of matching and sorting (n=129): time 0.009635/2.288, allocations: 3.615 MB / 1.24 GB, free: 160.7 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.073e-05/2.288, allocations: 89.33 kB / 1.24 GB, free: 160.6 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005264/2.288, allocations: 412.5 kB / 1.24 GB, free: 160.3 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 8.636e-05/2.288, allocations: 25.7 kB / 1.24 GB, free: 160.3 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002224/2.289, allocations: 391.3 kB / 1.241 GB, free: 159.9 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.000298/2.289, allocations: 430.7 kB / 1.241 GB, free: 159.6 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.412e-05/2.289, allocations: 6.562 kB / 1.241 GB, free: 159.6 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001381/2.289, allocations: 394.3 kB / 1.242 GB, free: 159.2 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005158/2.29, allocations: 358.8 kB / 1.242 GB, free: 159 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006093/2.29, allocations: 0.5074 MB / 1.242 GB, free: 158.7 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001523/2.292, allocations: 0.5516 MB / 1.243 GB, free: 158.4 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.522e-06/2.292, allocations: 3.984 kB / 1.243 GB, free: 158.4 MB / 0.6042 GB Notification: Performance of matching and sorting (n=150) (initialization): time 0.003088/2.295, allocations: 1.439 MB / 1.244 GB, free: 157.7 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/2.295, allocations: 7.906 kB / 1.244 GB, free: 157.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/2.295, allocations: 3.438 kB / 1.244 GB, free: 157.7 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008838/2.296, allocations: 291.8 kB / 1.245 GB, free: 157.5 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008629/2.297, allocations: 247.2 kB / 1.245 GB, free: 157.4 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006497/2.303, allocations: 10.77 MB / 1.255 GB, free: 146.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009418/2.304, allocations: 62.22 kB / 1.255 GB, free: 146.7 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001623/2.304, allocations: 42.7 kB / 1.255 GB, free: 146.6 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (127): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 2,(1,100.0%) 2,(2,100.0%) 5,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002762/2.305, allocations: 128.5 kB / 1.256 GB, free: 146.5 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002447/2.305, allocations: 94.81 kB / 1.256 GB, free: 146.4 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003852/2.309, allocations: 1.604 MB / 1.257 GB, free: 144.8 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.507e-05/2.309, allocations: 15.94 kB / 1.257 GB, free: 144.8 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.288e-05/2.309, allocations: 4 kB / 1.257 GB, free: 144.8 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.736e-05/2.309, allocations: 11.97 kB / 1.257 GB, free: 144.8 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005067/2.314, allocations: 2.736 MB / 1.26 GB, free: 142 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.226e-06/2.314, allocations: 0 / 1.26 GB, free: 142 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008736/2.315, allocations: 231.8 kB / 1.26 GB, free: 141.7 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000848/2.316, allocations: 294.7 kB / 1.26 GB, free: 141.4 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001196/2.316, allocations: 27.97 kB / 1.26 GB, free: 141.4 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006481/2.322, allocations: 10.78 MB / 1.271 GB, free: 129.7 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/2.322, allocations: 4.031 kB / 1.271 GB, free: 129.7 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004291/2.327, allocations: 2.224 MB / 1.273 GB, free: 127.4 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003382/2.327, allocations: 163.7 kB / 1.273 GB, free: 127.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00022/2.327, allocations: 8 kB / 1.273 GB, free: 127.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00102/2.328, allocations: 79.78 kB / 1.273 GB, free: 127.2 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002769/2.329, allocations: 109 kB / 1.274 GB, free: 127.1 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001278/2.329, allocations: 55.95 kB / 1.274 GB, free: 127 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0004406/2.329, allocations: 303 kB / 1.274 GB, free: 126.7 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.4e-07/2.329, allocations: 0 / 1.274 GB, free: 126.7 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.002121/2.331, allocations: 407.8 kB / 1.274 GB, free: 126.3 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (reservoir.M,reservoir.U_med,boundary_rear.fore.m_flow,boundary_fore.rear.m_flow,reservoir2.M,reservoir2.U_med,source1.outlet.m_flow,sink1.inlet.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(2,100.0%) 5,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007862/2.332, allocations: 357.6 kB / 1.275 GB, free: 126 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.002709/2.335, allocations: 1.974 MB / 1.277 GB, free: 123.9 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 6.222e-06/2.335, allocations: 0 / 1.277 GB, free: 123.9 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.001841/2.337, allocations: 1.543 MB / 1.278 GB, free: 122.3 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001448/2.338, allocations: 233.4 kB / 1.278 GB, free: 122.1 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00354/2.342, allocations: 1.874 MB / 1.28 GB, free: 120.2 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005763/2.342, allocations: 1.068 MB / 1.281 GB, free: 119.1 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0008964/2.343, allocations: 183.4 kB / 1.281 GB, free: 118.9 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002799/2.343, allocations: 95.39 kB / 1.281 GB, free: 118.9 MB / 0.6042 GB Notification: Performance of SimCode: time 9.32e-07/2.343, allocations: 0 / 1.281 GB, free: 118.9 MB / 0.6042 GB Notification: Performance of Templates: time 0.02921/2.373, allocations: 18.76 MB / 1.3 GB, free: 100.4 MB / 0.6042 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.sim & ./ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1)