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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-main/package.mo", uses=false) Using package ThermofluidStream with version 0.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-main/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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 3.2.3+maint.om/package.mo): time 0.001054/0.001054, allocations: 171.5 kB / 16.12 MB, free: 5.551 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.854/1.854, allocations: 205.4 MB / 222.3 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008214/0.0008213, allocations: 82.38 kB / 270.6 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-main/package.mo): time 0.8965/0.8965, allocations: 89.59 MB / 408.5 MB, free: 4.5 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003682/0.0003683, allocations: 16.22 kB / 485.2 MB, free: 7.648 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3726/0.373, allocations: 66 MB / 0.5382 GB, free: 34.5 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.26/1.633, allocations: 454.9 MB / 0.9825 GB, free: 173 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003948/1.633, allocations: 96.44 kB / 0.9826 GB, free: 172.9 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.711/2.344, allocations: 172.4 MB / 1.151 GB, free: 146.3 MB / 0.5886 GB Notification: Performance of FrontEnd: time 4.298e-06/2.344, allocations: 3.391 kB / 1.151 GB, free: 146.3 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 0.0001323/2.344, allocations: 29.17 kB / 1.151 GB, free: 146.3 MB / 0.5886 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.004725/2.349, allocations: 1.526 MB / 1.152 GB, free: 145.7 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 6.655e-05/2.349, allocations: 10.2 kB / 1.152 GB, free: 145.7 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008082/2.35, allocations: 154.6 kB / 1.153 GB, free: 145.7 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001662/2.352, allocations: 0.6144 MB / 1.153 GB, free: 145.4 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001099/2.352, allocations: 68.62 kB / 1.153 GB, free: 145.4 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002344/2.352, allocations: 100.1 kB / 1.153 GB, free: 145.4 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002727/2.355, allocations: 1.065 MB / 1.154 GB, free: 145.3 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.941e-05/2.355, allocations: 3.688 kB / 1.154 GB, free: 145.3 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001094/2.355, allocations: 44.58 kB / 1.154 GB, free: 145.3 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.381e-05/2.355, allocations: 25.55 kB / 1.154 GB, free: 145.3 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002553/2.358, allocations: 1.028 MB / 1.155 GB, free: 145.3 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007512/2.365, allocations: 5.087 MB / 1.16 GB, free: 142.4 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002567/2.368, allocations: 1.177 MB / 1.162 GB, free: 142.4 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001282/2.369, allocations: 0.5264 MB / 1.162 GB, free: 142.3 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00401/2.373, allocations: 2.717 MB / 1.165 GB, free: 140.4 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.658e-05/2.373, allocations: 50.42 kB / 1.165 GB, free: 140.3 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=115): time 3.737e-06/2.373, allocations: 2.969 kB / 1.165 GB, free: 140.3 MB / 0.5886 GB Notification: Performance of matching and sorting (n=129): time 0.01163/2.385, allocations: 4.812 MB / 1.17 GB, free: 138.9 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.208e-05/2.385, allocations: 97.33 kB / 1.17 GB, free: 138.8 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009019/2.386, allocations: 0.5344 MB / 1.17 GB, free: 138.7 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0001033/2.386, allocations: 49.83 kB / 1.17 GB, free: 138.7 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003342/2.386, allocations: 386.7 kB / 1.171 GB, free: 138.5 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.000448/2.387, allocations: 450.3 kB / 1.171 GB, free: 138.2 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.087e-05/2.387, allocations: 24.81 kB / 1.171 GB, free: 138.2 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001917/2.387, allocations: 397.3 kB / 1.171 GB, free: 137.9 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009154/2.388, allocations: 461.6 kB / 1.172 GB, free: 137.9 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000996/2.389, allocations: 0.6169 MB / 1.172 GB, free: 137.8 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002288/2.391, allocations: 1.13 MB / 1.174 GB, free: 137.7 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/2.391, allocations: 3.969 kB / 1.174 GB, free: 137.7 MB / 0.5886 GB Notification: Performance of matching and sorting (n=150) (initialization): time 0.004578/2.396, allocations: 1.565 MB / 1.175 GB, free: 137.5 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 4.132e-05/2.396, allocations: 6.906 kB / 1.175 GB, free: 137.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.956e-05/2.396, allocations: 3.906 kB / 1.175 GB, free: 137.5 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001309/2.397, allocations: 306.9 kB / 1.175 GB, free: 137.4 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00122/2.398, allocations: 246.8 kB / 1.176 GB, free: 137.4 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007498/2.406, allocations: 11.21 MB / 1.187 GB, free: 127.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001488/2.408, allocations: 93.84 kB / 1.187 GB, free: 127.3 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001171/2.408, allocations: 47.48 kB / 1.187 GB, free: 127.3 MB / 0.5886 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 () * Number of clocked 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.0006619/2.408, allocations: 243.8 kB / 1.187 GB, free: 127.2 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002066/2.409, allocations: 89.28 kB / 1.187 GB, free: 127.1 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003612/2.412, allocations: 1.745 MB / 1.189 GB, free: 127 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.276e-05/2.412, allocations: 17.72 kB / 1.189 GB, free: 127 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/2.412, allocations: 4.906 kB / 1.189 GB, free: 127 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.9e-05/2.412, allocations: 7.359 kB / 1.189 GB, free: 127 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005285/2.418, allocations: 2.949 MB / 1.192 GB, free: 126.4 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.739e-06/2.418, allocations: 0 / 1.192 GB, free: 126.4 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008627/2.418, allocations: 236.9 kB / 1.192 GB, free: 126.4 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009579/2.419, allocations: 313 kB / 1.192 GB, free: 126.4 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.438e-05/2.42, allocations: 49.3 kB / 1.192 GB, free: 126.4 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008269/2.428, allocations: 11.21 MB / 1.203 GB, free: 116.3 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/2.428, allocations: 0 / 1.203 GB, free: 116.3 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004631/2.432, allocations: 2.385 MB / 1.205 GB, free: 115.9 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000439/2.433, allocations: 167.4 kB / 1.206 GB, free: 115.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000135/2.433, allocations: 34.47 kB / 1.206 GB, free: 115.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007915/2.434, allocations: 97.86 kB / 1.206 GB, free: 115.7 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003172/2.434, allocations: 114.2 kB / 1.206 GB, free: 115.7 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.911e-05/2.434, allocations: 48.84 kB / 1.206 GB, free: 115.7 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0005177/2.435, allocations: 371.2 kB / 1.206 GB, free: 115.6 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.81e-07/2.435, allocations: 3.844 kB / 1.206 GB, free: 115.6 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.001952/2.437, allocations: 431.6 kB / 1.207 GB, free: 115.6 MB / 0.5886 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 () * Number of clocked 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.00076/2.438, allocations: 382.7 kB / 1.207 GB, free: 115.5 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.003601/2.441, allocations: 2.246 MB / 1.209 GB, free: 114.5 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/2.441, allocations: 0 / 1.209 GB, free: 114.5 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002247/2.443, allocations: 1.71 MB / 1.211 GB, free: 113.6 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001784/2.445, allocations: 277.8 kB / 1.211 GB, free: 113.6 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004509/2.45, allocations: 2.957 MB / 1.214 GB, free: 112.4 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006303/2.45, allocations: 1.042 MB / 1.215 GB, free: 111.7 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0008948/2.451, allocations: 189 kB / 1.215 GB, free: 111.7 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002379/2.452, allocations: 98.52 kB / 1.215 GB, free: 111.7 MB / 0.5886 GB Notification: Performance of SimCode: time 1.283e-06/2.452, allocations: 3.938 kB / 1.215 GB, free: 111.7 MB / 0.5886 GB Notification: Performance of Templates: time 0.03491/2.487, allocations: 20.49 MB / 1.235 GB, free: 110.8 MB / 0.5886 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)