Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.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.001526/0.001526, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 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.001689/0.001689, allocations: 173.3 kB / 23.02 MB, free: 1.551 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.9176/0.9176, allocations: 177.1 MB / 203.4 MB, free: 5.645 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo): time 0.6631/0.6631, allocations: 118.6 MB / 378.6 MB, free: 1.516 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/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.Boundaries.Tests.TerminalSourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|pulse.T_start|pulse.count|terminalSource.p",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink") translateModel(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|pulse.T_start|pulse.count|terminalSource.p",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.284e-06/2.284e-06, allocations: 1.375 kB / 483.6 MB, free: 8.266 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.675e-05/2.903e-05, allocations: 2.312 kB / 483.6 MB, free: 8.262 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.1249/0.1249, allocations: 129.5 MB / 0.5988 GB, free: 14.76 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.001098/0.126, allocations: 0.7514 MB / 0.5995 GB, free: 14 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002085/0.1262, allocations: 19.81 kB / 0.5995 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0004243/0.1266, allocations: 63.44 kB / 0.5996 GB, free: 13.92 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.000368/0.127, allocations: 158.9 kB / 0.5997 GB, free: 13.77 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003011/0.1273, allocations: 119.5 kB / 0.5999 GB, free: 13.65 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0003919/0.1277, allocations: 366.2 kB / 0.6002 GB, free: 13.29 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001403/0.1278, allocations: 45.19 kB / 0.6003 GB, free: 13.24 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004521/0.1283, allocations: 255.1 kB / 0.6005 GB, free: 12.99 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001492/0.1284, allocations: 111.7 kB / 0.6006 GB, free: 12.88 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 2.317e-05/0.1284, allocations: 12 kB / 0.6006 GB, free: 12.87 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001834/0.1286, allocations: 107.8 kB / 0.6007 GB, free: 12.77 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 6.298e-05/0.1287, allocations: 43.72 kB / 0.6008 GB, free: 12.72 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 7.039e-05/0.1288, allocations: 59.86 kB / 0.6008 GB, free: 12.66 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0004058/0.1292, allocations: 247 kB / 0.6011 GB, free: 12.42 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 6.732e-06/0.1292, allocations: 0 / 0.6011 GB, free: 12.42 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.194e-06/0.1292, allocations: 0 / 0.6011 GB, free: 12.42 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 7.334e-06/0.1292, allocations: 0 / 0.6011 GB, free: 12.42 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0008342/0.13, allocations: 0.6332 MB / 0.6017 GB, free: 11.75 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.1301, allocations: 8.031 kB / 0.6017 GB, free: 11.74 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.938e-05/0.1301, allocations: 40.75 kB / 0.6017 GB, free: 11.7 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000328/0.1305, allocations: 287.2 kB / 0.602 GB, free: 11.39 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.497e-05/0.1305, allocations: 12.36 kB / 0.602 GB, free: 11.38 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.248e-05/0.1305, allocations: 20.27 kB / 0.602 GB, free: 11.36 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002458/0.1308, allocations: 162 kB / 0.6022 GB, free: 11.18 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.1308, allocations: 3.938 kB / 0.6022 GB, free: 11.18 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.47e-05/0.1308, allocations: 8 kB / 0.6022 GB, free: 11.17 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.947e-06/0.1308, allocations: 4 kB / 0.6022 GB, free: 11.16 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.001e-05/0.1309, allocations: 43.91 kB / 0.6022 GB, free: 11.12 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00081/0.1317, allocations: 0.8898 MB / 0.6031 GB, free: 10.18 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001317/0.1318, allocations: 47.05 kB / 0.6031 GB, free: 10.12 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.553e-05/0.1319, allocations: 27.73 kB / 0.6032 GB, free: 10.09 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 6.833e-05/0.1319, allocations: 4 kB / 0.6032 GB, free: 10.08 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000122/0.132, allocations: 77.02 kB / 0.6032 GB, free: 9.992 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=7): time 2.134e-06/0.132, allocations: 0 / 0.6032 GB, free: 9.992 MB / 0.5261 GB Notification: Performance of matching and sorting (n=7): time 0.0002152/0.1323, allocations: 113.5 kB / 0.6034 GB, free: 9.875 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.185e-05/0.1323, allocations: 55.34 kB / 0.6034 GB, free: 9.809 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001985/0.1325, allocations: 322.3 kB / 0.6037 GB, free: 9.473 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.549e-05/0.1325, allocations: 25.7 kB / 0.6037 GB, free: 9.441 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.1326, allocations: 226.5 kB / 0.604 GB, free: 9.215 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 1.936e-05/0.1326, allocations: 23.8 kB / 0.604 GB, free: 9.191 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.869e-05/0.1327, allocations: 43.36 kB / 0.604 GB, free: 9.141 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001399/0.1328, allocations: 0.5078 MB / 0.6045 GB, free: 8.621 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.547e-05/0.1329, allocations: 45.69 kB / 0.6046 GB, free: 8.57 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.825e-05/0.133, allocations: 107.7 kB / 0.6047 GB, free: 8.434 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001031/0.1331, allocations: 119.8 kB / 0.6048 GB, free: 8.285 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.1331, allocations: 4 kB / 0.6048 GB, free: 8.281 MB / 0.5261 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0001994/0.1333, allocations: 211.4 kB / 0.605 GB, free: 8.059 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.384e-05/0.1333, allocations: 29.7 kB / 0.605 GB, free: 8.023 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.1333, allocations: 4.156 kB / 0.605 GB, free: 8.02 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.1333, allocations: 4 kB / 0.605 GB, free: 8.016 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001173/0.1334, allocations: 27.98 kB / 0.605 GB, free: 7.988 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.1334, allocations: 7.984 kB / 0.6051 GB, free: 7.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.374e-05/0.1335, allocations: 23.83 kB / 0.6051 GB, free: 7.957 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.024e-05/0.1335, allocations: 4 kB / 0.6051 GB, free: 7.953 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.92e-05/0.1336, allocations: 164.5 kB / 0.6052 GB, free: 7.781 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.45e-05/0.1336, allocations: 31.84 kB / 0.6053 GB, free: 7.75 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00015/0.1338, allocations: 92.33 kB / 0.6054 GB, free: 7.656 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.1338, allocations: 8 kB / 0.6054 GB, free: 7.648 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.1338, allocations: 0 / 0.6054 GB, free: 7.648 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.1338, allocations: 0 / 0.6054 GB, free: 7.648 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001448/0.134, allocations: 196.5 kB / 0.6056 GB, free: 7.422 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.134, allocations: 0 / 0.6056 GB, free: 7.422 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.015e-05/0.134, allocations: 19.92 kB / 0.6056 GB, free: 7.402 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.134, allocations: 0 / 0.6056 GB, free: 7.402 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.195e-05/0.134, allocations: 4 kB / 0.6056 GB, free: 7.398 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.134, allocations: 0 / 0.6056 GB, free: 7.398 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.134, allocations: 0 / 0.6056 GB, free: 7.398 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000169/0.1342, allocations: 140.2 kB / 0.6057 GB, free: 7.238 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 4.115e-05/0.1343, allocations: 35.81 kB / 0.6057 GB, free: 7.203 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.253e-05/0.1343, allocations: 7.984 kB / 0.6057 GB, free: 7.195 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.593e-05/0.1343, allocations: 8 kB / 0.6058 GB, free: 7.188 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.223e-05/0.1344, allocations: 3.984 kB / 0.6058 GB, free: 7.184 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.102e-05/0.1344, allocations: 11.98 kB / 0.6058 GB, free: 7.172 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0001193/0.1345, allocations: 215 kB / 0.606 GB, free: 6.961 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7e-08/0.1345, allocations: 0 / 0.606 GB, free: 6.961 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0001832/0.1347, allocations: 51.83 kB / 0.606 GB, free: 6.91 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (terminalSource.p) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001802/0.1349, allocations: 119.1 kB / 0.6061 GB, free: 6.781 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0001865/0.1351, allocations: 140.7 kB / 0.6063 GB, free: 6.621 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.132e-06/0.1351, allocations: 0 / 0.6063 GB, free: 6.621 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 4.46e-05/0.1351, allocations: 27.67 kB / 0.6063 GB, free: 6.59 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002898/0.1354, allocations: 72.77 kB / 0.6064 GB, free: 6.52 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009412/0.1363, allocations: 447.2 kB / 0.6068 GB, free: 6.059 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.505e-05/0.1364, allocations: 76.33 kB / 0.6069 GB, free: 5.965 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 6.795e-05/0.1364, allocations: 25.94 kB / 0.6069 GB, free: 5.938 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.271e-05/0.1365, allocations: 24.48 kB / 0.6069 GB, free: 5.914 MB / 0.5261 GB Notification: Performance of SimCode: time 1.002e-06/0.1365, allocations: 0 / 0.6069 GB, free: 5.914 MB / 0.5261 GB Notification: Performance of Templates: time 0.005416/0.1419, allocations: 2.822 MB / 0.6097 GB, free: 3.188 MB / 0.5261 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe >> ../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.sim & ./ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.TerminalSourceSink_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.6685720370151103]