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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001556/0.001556, allocations: 99.47 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002207/0.002207, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.498/1.498, allocations: 223.2 MB / 239.9 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8381/0.8381, allocations: 89.61 MB / 380.6 MB, free: 11.45 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004062/0.0004065, allocations: 10.38 kB / 459.9 MB, free: 24.39 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1625/0.163, allocations: 68.82 MB / 0.5163 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.02918/0.1922, allocations: 27.48 MB / 0.5432 GB, free: 244 kB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.009326/0.2016, allocations: 5.4 MB / 0.5484 GB, free: 10.82 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001447/0.2031, allocations: 19.88 kB / 0.5485 GB, free: 10.8 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001521/0.2046, allocations: 445.7 kB / 0.5489 GB, free: 10.36 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004002/0.2086, allocations: 1.18 MB / 0.55 GB, free: 9.18 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002209/0.2108, allocations: 0.6622 MB / 0.5507 GB, free: 8.52 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.002445/0.2133, allocations: 1.275 MB / 0.5519 GB, free: 7.242 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004081/0.2137, allocations: 211.4 kB / 0.5521 GB, free: 7.023 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002114/0.2158, allocations: 0.8527 MB / 0.553 GB, free: 6.168 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007721/0.2166, allocations: 0.5524 MB / 0.5535 GB, free: 5.613 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001077/0.2167, allocations: 48 kB / 0.5535 GB, free: 5.566 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00224/0.219, allocations: 0.6556 MB / 0.5542 GB, free: 4.91 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002284/0.2192, allocations: 195.1 kB / 0.5544 GB, free: 4.719 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000351/0.2196, allocations: 237.1 kB / 0.5546 GB, free: 4.48 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001772/0.2214, allocations: 1.161 MB / 0.5557 GB, free: 3.316 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.2214, allocations: 0 / 0.5557 GB, free: 3.316 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.2214, allocations: 0 / 0.5557 GB, free: 3.316 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.876e-05/0.2214, allocations: 0 / 0.5557 GB, free: 3.316 MB / 430.1 MB 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.003074/0.2245, allocations: 1.348 MB / 0.557 GB, free: 1.918 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.2246, allocations: 8.031 kB / 0.5571 GB, free: 1.91 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003877/0.225, allocations: 134.5 kB / 0.5572 GB, free: 1.777 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00112/0.2261, allocations: 0.6172 MB / 0.5578 GB, free: 1.117 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.112e-05/0.2262, allocations: 78 kB / 0.5579 GB, free: 1.043 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001495/0.2263, allocations: 92 kB / 0.5579 GB, free: 0.9531 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001854/0.2282, allocations: 1.07 MB / 0.559 GB, free: 15.84 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.122e-05/0.2282, allocations: 0 / 0.559 GB, free: 15.84 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.174e-05/0.2283, allocations: 40 kB / 0.559 GB, free: 15.8 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.422e-05/0.2283, allocations: 20 kB / 0.559 GB, free: 15.79 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001787/0.2301, allocations: 1.028 MB / 0.5601 GB, free: 14.76 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006186/0.2363, allocations: 4.864 MB / 0.5648 GB, free: 9.461 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001744/0.2381, allocations: 0.9469 MB / 0.5657 GB, free: 8.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004917/0.243, allocations: 3.59 MB / 0.5692 GB, free: 4.492 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.027e-05/0.2431, allocations: 51.08 kB / 0.5693 GB, free: 4.434 MB / 446.1 MB Notification: Performance of pre-optimization done (n=108): time 3.166e-06/0.2431, allocations: 0 / 0.5693 GB, free: 4.434 MB / 446.1 MB Notification: Performance of matching and sorting (n=122): time 0.01017/0.2533, allocations: 4.506 MB / 0.5737 GB, free: 15.72 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.276e-05/0.2534, allocations: 90.2 kB / 0.5738 GB, free: 15.61 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009142/0.2543, allocations: 0.6335 MB / 0.5744 GB, free: 14.97 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 8.466e-05/0.2544, allocations: 49.64 kB / 0.5744 GB, free: 14.91 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004081/0.2548, allocations: 420.7 kB / 0.5748 GB, free: 14.5 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003859/0.2552, allocations: 421.8 kB / 0.5752 GB, free: 14.08 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.475e-05/0.2553, allocations: 23.94 kB / 0.5753 GB, free: 14.05 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.2554, allocations: 349.9 kB / 0.5756 GB, free: 13.71 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009213/0.2564, allocations: 430.4 kB / 0.576 GB, free: 13.29 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009542/0.2573, allocations: 0.5818 MB / 0.5766 GB, free: 12.66 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009307/0.2583, allocations: 497.3 kB / 0.577 GB, free: 12.17 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.391e-06/0.2583, allocations: 4 kB / 0.5771 GB, free: 12.17 MB / 462.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003425/0.2617, allocations: 1.519 MB / 0.5785 GB, free: 10.61 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.2617, allocations: 4 kB / 0.5785 GB, free: 10.61 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.2618, allocations: 4.438 kB / 0.5785 GB, free: 10.61 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001067/0.2628, allocations: 318.5 kB / 0.5788 GB, free: 10.27 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001013/0.2639, allocations: 243.7 kB / 0.5791 GB, free: 10.03 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2934/0.5573, allocations: 11.31 MB / 0.5901 GB, free: 68.74 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001125/0.5584, allocations: 83.97 kB / 0.5902 GB, free: 68.74 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001243/0.5586, allocations: 46.41 kB / 0.5902 GB, free: 68.74 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (124): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0004791/0.559, allocations: 252.8 kB / 0.5905 GB, free: 68.62 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002012/0.5593, allocations: 100.5 kB / 0.5906 GB, free: 68.62 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004683/0.5639, allocations: 1.914 MB / 0.5924 GB, free: 68.42 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.7e-05/0.564, allocations: 12.94 kB / 0.5925 GB, free: 68.42 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.308e-05/0.564, allocations: 3.406 kB / 0.5925 GB, free: 68.42 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-05/0.564, allocations: 7.078 kB / 0.5925 GB, free: 68.42 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00569/0.5697, allocations: 2.931 MB / 0.5953 GB, free: 67.79 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.917e-06/0.5698, allocations: 0.875 kB / 0.5953 GB, free: 67.79 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001013/0.5708, allocations: 224.7 kB / 0.5955 GB, free: 67.77 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00123/0.572, allocations: 325.1 kB / 0.5959 GB, free: 67.64 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001167/0.5722, allocations: 36.67 kB / 0.5959 GB, free: 67.63 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008192/0.5804, allocations: 11.33 MB / 0.607 GB, free: 56.64 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/0.5804, allocations: 1.938 kB / 0.607 GB, free: 56.64 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005006/0.5854, allocations: 2.27 MB / 0.6092 GB, free: 55.52 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004506/0.5859, allocations: 195 kB / 0.6094 GB, free: 55.36 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001468/0.5861, allocations: 28 kB / 0.6094 GB, free: 55.34 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008373/0.5869, allocations: 92.59 kB / 0.6095 GB, free: 55.32 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003196/0.5873, allocations: 104.9 kB / 0.6096 GB, free: 55.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.994e-05/0.5874, allocations: 45.73 kB / 0.6096 GB, free: 55.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0006843/0.5881, allocations: 483.6 kB / 0.6101 GB, free: 55.08 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.5881, allocations: 0 / 0.6101 GB, free: 55.08 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002028/0.5901, allocations: 450.6 kB / 0.6105 GB, free: 55.02 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (reservoir.M,reservoir.U_med,flowResistance1.rear.m_flow,flowResistance2.rear.m_flow,reservoir2.M,reservoir2.U_med,flowResistance4.inlet.m_flow,flowResistance5.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 (104): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0008452/0.591, allocations: 417.6 kB / 0.6109 GB, free: 54.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004599/0.5956, allocations: 2.118 MB / 0.613 GB, free: 53.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.066e-05/0.5956, allocations: 3.938 kB / 0.613 GB, free: 53.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00247/0.5981, allocations: 1.622 MB / 0.6146 GB, free: 52.45 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001806/0.5999, allocations: 293.9 kB / 0.6148 GB, free: 52.38 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005261/0.6052, allocations: 3.054 MB / 0.6178 GB, free: 50.59 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006791/0.6059, allocations: 1.077 MB / 0.6189 GB, free: 49.86 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00113/0.607, allocations: 225.5 kB / 0.6191 GB, free: 49.78 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003205/0.6074, allocations: 105.3 kB / 0.6192 GB, free: 49.77 MB / 462.1 MB Notification: Performance of SimCode: time 6.02e-07/0.6074, allocations: 0 / 0.6192 GB, free: 49.77 MB / 462.1 MB Notification: Performance of Templates: time 0.03311/0.6405, allocations: 22.13 MB / 0.6408 GB, free: 37.08 MB / 462.1 MB 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)