Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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.001489/0.001489, 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.001561/0.001561, allocations: 173 kB / 23.49 MB, free: 1.062 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.9888/0.9888, allocations: 177.1 MB / 203.8 MB, free: 5.652 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.7136/0.7136, allocations: 118.6 MB / 378.9 MB, free: 1.465 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.Boundaries.Tests.TerminalSourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|pulse.T_start|pulse.count|terminalSource.p",fileNamePrefix="ThermofluidStream_dev_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_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 483.6 MB, free: 8.309 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.074e-05/2.221e-05, allocations: 2.312 kB / 483.6 MB, free: 8.305 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.1314/0.1314, allocations: 134.8 MB / 0.6039 GB, free: 9.801 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.001295/0.1327, allocations: 1.312 MB / 0.6052 GB, free: 8.484 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001901/0.1329, allocations: 19.81 kB / 0.6052 GB, free: 8.465 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.000445/0.1334, allocations: 111.2 kB / 0.6053 GB, free: 8.355 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.0003374/0.1337, allocations: 178.8 kB / 0.6055 GB, free: 8.18 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003/0.134, allocations: 179.2 kB / 0.6056 GB, free: 8.004 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.000331/0.1343, allocations: 354.3 kB / 0.606 GB, free: 7.656 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001318/0.1345, allocations: 49.22 kB / 0.606 GB, free: 7.605 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004371/0.1349, allocations: 282.9 kB / 0.6063 GB, free: 7.328 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001476/0.135, allocations: 115.7 kB / 0.6064 GB, free: 7.215 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 2.258e-05/0.1351, allocations: 12 kB / 0.6064 GB, free: 7.203 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002254/0.1353, allocations: 171.6 kB / 0.6066 GB, free: 7.035 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 5.995e-05/0.1353, allocations: 39.78 kB / 0.6066 GB, free: 6.996 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 6.823e-05/0.1354, allocations: 67.83 kB / 0.6067 GB, free: 6.93 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0003747/0.1358, allocations: 263 kB / 0.6069 GB, free: 6.672 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.636e-06/0.1358, allocations: 0 / 0.6069 GB, free: 6.672 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.082e-06/0.1358, allocations: 4 kB / 0.6069 GB, free: 6.668 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.96e-06/0.1358, allocations: 0 / 0.6069 GB, free: 6.668 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.000747/0.1365, allocations: 0.6251 MB / 0.6075 GB, free: 6 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.1366, allocations: 8.031 kB / 0.6076 GB, free: 5.992 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.134e-05/0.1367, allocations: 44.73 kB / 0.6076 GB, free: 5.949 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003352/0.137, allocations: 291.2 kB / 0.6079 GB, free: 5.641 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.336e-05/0.137, allocations: 4.375 kB / 0.6079 GB, free: 5.637 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.245e-05/0.137, allocations: 20.27 kB / 0.6079 GB, free: 5.621 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002317/0.1373, allocations: 161.9 kB / 0.6081 GB, free: 5.438 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.1373, allocations: 7.938 kB / 0.6081 GB, free: 5.43 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.544e-05/0.1373, allocations: 8 kB / 0.6081 GB, free: 5.422 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.1373, allocations: 7.984 kB / 0.6081 GB, free: 5.414 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.076e-05/0.1374, allocations: 39.91 kB / 0.6081 GB, free: 5.375 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007374/0.1381, allocations: 0.882 MB / 0.609 GB, free: 4.438 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001239/0.1382, allocations: 51.05 kB / 0.609 GB, free: 4.375 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.589e-05/0.1383, allocations: 23.8 kB / 0.609 GB, free: 4.348 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 6.358e-05/0.1383, allocations: 8 kB / 0.6091 GB, free: 4.34 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002986/0.1386, allocations: 84.91 kB / 0.6091 GB, free: 4.242 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=7): time 2.044e-06/0.1386, allocations: 0 / 0.6091 GB, free: 4.242 MB / 0.5261 GB Notification: Performance of matching and sorting (n=7): time 0.0002128/0.1389, allocations: 97.53 kB / 0.6092 GB, free: 4.141 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.434e-05/0.1389, allocations: 51.41 kB / 0.6093 GB, free: 4.078 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002023/0.1391, allocations: 326.3 kB / 0.6096 GB, free: 3.738 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.514e-05/0.1391, allocations: 29.7 kB / 0.6096 GB, free: 3.703 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000102/0.1392, allocations: 226.5 kB / 0.6098 GB, free: 3.477 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 1.829e-05/0.1392, allocations: 27.78 kB / 0.6099 GB, free: 3.449 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.626e-05/0.1393, allocations: 39.38 kB / 0.6099 GB, free: 3.402 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001162/0.1394, allocations: 0.5078 MB / 0.6104 GB, free: 2.883 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.47e-05/0.1394, allocations: 45.69 kB / 0.6104 GB, free: 2.832 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.803e-05/0.1395, allocations: 115.6 kB / 0.6105 GB, free: 2.688 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.719e-05/0.1396, allocations: 123.1 kB / 0.6107 GB, free: 2.539 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1396, allocations: 0 / 0.6107 GB, free: 2.539 MB / 0.5261 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0001925/0.1398, allocations: 200.8 kB / 0.6109 GB, free: 2.324 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.914e-05/0.1398, allocations: 33.7 kB / 0.6109 GB, free: 2.285 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.1398, allocations: 4 kB / 0.6109 GB, free: 2.281 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.033e-05/0.1399, allocations: 3.984 kB / 0.6109 GB, free: 2.277 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001101/0.14, allocations: 31.92 kB / 0.6109 GB, free: 2.246 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.14, allocations: 4 kB / 0.6109 GB, free: 2.242 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.209e-05/0.1401, allocations: 19.83 kB / 0.6109 GB, free: 2.223 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.047e-05/0.1401, allocations: 8 kB / 0.611 GB, free: 2.215 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.423e-05/0.1401, allocations: 168.6 kB / 0.6111 GB, free: 2.039 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.389e-05/0.1402, allocations: 35.81 kB / 0.6112 GB, free: 2.004 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001367/0.1403, allocations: 88.34 kB / 0.6112 GB, free: 1.914 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.1403, allocations: 4 kB / 0.6112 GB, free: 1.91 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.1403, allocations: 0 / 0.6112 GB, free: 1.91 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.1403, allocations: 0 / 0.6112 GB, free: 1.91 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001386/0.1405, allocations: 196.5 kB / 0.6114 GB, free: 1.684 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.1405, allocations: 0 / 0.6114 GB, free: 1.684 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.369e-05/0.1405, allocations: 15.98 kB / 0.6114 GB, free: 1.668 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.1405, allocations: 0 / 0.6114 GB, free: 1.668 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.01e-05/0.1405, allocations: 0 / 0.6114 GB, free: 1.668 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.1405, allocations: 4 kB / 0.6114 GB, free: 1.664 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.1405, allocations: 4 kB / 0.6114 GB, free: 1.66 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001738/0.1407, allocations: 148.1 kB / 0.6116 GB, free: 1.492 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 4.814e-05/0.1408, allocations: 31.75 kB / 0.6116 GB, free: 1.461 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.208e-05/0.1408, allocations: 3.984 kB / 0.6116 GB, free: 1.457 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.921e-05/0.1408, allocations: 12 kB / 0.6116 GB, free: 1.445 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.918e-05/0.1409, allocations: 7.969 kB / 0.6116 GB, free: 1.438 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.525e-06/0.1409, allocations: 4 kB / 0.6116 GB, free: 1.434 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0001161/0.141, allocations: 219 kB / 0.6119 GB, free: 1.219 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7e-08/0.141, allocations: 0 / 0.6119 GB, free: 1.219 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0001825/0.1412, allocations: 47.92 kB / 0.6119 GB, free: 1.172 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.0001737/0.1414, allocations: 143.1 kB / 0.612 GB, free: 1.02 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0001661/0.1415, allocations: 148.6 kB / 0.6122 GB, free: 0.8516 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.422e-06/0.1415, allocations: 0 / 0.6122 GB, free: 0.8516 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 3.902e-05/0.1416, allocations: 23.98 kB / 0.6122 GB, free: 0.8242 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002828/0.1418, allocations: 76.27 kB / 0.6123 GB, free: 0.7539 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008739/0.1427, allocations: 451.3 kB / 0.6127 GB, free: 296 kB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.475e-05/0.1428, allocations: 80.31 kB / 0.6128 GB, free: 196 kB / 0.5261 GB Notification: Performance of simCode: alias equations: time 6.737e-05/0.1428, allocations: 27.52 kB / 0.6128 GB, free: 168 kB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.95e-05/0.1429, allocations: 28.5 kB / 0.6128 GB, free: 140 kB / 0.5261 GB Notification: Performance of SimCode: time 1.302e-06/0.1429, allocations: 0 / 0.6128 GB, free: 140 kB / 0.5261 GB Notification: Performance of Templates: time 0.005593/0.1485, allocations: 2.98 MB / 0.6157 GB, free: 13.26 MB / 0.5417 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.sim & ./ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_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.770000784890726]