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.0009894/0.0009894, allocations: 77.09 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.0009697/0.0009697, allocations: 169 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.9704/0.9704, allocations: 177.1 MB / 204.5 MB, free: 5.512 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.6425/0.6425, allocations: 118.6 MB / 379.7 MB, free: 1.398 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.132e-06/1.132e-06, allocations: 0 / 484.8 MB, free: 8.113 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.921e-05/2.034e-05, allocations: 5.125 kB / 484.8 MB, free: 8.109 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.1126/0.1126, allocations: 126.6 MB / 0.5971 GB, free: 1.383 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.001091/0.1137, allocations: 0.732 MB / 0.5979 GB, free: 0.6484 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001535/0.1138, allocations: 19.81 kB / 0.5979 GB, free: 0.6289 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.0003357/0.1142, allocations: 71.36 kB / 0.5979 GB, free: 0.5586 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.0002944/0.1145, allocations: 162.9 kB / 0.5981 GB, free: 408 kB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002239/0.1147, allocations: 115.5 kB / 0.5982 GB, free: 292 kB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.0003241/0.115, allocations: 370.2 kB / 0.5986 GB, free: 15.92 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001266/0.1151, allocations: 41.23 kB / 0.5986 GB, free: 15.88 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003809/0.1155, allocations: 255.2 kB / 0.5988 GB, free: 15.63 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001376/0.1157, allocations: 111.6 kB / 0.599 GB, free: 15.52 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 2.137e-05/0.1157, allocations: 12 kB / 0.599 GB, free: 15.51 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000147/0.1158, allocations: 103.8 kB / 0.5991 GB, free: 15.41 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 5.301e-05/0.1159, allocations: 39.78 kB / 0.5991 GB, free: 15.37 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 5.805e-05/0.1159, allocations: 67.8 kB / 0.5992 GB, free: 15.3 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0002996/0.1162, allocations: 255 kB / 0.5994 GB, free: 15.05 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.135e-06/0.1162, allocations: 4 kB / 0.5994 GB, free: 15.05 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.042e-06/0.1162, allocations: 0 / 0.5994 GB, free: 15.05 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.018e-06/0.1162, allocations: 4 kB / 0.5994 GB, free: 15.04 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.0006568/0.1169, allocations: 0.6254 MB / 0.6 GB, free: 14.38 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.1169, allocations: 8.031 kB / 0.6 GB, free: 14.37 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.842e-05/0.117, allocations: 40.75 kB / 0.6001 GB, free: 14.33 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002882/0.1173, allocations: 287.2 kB / 0.6003 GB, free: 14.02 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.312e-05/0.1173, allocations: 8.375 kB / 0.6004 GB, free: 14.02 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.663e-05/0.1173, allocations: 24.33 kB / 0.6004 GB, free: 13.99 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001805/0.1175, allocations: 158 kB / 0.6005 GB, free: 13.81 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.1175, allocations: 7.938 kB / 0.6005 GB, free: 13.8 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.07e-05/0.1175, allocations: 4 kB / 0.6005 GB, free: 13.8 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.1175, allocations: 4 kB / 0.6005 GB, free: 13.8 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.293e-05/0.1176, allocations: 31.91 kB / 0.6006 GB, free: 13.77 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006218/0.1182, allocations: 0.8936 MB / 0.6014 GB, free: 12.82 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 9.359e-05/0.1183, allocations: 50.98 kB / 0.6015 GB, free: 12.75 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.309e-05/0.1183, allocations: 15.69 kB / 0.6015 GB, free: 12.73 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 4.335e-05/0.1184, allocations: 11.98 kB / 0.6015 GB, free: 12.72 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001068/0.1185, allocations: 73.14 kB / 0.6016 GB, free: 12.64 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=7): time 3.056e-06/0.1185, allocations: 3.984 kB / 0.6016 GB, free: 12.63 MB / 0.5261 GB Notification: Performance of matching and sorting (n=7): time 0.0001719/0.1186, allocations: 97.42 kB / 0.6017 GB, free: 12.53 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.298e-05/0.1187, allocations: 55.41 kB / 0.6017 GB, free: 12.46 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001769/0.1189, allocations: 322.1 kB / 0.602 GB, free: 12.13 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.648e-05/0.1189, allocations: 29.7 kB / 0.6021 GB, free: 12.09 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001104/0.119, allocations: 226.4 kB / 0.6023 GB, free: 11.87 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 1.812e-05/0.119, allocations: 23.73 kB / 0.6023 GB, free: 11.84 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.598e-05/0.119, allocations: 43.34 kB / 0.6024 GB, free: 11.79 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001359/0.1192, allocations: 0.5156 MB / 0.6029 GB, free: 11.27 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.771e-05/0.1192, allocations: 37.69 kB / 0.6029 GB, free: 11.22 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.152e-05/0.1193, allocations: 103.7 kB / 0.603 GB, free: 11.09 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.515e-05/0.1194, allocations: 131.3 kB / 0.6031 GB, free: 10.93 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1194, allocations: 0 / 0.6031 GB, free: 10.93 MB / 0.5261 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0001611/0.1195, allocations: 192.8 kB / 0.6033 GB, free: 10.73 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.655e-05/0.1196, allocations: 33.7 kB / 0.6033 GB, free: 10.69 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.1196, allocations: 0 / 0.6033 GB, free: 10.69 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.027e-06/0.1196, allocations: 4 kB / 0.6033 GB, free: 10.68 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.84e-05/0.1197, allocations: 31.92 kB / 0.6034 GB, free: 10.65 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.529e-06/0.1197, allocations: 4 kB / 0.6034 GB, free: 10.65 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.918e-05/0.1197, allocations: 23.81 kB / 0.6034 GB, free: 10.62 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.626e-06/0.1197, allocations: 7.938 kB / 0.6034 GB, free: 10.62 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.713e-05/0.1198, allocations: 160.7 kB / 0.6036 GB, free: 10.45 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.292e-05/0.1198, allocations: 35.86 kB / 0.6036 GB, free: 10.41 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001115/0.12, allocations: 96.25 kB / 0.6037 GB, free: 10.32 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.12, allocations: 0 / 0.6037 GB, free: 10.32 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.12, allocations: 0 / 0.6037 GB, free: 10.32 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.12, allocations: 0 / 0.6037 GB, free: 10.32 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001085/0.1201, allocations: 161 kB / 0.6038 GB, free: 10.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1201, allocations: 0 / 0.6038 GB, free: 10.13 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-05/0.1201, allocations: 12 kB / 0.6039 GB, free: 10.12 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.1201, allocations: 0 / 0.6039 GB, free: 10.12 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.556e-06/0.1201, allocations: 7.984 kB / 0.6039 GB, free: 10.11 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.1201, allocations: 4 kB / 0.6039 GB, free: 10.11 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1201, allocations: 0 / 0.6039 GB, free: 10.11 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001326/0.1203, allocations: 136.2 kB / 0.604 GB, free: 9.953 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 3.833e-05/0.1203, allocations: 31.78 kB / 0.604 GB, free: 9.922 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.758e-05/0.1203, allocations: 4 kB / 0.604 GB, free: 9.918 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.569e-05/0.1204, allocations: 11.98 kB / 0.604 GB, free: 9.906 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.077e-05/0.1204, allocations: 7.922 kB / 0.604 GB, free: 9.898 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.298e-06/0.1204, allocations: 4 kB / 0.604 GB, free: 9.895 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.000332/0.1207, allocations: 207 kB / 0.6042 GB, free: 9.691 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7e-08/0.1207, allocations: 0 / 0.6042 GB, free: 9.691 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0001742/0.1209, allocations: 51.88 kB / 0.6043 GB, free: 9.641 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.0001222/0.121, allocations: 111.3 kB / 0.6044 GB, free: 9.52 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0001332/0.1212, allocations: 136.7 kB / 0.6045 GB, free: 9.363 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1212, allocations: 4 kB / 0.6045 GB, free: 9.359 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 3.285e-05/0.1212, allocations: 23.61 kB / 0.6046 GB, free: 9.332 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002458/0.1214, allocations: 72.14 kB / 0.6046 GB, free: 9.262 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006962/0.1221, allocations: 443.3 kB / 0.605 GB, free: 8.805 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.787e-05/0.1222, allocations: 88.25 kB / 0.6051 GB, free: 8.699 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 5.993e-05/0.1222, allocations: 21.94 kB / 0.6052 GB, free: 8.676 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001041/0.1223, allocations: 118.2 kB / 0.6053 GB, free: 8.559 MB / 0.5261 GB Notification: Performance of SimCode: time 8.71e-07/0.1223, allocations: 0 / 0.6053 GB, free: 8.559 MB / 0.5261 GB Notification: Performance of Templates: time 0.004639/0.127, allocations: 2.916 MB / 0.6081 GB, free: 5.742 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.5265911263413727]