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.0009153/0.0009153, allocations: 92.2 kB / 20.19 MB, free: 4.352 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.0009162/0.0009162, allocations: 173 kB / 23.5 MB, free: 1.047 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.9048/0.9048, allocations: 177.1 MB / 203.8 MB, free: 5.633 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.6609/0.6609, allocations: 118.6 MB / 378.9 MB, free: 1.473 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 1.623e-06/1.623e-06, allocations: 0 / 483.6 MB, free: 8.277 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.206e-05/2.369e-05, allocations: 3.297 kB / 483.6 MB, free: 8.273 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.1142/0.1142, allocations: 134.8 MB / 0.6039 GB, free: 9.816 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.001017/0.1153, allocations: 1.308 MB / 0.6052 GB, free: 8.504 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001354/0.1154, allocations: 19.81 kB / 0.6052 GB, free: 8.484 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0003741/0.1158, allocations: 119.1 kB / 0.6053 GB, free: 8.367 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.0002764/0.116, allocations: 166.9 kB / 0.6055 GB, free: 8.203 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002365/0.1163, allocations: 183.2 kB / 0.6057 GB, free: 8.023 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0002872/0.1166, allocations: 366.2 kB / 0.606 GB, free: 7.664 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001209/0.1167, allocations: 45.23 kB / 0.606 GB, free: 7.617 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003502/0.117, allocations: 275 kB / 0.6063 GB, free: 7.348 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001266/0.1172, allocations: 115.6 kB / 0.6064 GB, free: 7.234 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 2.048e-05/0.1172, allocations: 12 kB / 0.6064 GB, free: 7.223 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001952/0.1174, allocations: 171.6 kB / 0.6066 GB, free: 7.055 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 5.519e-05/0.1174, allocations: 43.78 kB / 0.6066 GB, free: 7.012 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 6.358e-05/0.1175, allocations: 67.78 kB / 0.6067 GB, free: 6.945 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0003161/0.1178, allocations: 263 kB / 0.607 GB, free: 6.688 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1178, allocations: 0 / 0.607 GB, free: 6.688 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.252e-06/0.1178, allocations: 0 / 0.607 GB, free: 6.688 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.498e-06/0.1178, allocations: 0 / 0.607 GB, free: 6.688 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.0006444/0.1185, allocations: 0.6251 MB / 0.6076 GB, free: 6.02 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.257e-05/0.1185, allocations: 11.97 kB / 0.6076 GB, free: 6.008 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.607e-05/0.1186, allocations: 40.75 kB / 0.6076 GB, free: 5.969 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005128/0.1191, allocations: 295.2 kB / 0.6079 GB, free: 5.656 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.067e-05/0.1191, allocations: 4.375 kB / 0.6079 GB, free: 5.652 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.895e-05/0.1191, allocations: 20.31 kB / 0.6079 GB, free: 5.633 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002074/0.1193, allocations: 162 kB / 0.6081 GB, free: 5.449 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.1193, allocations: 3.938 kB / 0.6081 GB, free: 5.445 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.1193, allocations: 8 kB / 0.6081 GB, free: 5.438 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/0.1194, allocations: 0 / 0.6081 GB, free: 5.438 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.848e-05/0.1194, allocations: 43.91 kB / 0.6081 GB, free: 5.395 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006374/0.1201, allocations: 0.882 MB / 0.609 GB, free: 4.457 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001035/0.1202, allocations: 54.98 kB / 0.609 GB, free: 4.391 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.497e-05/0.1202, allocations: 23.8 kB / 0.6091 GB, free: 4.363 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 4.954e-05/0.1203, allocations: 4 kB / 0.6091 GB, free: 4.359 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001022/0.1204, allocations: 77.02 kB / 0.6091 GB, free: 4.27 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=7): time 1.252e-06/0.1204, allocations: 0 / 0.6091 GB, free: 4.27 MB / 0.5261 GB Notification: Performance of matching and sorting (n=7): time 0.0001828/0.1205, allocations: 105.4 kB / 0.6092 GB, free: 4.16 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.758e-05/0.1206, allocations: 55.41 kB / 0.6093 GB, free: 4.094 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001887/0.1208, allocations: 322.3 kB / 0.6096 GB, free: 3.758 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.422e-05/0.1208, allocations: 33.7 kB / 0.6096 GB, free: 3.719 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 9.343e-05/0.1209, allocations: 226.5 kB / 0.6098 GB, free: 3.492 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 1.763e-05/0.1209, allocations: 23.8 kB / 0.6099 GB, free: 3.469 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.36e-05/0.1209, allocations: 43.36 kB / 0.6099 GB, free: 3.418 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001042/0.121, allocations: 0.5039 MB / 0.6104 GB, free: 2.902 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.693e-05/0.1211, allocations: 45.69 kB / 0.6104 GB, free: 2.852 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.457e-05/0.1211, allocations: 111.7 kB / 0.6106 GB, free: 2.711 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.971e-05/0.1212, allocations: 119.6 kB / 0.6107 GB, free: 2.566 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.217e-06/0.1212, allocations: 4 kB / 0.6107 GB, free: 2.562 MB / 0.5261 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0001743/0.1214, allocations: 204.6 kB / 0.6109 GB, free: 2.344 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.6e-05/0.1214, allocations: 33.7 kB / 0.6109 GB, free: 2.305 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.96e-06/0.1214, allocations: 4 kB / 0.6109 GB, free: 2.301 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.838e-06/0.1215, allocations: 0 / 0.6109 GB, free: 2.301 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.962e-05/0.1216, allocations: 27.98 kB / 0.6109 GB, free: 2.273 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.273e-06/0.1216, allocations: 8.141 kB / 0.6109 GB, free: 2.266 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.001e-05/0.1216, allocations: 23.83 kB / 0.611 GB, free: 2.242 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.548e-06/0.1216, allocations: 8 kB / 0.611 GB, free: 2.234 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 7.422e-05/0.1217, allocations: 164.5 kB / 0.6111 GB, free: 2.062 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.208e-05/0.1217, allocations: 31.84 kB / 0.6112 GB, free: 2.031 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001183/0.1219, allocations: 92.3 kB / 0.6112 GB, free: 1.938 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.1219, allocations: 4 kB / 0.6112 GB, free: 1.934 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.1219, allocations: 0 / 0.6112 GB, free: 1.934 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.1219, allocations: 3.938 kB / 0.6113 GB, free: 1.93 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001232/0.122, allocations: 200.5 kB / 0.6114 GB, free: 1.699 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.122, allocations: 4 kB / 0.6114 GB, free: 1.695 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.282e-05/0.122, allocations: 15.98 kB / 0.6115 GB, free: 1.68 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.293e-06/0.122, allocations: 0 / 0.6115 GB, free: 1.68 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.855e-06/0.122, allocations: 0 / 0.6115 GB, free: 1.68 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.122, allocations: 3.938 kB / 0.6115 GB, free: 1.676 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.122, allocations: 0 / 0.6115 GB, free: 1.676 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001459/0.1222, allocations: 140.2 kB / 0.6116 GB, free: 1.516 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 3.945e-05/0.1222, allocations: 35.73 kB / 0.6116 GB, free: 1.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.841e-05/0.1223, allocations: 0 / 0.6116 GB, free: 1.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.667e-05/0.1223, allocations: 11.98 kB / 0.6116 GB, free: 1.469 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.878e-05/0.1223, allocations: 12.02 kB / 0.6117 GB, free: 1.457 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.762e-06/0.1223, allocations: 11.92 kB / 0.6117 GB, free: 1.445 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0001115/0.1225, allocations: 219 kB / 0.6119 GB, free: 1.23 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8e-08/0.1225, allocations: 0 / 0.6119 GB, free: 1.23 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0001682/0.1226, allocations: 43.95 kB / 0.6119 GB, free: 1.188 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.000136/0.1228, allocations: 143.1 kB / 0.6121 GB, free: 1.035 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0001444/0.1229, allocations: 144.7 kB / 0.6122 GB, free: 0.8711 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.232e-06/0.1229, allocations: 0 / 0.6122 GB, free: 0.8711 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 3.784e-05/0.1229, allocations: 27.61 kB / 0.6122 GB, free: 0.8398 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002491/0.1232, allocations: 73.58 kB / 0.6123 GB, free: 0.7695 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007744/0.124, allocations: 451.3 kB / 0.6127 GB, free: 312 kB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.859e-05/0.124, allocations: 80.31 kB / 0.6128 GB, free: 212 kB / 0.5261 GB Notification: Performance of simCode: alias equations: time 5.532e-05/0.1241, allocations: 21.95 kB / 0.6128 GB, free: 188 kB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.614e-05/0.1241, allocations: 28.48 kB / 0.6128 GB, free: 160 kB / 0.5261 GB Notification: Performance of SimCode: time 7.01e-07/0.1241, allocations: 0 / 0.6128 GB, free: 160 kB / 0.5261 GB Notification: Performance of Templates: time 0.004722/0.1288, allocations: 2.98 MB / 0.6158 GB, free: 13.27 MB / 0.5417 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.522432670928538]