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.001407/0.001407, allocations: 73.88 kB / 20.65 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.001473/0.001473, allocations: 169 kB / 24.06 MB, free: 452 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.9214/0.9214, allocations: 177.1 MB / 204.5 MB, free: 5.516 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.6476/0.6476, allocations: 118.6 MB / 379.7 MB, free: 1.363 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.593e-06/1.593e-06, allocations: 1.5 kB / 484.8 MB, free: 8.078 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.754e-05/1.914e-05, allocations: 2.312 kB / 484.8 MB, free: 8.074 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.1097/0.1097, allocations: 126.6 MB / 0.5971 GB, free: 1.363 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.0009023/0.1106, allocations: 0.7397 MB / 0.5979 GB, free: 0.6211 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001696/0.1108, allocations: 19.81 kB / 0.5979 GB, free: 0.6016 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.0003264/0.1111, allocations: 71.36 kB / 0.5979 GB, free: 0.5312 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.0003116/0.1114, allocations: 150.9 kB / 0.5981 GB, free: 392 kB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002481/0.1117, allocations: 123.6 kB / 0.5982 GB, free: 268 kB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.0003631/0.112, allocations: 366.3 kB / 0.5986 GB, free: 15.9 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001127/0.1121, allocations: 41.16 kB / 0.5986 GB, free: 15.86 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004013/0.1125, allocations: 247.2 kB / 0.5988 GB, free: 15.62 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001415/0.1127, allocations: 115.6 kB / 0.5989 GB, free: 15.5 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 2.02e-05/0.1127, allocations: 12 kB / 0.599 GB, free: 15.49 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001578/0.1129, allocations: 99.78 kB / 0.599 GB, free: 15.39 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 5.197e-05/0.1129, allocations: 43.78 kB / 0.5991 GB, free: 15.35 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 6.072e-05/0.113, allocations: 71.77 kB / 0.5992 GB, free: 15.28 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0003327/0.1133, allocations: 251 kB / 0.5994 GB, free: 15.04 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.1133, allocations: 0 / 0.5994 GB, free: 15.04 MB / 0.5261 GB Notification: Performance of FrontEnd: time 7.52e-07/0.1133, allocations: 0 / 0.5994 GB, free: 15.04 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.581e-06/0.1133, allocations: 0 / 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.0006425/0.114, allocations: 0.6332 MB / 0.6 GB, free: 14.36 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.306e-05/0.114, allocations: 8.031 kB / 0.6 GB, free: 14.35 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.95e-05/0.114, allocations: 40.75 kB / 0.6001 GB, free: 14.31 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003088/0.1144, allocations: 291.2 kB / 0.6003 GB, free: 14 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.614e-05/0.1144, allocations: 16.31 kB / 0.6004 GB, free: 13.99 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.606e-05/0.1144, allocations: 16.33 kB / 0.6004 GB, free: 13.97 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001945/0.1146, allocations: 154 kB / 0.6005 GB, free: 13.8 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.1146, allocations: 3.938 kB / 0.6005 GB, free: 13.79 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.531e-05/0.1146, allocations: 8 kB / 0.6005 GB, free: 13.79 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.1146, allocations: 4 kB / 0.6005 GB, free: 13.78 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.394e-05/0.1147, allocations: 32.84 kB / 0.6006 GB, free: 13.75 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006947/0.1154, allocations: 0.8936 MB / 0.6014 GB, free: 12.8 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001045/0.1155, allocations: 54.97 kB / 0.6015 GB, free: 12.73 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.562e-05/0.1155, allocations: 23.66 kB / 0.6015 GB, free: 12.71 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 4.217e-05/0.1155, allocations: 4 kB / 0.6015 GB, free: 12.7 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001019/0.1156, allocations: 73.14 kB / 0.6016 GB, free: 12.62 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=7): time 1.513e-06/0.1156, allocations: 0 / 0.6016 GB, free: 12.62 MB / 0.5261 GB Notification: Performance of matching and sorting (n=7): time 0.0001626/0.1158, allocations: 97.47 kB / 0.6017 GB, free: 12.52 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.88e-05/0.1158, allocations: 59.34 kB / 0.6017 GB, free: 12.45 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001616/0.116, allocations: 318.1 kB / 0.602 GB, free: 12.11 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.287e-05/0.116, allocations: 33.64 kB / 0.6021 GB, free: 12.07 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 9.398e-05/0.1161, allocations: 226.4 kB / 0.6023 GB, free: 11.85 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 1.878e-05/0.1161, allocations: 31.77 kB / 0.6023 GB, free: 11.82 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.545e-05/0.1162, allocations: 43.36 kB / 0.6024 GB, free: 11.77 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001166/0.1163, allocations: 0.5117 MB / 0.6029 GB, free: 11.24 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.896e-05/0.1163, allocations: 37.69 kB / 0.6029 GB, free: 11.2 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.709e-05/0.1164, allocations: 103.7 kB / 0.603 GB, free: 11.07 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.161e-05/0.1165, allocations: 123.1 kB / 0.6031 GB, free: 10.92 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1165, allocations: 0 / 0.6031 GB, free: 10.92 MB / 0.5261 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0001668/0.1167, allocations: 196.7 kB / 0.6033 GB, free: 10.71 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.752e-05/0.1167, allocations: 29.7 kB / 0.6033 GB, free: 10.67 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.1167, allocations: 7.938 kB / 0.6033 GB, free: 10.66 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.375e-06/0.1167, allocations: 0 / 0.6033 GB, free: 10.66 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.457e-05/0.1168, allocations: 31.97 kB / 0.6034 GB, free: 10.63 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.857e-06/0.1168, allocations: 4.156 kB / 0.6034 GB, free: 10.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.356e-05/0.1169, allocations: 27.83 kB / 0.6034 GB, free: 10.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.067e-06/0.1169, allocations: 4 kB / 0.6034 GB, free: 10.6 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.193e-05/0.117, allocations: 168.5 kB / 0.6036 GB, free: 10.42 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.207e-05/0.117, allocations: 23.86 kB / 0.6036 GB, free: 10.4 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001154/0.1171, allocations: 96.3 kB / 0.6037 GB, free: 10.3 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.1171, allocations: 0 / 0.6037 GB, free: 10.3 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.1171, allocations: 0 / 0.6037 GB, free: 10.3 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.1171, allocations: 0 / 0.6037 GB, free: 10.3 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000113/0.1172, allocations: 157 kB / 0.6038 GB, free: 10.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1172, allocations: 4 kB / 0.6038 GB, free: 10.12 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.674e-05/0.1173, allocations: 15.98 kB / 0.6038 GB, free: 10.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.1173, allocations: 0 / 0.6038 GB, free: 10.1 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.775e-06/0.1173, allocations: 4 kB / 0.6038 GB, free: 10.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.1173, allocations: 0 / 0.6038 GB, free: 10.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.1173, allocations: 4 kB / 0.6038 GB, free: 10.09 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001361/0.1174, allocations: 136.2 kB / 0.604 GB, free: 9.938 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 3.954e-05/0.1175, allocations: 31.8 kB / 0.604 GB, free: 9.906 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.695e-05/0.1175, allocations: 0 / 0.604 GB, free: 9.906 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.466e-05/0.1175, allocations: 11.98 kB / 0.604 GB, free: 9.895 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.278e-05/0.1176, allocations: 12.02 kB / 0.604 GB, free: 9.883 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.902e-06/0.1176, allocations: 4 kB / 0.604 GB, free: 9.879 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 9.548e-05/0.1177, allocations: 218.9 kB / 0.6042 GB, free: 9.664 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5e-08/0.1177, allocations: 0 / 0.6042 GB, free: 9.664 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0001749/0.1178, allocations: 43.89 kB / 0.6043 GB, free: 9.621 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.0001198/0.118, allocations: 106.5 kB / 0.6044 GB, free: 9.508 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0001525/0.1181, allocations: 148.8 kB / 0.6045 GB, free: 9.34 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.1181, allocations: 0 / 0.6045 GB, free: 9.34 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 3.433e-05/0.1181, allocations: 27.61 kB / 0.6046 GB, free: 9.309 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002495/0.1184, allocations: 69.53 kB / 0.6046 GB, free: 9.238 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007307/0.1191, allocations: 447.5 kB / 0.605 GB, free: 8.777 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.824e-05/0.1192, allocations: 76.33 kB / 0.6051 GB, free: 8.684 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 7.003e-05/0.1192, allocations: 25.94 kB / 0.6051 GB, free: 8.656 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001106/0.1193, allocations: 122.2 kB / 0.6053 GB, free: 8.535 MB / 0.5261 GB Notification: Performance of SimCode: time 7.82e-07/0.1193, allocations: 0 / 0.6053 GB, free: 8.535 MB / 0.5261 GB Notification: Performance of Templates: time 0.004745/0.1241, allocations: 2.907 MB / 0.6081 GB, free: 5.73 MB / 0.5261 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.5593469329178333]