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 (/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.001076/0.001076, allocations: 92 kB / 15.06 MB, free: 1.098 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.001524/0.001524, allocations: 172.7 kB / 15.95 MB, free: 208 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.529/1.529, allocations: 223.3 MB / 240 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8524/0.8524, allocations: 89.64 MB / 380.7 MB, free: 11.4 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003741/0.0003741, allocations: 8.438 kB / 460 MB, free: 24.42 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1569/0.1573, allocations: 68.83 MB / 0.5165 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.04475/0.2021, allocations: 38.33 MB / 0.5539 GB, free: 5.301 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00956/0.2117, allocations: 5.032 MB / 0.5588 GB, free: 256 kB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001685/0.2134, allocations: 11.94 kB / 0.5588 GB, free: 244 kB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001913/0.2154, allocations: 461.3 kB / 0.5592 GB, free: 15.78 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004384/0.2198, allocations: 1.169 MB / 0.5604 GB, free: 14.61 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003144/0.223, allocations: 0.6379 MB / 0.561 GB, free: 13.97 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003994/0.227, allocations: 2.237 MB / 0.5632 GB, free: 11.72 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006637/0.2276, allocations: 215.4 kB / 0.5634 GB, free: 11.5 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003464/0.2311, allocations: 1.015 MB / 0.5644 GB, free: 10.48 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001567/0.2327, allocations: 0.6729 MB / 0.5651 GB, free: 9.809 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003615/0.2331, allocations: 48 kB / 0.5651 GB, free: 9.762 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003274/0.2364, allocations: 0.5345 MB / 0.5656 GB, free: 9.227 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005871/0.237, allocations: 195 kB / 0.5658 GB, free: 9.035 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008944/0.2379, allocations: 241.1 kB / 0.566 GB, free: 8.793 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003135/0.241, allocations: 1.165 MB / 0.5672 GB, free: 7.625 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.824e-06/0.2411, allocations: 4 kB / 0.5672 GB, free: 7.621 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.567e-06/0.2411, allocations: 0 / 0.5672 GB, free: 7.621 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.233e-05/0.2412, allocations: 0 / 0.5672 GB, free: 7.621 MB / 446.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.003807/0.245, allocations: 1.344 MB / 0.5685 GB, free: 6.227 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.829e-05/0.245, allocations: 8.031 kB / 0.5685 GB, free: 6.219 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005911/0.2456, allocations: 142.4 kB / 0.5686 GB, free: 6.078 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001416/0.2471, allocations: 0.6133 MB / 0.5692 GB, free: 5.422 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.345e-05/0.2471, allocations: 70 kB / 0.5693 GB, free: 5.355 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002058/0.2474, allocations: 92 kB / 0.5694 GB, free: 5.266 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002189/0.2495, allocations: 1.081 MB / 0.5704 GB, free: 4.148 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.534e-05/0.2496, allocations: 4 kB / 0.5704 GB, free: 4.145 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.96e-05/0.2497, allocations: 40 kB / 0.5705 GB, free: 4.105 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.633e-05/0.2497, allocations: 24 kB / 0.5705 GB, free: 4.082 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002025/0.2518, allocations: 1.024 MB / 0.5715 GB, free: 3.062 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3343/0.5861, allocations: 4.755 MB / 0.5762 GB, free: 57.78 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002429/0.5886, allocations: 0.935 MB / 0.5771 GB, free: 57.72 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001123/0.5897, allocations: 0.4938 MB / 0.5775 GB, free: 57.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004554/0.5943, allocations: 3.511 MB / 0.581 GB, free: 54.96 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.215e-05/0.5944, allocations: 47.17 kB / 0.581 GB, free: 54.91 MB / 446.1 MB Notification: Performance of pre-optimization done (n=108): time 3.556e-06/0.5944, allocations: 0.7188 kB / 0.581 GB, free: 54.91 MB / 446.1 MB Notification: Performance of matching and sorting (n=122): time 0.009822/0.6042, allocations: 4.523 MB / 0.5854 GB, free: 52.59 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.534e-05/0.6043, allocations: 92.52 kB / 0.5855 GB, free: 52.49 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008481/0.6051, allocations: 0.6332 MB / 0.5861 GB, free: 52.21 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.964e-05/0.6052, allocations: 48.36 kB / 0.5862 GB, free: 52.16 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003329/0.6056, allocations: 416.1 kB / 0.5866 GB, free: 51.84 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004097/0.606, allocations: 422.4 kB / 0.587 GB, free: 51.51 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.511e-05/0.6061, allocations: 23.66 kB / 0.587 GB, free: 51.49 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.6062, allocations: 349.1 kB / 0.5873 GB, free: 51.17 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009271/0.6072, allocations: 430.1 kB / 0.5878 GB, free: 51.03 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00106/0.6083, allocations: 0.5879 MB / 0.5883 GB, free: 50.73 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009804/0.6092, allocations: 495.2 kB / 0.5888 GB, free: 50.53 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.571e-06/0.6093, allocations: 2.625 kB / 0.5888 GB, free: 50.53 MB / 446.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003376/0.6126, allocations: 1.522 MB / 0.5903 GB, free: 49.89 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.588e-05/0.6127, allocations: 7.078 kB / 0.5903 GB, free: 49.89 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/0.6127, allocations: 5.25 kB / 0.5903 GB, free: 49.89 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001112/0.6138, allocations: 311 kB / 0.5906 GB, free: 49.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009384/0.6148, allocations: 246.7 kB / 0.5908 GB, free: 49.75 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007474/0.6223, allocations: 11.24 MB / 0.6018 GB, free: 38.71 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001253/0.6236, allocations: 83.88 kB / 0.6019 GB, free: 38.69 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001412/0.6237, allocations: 49.41 kB / 0.6019 GB, free: 38.68 MB / 446.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.0005804/0.6243, allocations: 252.8 kB / 0.6022 GB, free: 38.47 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002376/0.6245, allocations: 99.56 kB / 0.6023 GB, free: 38.42 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003963/0.6285, allocations: 1.907 MB / 0.6041 GB, free: 37.54 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.215e-05/0.6285, allocations: 11.47 kB / 0.6042 GB, free: 37.54 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/0.6286, allocations: 3.609 kB / 0.6042 GB, free: 37.54 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.013e-05/0.6286, allocations: 7.984 kB / 0.6042 GB, free: 37.54 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005319/0.6339, allocations: 2.892 MB / 0.607 GB, free: 36.14 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.6339, allocations: 2 kB / 0.607 GB, free: 36.14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009426/0.6349, allocations: 228.3 kB / 0.6072 GB, free: 36.11 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001089/0.636, allocations: 316 kB / 0.6075 GB, free: 35.98 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.795e-05/0.6361, allocations: 44.98 kB / 0.6076 GB, free: 35.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006665/0.6428, allocations: 11.25 MB / 0.6185 GB, free: 24.78 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.6428, allocations: 2.469 kB / 0.6185 GB, free: 24.78 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004125/0.6469, allocations: 2.21 MB / 0.6207 GB, free: 23.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003574/0.6473, allocations: 188.7 kB / 0.6209 GB, free: 23.32 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001359/0.6475, allocations: 24.25 kB / 0.6209 GB, free: 23.31 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000731/0.6482, allocations: 93.28 kB / 0.621 GB, free: 23.27 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002419/0.6485, allocations: 111.2 kB / 0.6211 GB, free: 23.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.724e-05/0.6486, allocations: 45.19 kB / 0.6211 GB, free: 23.19 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005718/0.6491, allocations: 488.5 kB / 0.6216 GB, free: 22.91 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6491, allocations: 0 / 0.6216 GB, free: 22.91 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001642/0.6508, allocations: 441.6 kB / 0.622 GB, free: 22.84 MB / 446.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.0005937/0.6514, allocations: 422.8 kB / 0.6224 GB, free: 22.64 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003187/0.6546, allocations: 2.12 MB / 0.6245 GB, free: 21.14 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.6546, allocations: 1.172 kB / 0.6245 GB, free: 21.14 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00196/0.6566, allocations: 1.62 MB / 0.6261 GB, free: 19.87 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001669/0.6583, allocations: 323 kB / 0.6264 GB, free: 19.69 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003973/0.6622, allocations: 3.044 MB / 0.6294 GB, free: 17.62 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004722/0.6627, allocations: 1.06 MB / 0.6304 GB, free: 16.76 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0008852/0.6636, allocations: 220.6 kB / 0.6306 GB, free: 16.65 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002615/0.6639, allocations: 109 kB / 0.6307 GB, free: 16.62 MB / 446.1 MB Notification: Performance of SimCode: time 8.81e-07/0.6639, allocations: 0 / 0.6307 GB, free: 16.62 MB / 446.1 MB Notification: Performance of Templates: time 0.03351/0.6974, allocations: 22.28 MB / 0.6525 GB, free: 11.5 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)