Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.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.0009065/0.0009065, allocations: 92.2 kB / 20.19 MB, free: 4.363 MB / 18.57 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.0009361/0.0009361, allocations: 173 kB / 23.49 MB, free: 1.059 MB / 18.57 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.9563/0.9563, allocations: 177.1 MB / 203.8 MB, free: 5.637 MB / 186.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.6846/0.6846, allocations: 118.6 MB / 378.9 MB, free: 1.492 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.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: translateModel(ThermofluidStream.Topology.Tests.TestJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|junctionN.outlet.m_flow|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction") translateModel(ThermofluidStream.Topology.Tests.TestJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|junctionN.outlet.m_flow|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.382e-06/1.382e-06, allocations: 0 / 483.6 MB, free: 8.312 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.346e-05/2.485e-05, allocations: 7.469 kB / 483.6 MB, free: 8.305 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.1231/0.1232, allocations: 139 MB / 0.608 GB, free: 5.578 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.003103/0.1263, allocations: 3.872 MB / 0.6118 GB, free: 1.695 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002944/0.1265, allocations: 43.62 kB / 0.6118 GB, free: 1.652 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0005489/0.1271, allocations: 190.6 kB / 0.612 GB, free: 1.465 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.0006428/0.1277, allocations: 377.6 kB / 0.6124 GB, free: 1.094 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008375/0.1286, allocations: 450 kB / 0.6128 GB, free: 0.6523 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0007492/0.1293, allocations: 0.8177 MB / 0.6136 GB, free: 15.83 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001782/0.1295, allocations: 75.58 kB / 0.6137 GB, free: 15.75 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007064/0.1302, allocations: 0.5139 MB / 0.6142 GB, free: 15.24 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004052/0.1306, allocations: 355.2 kB / 0.6145 GB, free: 14.89 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 4.004e-05/0.1307, allocations: 32 kB / 0.6146 GB, free: 14.86 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005269/0.1312, allocations: 383.2 kB / 0.6149 GB, free: 14.48 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 9.36e-05/0.1313, allocations: 115.5 kB / 0.615 GB, free: 14.37 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0001312/0.1314, allocations: 147.6 kB / 0.6152 GB, free: 14.23 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.0006612/0.1321, allocations: 0.58 MB / 0.6157 GB, free: 13.64 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.1321, allocations: 4 kB / 0.6157 GB, free: 13.64 MB / 0.5417 GB Notification: Performance of FrontEnd: time 9.82e-07/0.1321, allocations: 0 / 0.6157 GB, free: 13.64 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 7.264e-06/0.1321, allocations: 0 / 0.6157 GB, free: 13.64 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.001074/0.1332, allocations: 0.8883 MB / 0.6166 GB, free: 12.71 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.1332, allocations: 12.03 kB / 0.6166 GB, free: 12.7 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001065/0.1333, allocations: 72.61 kB / 0.6167 GB, free: 12.63 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005411/0.1338, allocations: 478.2 kB / 0.6171 GB, free: 12.14 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.987e-05/0.1339, allocations: 20.81 kB / 0.6172 GB, free: 12.11 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.382e-05/0.1339, allocations: 24.38 kB / 0.6172 GB, free: 12.09 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003545/0.1343, allocations: 289.3 kB / 0.6175 GB, free: 11.79 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.563e-05/0.1343, allocations: 3.938 kB / 0.6175 GB, free: 11.79 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.365e-05/0.1343, allocations: 11.98 kB / 0.6175 GB, free: 11.78 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.031e-05/0.1343, allocations: 24.48 kB / 0.6175 GB, free: 11.75 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003035/0.1346, allocations: 214.7 kB / 0.6177 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001287/0.1359, allocations: 1.257 MB / 0.6189 GB, free: 10.23 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002701/0.1362, allocations: 150.9 kB / 0.6191 GB, free: 10.07 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001556/0.1364, allocations: 111.6 kB / 0.6192 GB, free: 9.961 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001073/0.1365, allocations: 32.45 kB / 0.6192 GB, free: 9.93 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.22e-05/0.1365, allocations: 37.39 kB / 0.6192 GB, free: 9.883 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=32): time 1.523e-06/0.1365, allocations: 0 / 0.6192 GB, free: 9.883 MB / 0.5417 GB Notification: Performance of matching and sorting (n=33): time 0.001447/0.1379, allocations: 0.8868 MB / 0.6201 GB, free: 8.957 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.663e-05/0.138, allocations: 51.41 kB / 0.6202 GB, free: 8.895 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002442/0.1382, allocations: 390.7 kB / 0.6205 GB, free: 8.496 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.667e-05/0.1382, allocations: 29.7 kB / 0.6206 GB, free: 8.461 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001199/0.1384, allocations: 275.4 kB / 0.6208 GB, free: 8.188 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 7.477e-05/0.1384, allocations: 119 kB / 0.6209 GB, free: 8.07 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.844e-05/0.1385, allocations: 75.33 kB / 0.621 GB, free: 7.988 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001334/0.1386, allocations: 0.5274 MB / 0.6215 GB, free: 7.449 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001104/0.1387, allocations: 63.95 kB / 0.6216 GB, free: 7.387 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001102/0.1389, allocations: 79.67 kB / 0.6217 GB, free: 7.309 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002487/0.1391, allocations: 175.6 kB / 0.6218 GB, free: 7.133 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.02e-07/0.1391, allocations: 0 / 0.6218 GB, free: 7.133 MB / 0.5417 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004804/0.1396, allocations: 361 kB / 0.6222 GB, free: 6.77 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.1396, allocations: 4 kB / 0.6222 GB, free: 6.766 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.1396, allocations: 4 kB / 0.6222 GB, free: 6.762 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002627/0.1399, allocations: 95.55 kB / 0.6223 GB, free: 6.664 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001533/0.14, allocations: 55.89 kB / 0.6223 GB, free: 6.609 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001719/0.1417, allocations: 2.438 MB / 0.6247 GB, free: 4.055 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001006/0.1418, allocations: 11.98 kB / 0.6247 GB, free: 4.043 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.125e-05/0.1419, allocations: 15.98 kB / 0.6247 GB, free: 4.027 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,9,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00012/0.142, allocations: 172.5 kB / 0.6249 GB, free: 3.848 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.357e-05/0.1421, allocations: 55.72 kB / 0.625 GB, free: 3.793 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006104/0.1427, allocations: 0.5376 MB / 0.6255 GB, free: 3.215 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.1427, allocations: 3.938 kB / 0.6255 GB, free: 3.211 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.1427, allocations: 11.98 kB / 0.6255 GB, free: 3.199 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.1427, allocations: 0 / 0.6255 GB, free: 3.199 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002592/0.1429, allocations: 312.4 kB / 0.6258 GB, free: 2.859 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.1429, allocations: 4 kB / 0.6258 GB, free: 2.855 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.285e-05/0.143, allocations: 31.95 kB / 0.6258 GB, free: 2.824 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002332/0.1433, allocations: 107.5 kB / 0.6259 GB, free: 2.715 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.119e-05/0.1433, allocations: 11.98 kB / 0.6259 GB, free: 2.703 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00145/0.1447, allocations: 2.453 MB / 0.6283 GB, free: 136 kB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1447, allocations: 0 / 0.6283 GB, free: 136 kB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000528/0.1453, allocations: 409.1 kB / 0.6287 GB, free: 15.71 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 8.021e-05/0.1453, allocations: 71.67 kB / 0.6288 GB, free: 15.64 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.987e-05/0.1454, allocations: 11.94 kB / 0.6288 GB, free: 15.62 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.308e-05/0.1455, allocations: 0 / 0.6288 GB, free: 15.62 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.886e-05/0.1455, allocations: 27.94 kB / 0.6288 GB, free: 15.6 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.381e-05/0.1455, allocations: 7.984 kB / 0.6288 GB, free: 15.59 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0001766/0.1457, allocations: 291 kB / 0.6291 GB, free: 15.31 MB / 0.5573 GB Notification: Performance of sort global known variables: time 9.1e-08/0.1457, allocations: 0 / 0.6291 GB, free: 15.31 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0003366/0.146, allocations: 119.9 kB / 0.6292 GB, free: 15.2 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (source.outlet.m_flow,source1.outlet.m_flow,source2.outlet.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 (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,8,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000223/0.1463, allocations: 187.2 kB / 0.6294 GB, free: 15 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0005516/0.1468, allocations: 436.9 kB / 0.6298 GB, free: 14.55 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1468, allocations: 0 / 0.6298 GB, free: 14.55 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0003373/0.1471, allocations: 361.9 kB / 0.6302 GB, free: 14.18 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004266/0.1476, allocations: 133.1 kB / 0.6303 GB, free: 14.05 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001302/0.1489, allocations: 0.8229 MB / 0.6311 GB, free: 13.19 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.124e-05/0.149, allocations: 125.2 kB / 0.6312 GB, free: 13.05 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0001709/0.1491, allocations: 81.97 kB / 0.6313 GB, free: 12.98 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.233e-05/0.1492, allocations: 48.45 kB / 0.6313 GB, free: 12.93 MB / 0.5573 GB Notification: Performance of SimCode: time 1.122e-06/0.1492, allocations: 112 / 0.6313 GB, free: 12.93 MB / 0.5573 GB Notification: Performance of Templates: time 0.009859/0.1591, allocations: 7.625 MB / 0.6388 GB, free: 5.477 MB / 0.5573 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.sim & ./ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Topology.Tests.TestJunction_ref.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.1758097659330815]