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.0009642/0.0009642, allocations: 73.97 kB / 20.66 MB, free: 3.844 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.0009242/0.0009242, allocations: 169.4 kB / 24.06 MB, free: 456 kB / 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.9651/0.9651, allocations: 177.1 MB / 204.5 MB, free: 5.5 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.6538/0.6538, allocations: 118.6 MB / 379.7 MB, free: 1.348 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 2.825e-06/2.825e-06, allocations: 3.141 kB / 484.8 MB, free: 8.07 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.217e-05/2.5e-05, allocations: 6.25 kB / 484.8 MB, free: 8.062 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.1202/0.1203, allocations: 127.2 MB / 0.5977 GB, free: 0.8086 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.001603/0.1219, allocations: 1.347 MB / 0.599 GB, free: 15.46 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002699/0.1221, allocations: 39.62 kB / 0.599 GB, free: 15.42 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0004229/0.1226, allocations: 103.1 kB / 0.5991 GB, free: 15.32 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.0006021/0.1232, allocations: 337.9 kB / 0.5994 GB, free: 14.98 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004798/0.1237, allocations: 223.2 kB / 0.5997 GB, free: 14.77 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0007251/0.1244, allocations: 0.8253 MB / 0.6005 GB, free: 13.94 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001647/0.1245, allocations: 67.59 kB / 0.6005 GB, free: 13.87 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006525/0.1252, allocations: 470.7 kB / 0.601 GB, free: 13.41 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004779/0.1257, allocations: 359.1 kB / 0.6013 GB, free: 13.06 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 5.964e-05/0.1257, allocations: 32 kB / 0.6014 GB, free: 13.03 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003106/0.126, allocations: 159.7 kB / 0.6015 GB, free: 12.87 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0001058/0.1261, allocations: 115.5 kB / 0.6016 GB, free: 12.76 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.000133/0.1263, allocations: 151.6 kB / 0.6018 GB, free: 12.61 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0005921/0.1269, allocations: 0.5021 MB / 0.6022 GB, free: 12.11 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1269, allocations: 0 / 0.6022 GB, free: 12.11 MB / 0.5261 GB Notification: Performance of FrontEnd: time 7.21e-07/0.1269, allocations: 0 / 0.6022 GB, free: 12.11 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 7.214e-06/0.1269, allocations: 0 / 0.6022 GB, free: 12.11 MB / 0.5261 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.0009848/0.1279, allocations: 0.8575 MB / 0.6031 GB, free: 11.21 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.162e-05/0.1279, allocations: 11.97 kB / 0.6031 GB, free: 11.2 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.342e-05/0.128, allocations: 72.61 kB / 0.6032 GB, free: 11.13 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004923/0.1285, allocations: 462.3 kB / 0.6036 GB, free: 10.65 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.029e-05/0.1285, allocations: 20.86 kB / 0.6036 GB, free: 10.63 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.104e-05/0.1285, allocations: 28.38 kB / 0.6037 GB, free: 10.6 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002947/0.1288, allocations: 269.2 kB / 0.6039 GB, free: 10.32 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.1289, allocations: 3.938 kB / 0.6039 GB, free: 10.32 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.072e-05/0.1289, allocations: 15.98 kB / 0.6039 GB, free: 10.3 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.281e-05/0.1289, allocations: 12.5 kB / 0.6039 GB, free: 10.29 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001914/0.1291, allocations: 159.2 kB / 0.6041 GB, free: 10.13 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001258/0.1304, allocations: 1.191 MB / 0.6053 GB, free: 8.898 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002569/0.1306, allocations: 135 kB / 0.6054 GB, free: 8.754 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001357/0.1307, allocations: 95.62 kB / 0.6055 GB, free: 8.656 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 9.622e-05/0.1308, allocations: 27.98 kB / 0.6055 GB, free: 8.629 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.567e-05/0.1309, allocations: 41.33 kB / 0.6055 GB, free: 8.578 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=32): time 2.064e-06/0.1309, allocations: 0 / 0.6055 GB, free: 8.578 MB / 0.5261 GB Notification: Performance of matching and sorting (n=33): time 0.001395/0.1323, allocations: 0.7473 MB / 0.6063 GB, free: 7.793 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.179e-05/0.1323, allocations: 59.39 kB / 0.6063 GB, free: 7.723 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002571/0.1326, allocations: 386.5 kB / 0.6067 GB, free: 7.328 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.487e-05/0.1326, allocations: 29.7 kB / 0.6067 GB, free: 7.293 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000138/0.1327, allocations: 279.4 kB / 0.607 GB, free: 7.016 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 9.066e-05/0.1328, allocations: 126.9 kB / 0.6071 GB, free: 6.891 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.1329, allocations: 71.31 kB / 0.6072 GB, free: 6.812 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001617/0.1331, allocations: 0.5273 MB / 0.6077 GB, free: 6.273 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.977e-05/0.1332, allocations: 55.8 kB / 0.6078 GB, free: 6.219 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.126e-05/0.1333, allocations: 59.75 kB / 0.6078 GB, free: 6.16 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002256/0.1335, allocations: 147.6 kB / 0.6079 GB, free: 6.012 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.1335, allocations: 0 / 0.6079 GB, free: 6.012 MB / 0.5261 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004849/0.134, allocations: 336.8 kB / 0.6083 GB, free: 5.672 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.134, allocations: 14.64 kB / 0.6083 GB, free: 5.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.134, allocations: 0 / 0.6083 GB, free: 5.66 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002559/0.1343, allocations: 83.62 kB / 0.6084 GB, free: 5.574 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001808/0.1344, allocations: 51.89 kB / 0.6084 GB, free: 5.523 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001745/0.1362, allocations: 2.384 MB / 0.6107 GB, free: 3.023 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001178/0.1363, allocations: 7.984 kB / 0.6107 GB, free: 3.016 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.551e-05/0.1363, allocations: 15.98 kB / 0.6108 GB, free: 3 MB / 0.5261 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.0001318/0.1365, allocations: 168.6 kB / 0.6109 GB, free: 2.824 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.485e-05/0.1365, allocations: 55.66 kB / 0.611 GB, free: 2.77 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006798/0.1372, allocations: 0.527 MB / 0.6115 GB, free: 2.195 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.1372, allocations: 4 kB / 0.6115 GB, free: 2.191 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.1372, allocations: 8 kB / 0.6115 GB, free: 2.184 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.1372, allocations: 7.922 kB / 0.6115 GB, free: 2.176 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000289/0.1375, allocations: 245 kB / 0.6117 GB, free: 1.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.1375, allocations: 0 / 0.6117 GB, free: 1.91 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001137/0.1376, allocations: 35.89 kB / 0.6118 GB, free: 1.875 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002566/0.1379, allocations: 102.3 kB / 0.6119 GB, free: 1.773 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.32e-05/0.1379, allocations: 11.98 kB / 0.6119 GB, free: 1.762 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001662/0.1396, allocations: 2.402 MB / 0.6142 GB, free: 15.25 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1396, allocations: 4 kB / 0.6142 GB, free: 15.25 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005524/0.1401, allocations: 389 kB / 0.6146 GB, free: 14.84 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 9.312e-05/0.1402, allocations: 63.67 kB / 0.6147 GB, free: 14.78 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.053e-05/0.1403, allocations: 8 kB / 0.6147 GB, free: 14.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.993e-05/0.1404, allocations: 4 kB / 0.6147 GB, free: 14.77 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.065e-05/0.1404, allocations: 19.95 kB / 0.6147 GB, free: 14.75 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.073e-05/0.1404, allocations: 15.98 kB / 0.6147 GB, free: 14.73 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001768/0.1406, allocations: 275 kB / 0.615 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of sort global known variables: time 5e-08/0.1406, allocations: 7.938 kB / 0.615 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0004339/0.1411, allocations: 104 kB / 0.6151 GB, free: 14.36 MB / 0.5417 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.000184/0.1412, allocations: 127.3 kB / 0.6152 GB, free: 14.22 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0005817/0.1418, allocations: 420.9 kB / 0.6156 GB, free: 13.79 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1418, allocations: 0 / 0.6156 GB, free: 13.79 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0003901/0.1422, allocations: 345.8 kB / 0.6159 GB, free: 13.43 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005285/0.1427, allocations: 129.9 kB / 0.6161 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001441/0.1442, allocations: 0.8253 MB / 0.6169 GB, free: 12.45 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.489e-05/0.1443, allocations: 121.3 kB / 0.617 GB, free: 12.31 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001679/0.1444, allocations: 59.2 kB / 0.617 GB, free: 12.25 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002412/0.1447, allocations: 178.1 kB / 0.6172 GB, free: 12.07 MB / 0.5417 GB Notification: Performance of SimCode: time 6.51e-07/0.1447, allocations: 0 / 0.6172 GB, free: 12.07 MB / 0.5417 GB Notification: Performance of Templates: time 0.01341/0.1581, allocations: 7.399 MB / 0.6244 GB, free: 4.859 MB / 0.5417 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: 3.812915937975049]