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.001085/0.001085, allocations: 76.5 kB / 19.93 MB, free: 4.633 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.0008102/0.0008102, allocations: 173.9 kB / 23.21 MB, free: 1.355 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.8515/0.8515, allocations: 177.1 MB / 203.5 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo): time 0.5141/0.5141, allocations: 80.18 MB / 340.1 MB, free: 7.535 MB / 314.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.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.372e-06/1.372e-06, allocations: 0 / 0.4936 GB, free: 6.359 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.757e-05/1.895e-05, allocations: 2.281 kB / 0.4936 GB, free: 6.355 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.1043/0.1044, allocations: 121.8 MB / 0.6126 GB, free: 13.72 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.001098/0.1055, allocations: 1.149 MB / 0.6137 GB, free: 12.57 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001292/0.1056, allocations: 19.81 kB / 0.6137 GB, free: 12.55 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0003802/0.106, allocations: 107.2 kB / 0.6138 GB, free: 12.44 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.0002669/0.1062, allocations: 170.8 kB / 0.614 GB, free: 12.27 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002267/0.1065, allocations: 175.2 kB / 0.6142 GB, free: 12.1 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0002613/0.1067, allocations: 354.3 kB / 0.6145 GB, free: 11.75 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001211/0.1068, allocations: 50.86 kB / 0.6145 GB, free: 11.7 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003408/0.1072, allocations: 271.1 kB / 0.6148 GB, free: 11.43 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000111/0.1073, allocations: 107.7 kB / 0.6149 GB, free: 11.33 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 1.896e-05/0.1073, allocations: 12 kB / 0.6149 GB, free: 11.32 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001788/0.1075, allocations: 175.5 kB / 0.6151 GB, free: 11.14 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 5.401e-05/0.1076, allocations: 43.77 kB / 0.6151 GB, free: 11.1 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 5.611e-05/0.1076, allocations: 63.84 kB / 0.6152 GB, free: 11.04 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0003036/0.1079, allocations: 295 kB / 0.6155 GB, free: 10.75 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.1079, allocations: 3.938 kB / 0.6155 GB, free: 10.75 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.303e-06/0.1079, allocations: 0 / 0.6155 GB, free: 10.75 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.68e-06/0.1079, allocations: 4 kB / 0.6155 GB, free: 10.74 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.0006479/0.1086, allocations: 0.5063 MB / 0.616 GB, free: 10.2 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.218e-05/0.1086, allocations: 14.06 kB / 0.616 GB, free: 10.19 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.576e-05/0.1086, allocations: 28.75 kB / 0.616 GB, free: 10.16 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003188/0.109, allocations: 263.2 kB / 0.6163 GB, free: 9.875 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.248e-05/0.109, allocations: 12.38 kB / 0.6163 GB, free: 9.863 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.865e-05/0.109, allocations: 16.36 kB / 0.6163 GB, free: 9.848 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002154/0.1092, allocations: 169.9 kB / 0.6164 GB, free: 9.664 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.1092, allocations: 3.938 kB / 0.6165 GB, free: 9.66 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.42e-05/0.1092, allocations: 12 kB / 0.6165 GB, free: 9.648 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.451e-06/0.1093, allocations: 4 kB / 0.6165 GB, free: 9.645 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000162/0.1094, allocations: 99.86 kB / 0.6166 GB, free: 9.547 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005872/0.11, allocations: 0.6796 MB / 0.6172 GB, free: 8.82 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001673/0.1102, allocations: 94.45 kB / 0.6173 GB, free: 8.719 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.255e-05/0.1102, allocations: 36.95 kB / 0.6174 GB, free: 8.68 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 5.234e-05/0.1103, allocations: 4 kB / 0.6174 GB, free: 8.676 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001388/0.1104, allocations: 87.34 kB / 0.6174 GB, free: 8.578 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=7): time 1.372e-06/0.1104, allocations: 0 / 0.6174 GB, free: 8.578 MB / 0.5261 GB Notification: Performance of matching and sorting (n=7): time 0.0002765/0.1107, allocations: 165.3 kB / 0.6176 GB, free: 8.41 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.173e-05/0.1107, allocations: 59.39 kB / 0.6177 GB, free: 8.34 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001675/0.1109, allocations: 256.2 kB / 0.6179 GB, free: 8.086 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.427e-05/0.1109, allocations: 29.7 kB / 0.6179 GB, free: 8.051 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 8.305e-05/0.111, allocations: 184 kB / 0.6181 GB, free: 7.867 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 1.544e-05/0.111, allocations: 19.8 kB / 0.6181 GB, free: 7.848 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.866e-05/0.111, allocations: 37.7 kB / 0.6182 GB, free: 7.805 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.242e-05/0.1111, allocations: 342.8 kB / 0.6185 GB, free: 7.461 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.656e-05/0.1112, allocations: 65.67 kB / 0.6185 GB, free: 7.391 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.877e-05/0.1113, allocations: 110.8 kB / 0.6187 GB, free: 7.258 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001501/0.1115, allocations: 154.7 kB / 0.6188 GB, free: 7.082 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.1115, allocations: 0 / 0.6188 GB, free: 7.082 MB / 0.5261 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002264/0.1117, allocations: 240.8 kB / 0.619 GB, free: 6.828 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.429e-05/0.1117, allocations: 29.7 kB / 0.6191 GB, free: 6.793 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.1117, allocations: 4 kB / 0.6191 GB, free: 6.789 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.1117, allocations: 3.938 kB / 0.6191 GB, free: 6.785 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.204e-05/0.1118, allocations: 31.97 kB / 0.6191 GB, free: 6.754 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.1118, allocations: 7.938 kB / 0.6191 GB, free: 6.746 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.383e-05/0.1119, allocations: 27.81 kB / 0.6191 GB, free: 6.719 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.897e-06/0.1119, allocations: 4 kB / 0.6191 GB, free: 6.715 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.996e-05/0.112, allocations: 141.9 kB / 0.6193 GB, free: 6.566 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.645e-05/0.112, allocations: 27.81 kB / 0.6193 GB, free: 6.539 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001829/0.1122, allocations: 135.5 kB / 0.6194 GB, free: 6.391 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.1122, allocations: 0 / 0.6194 GB, free: 6.391 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.065e-06/0.1122, allocations: 0 / 0.6194 GB, free: 6.391 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.1122, allocations: 4 kB / 0.6194 GB, free: 6.387 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001015/0.1123, allocations: 173.2 kB / 0.6196 GB, free: 6.188 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.1123, allocations: 0 / 0.6196 GB, free: 6.188 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.335e-05/0.1124, allocations: 23.98 kB / 0.6196 GB, free: 6.164 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.1124, allocations: 0 / 0.6196 GB, free: 6.164 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-06/0.1124, allocations: 4 kB / 0.6196 GB, free: 6.16 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.32e-07/0.1124, allocations: 0 / 0.6196 GB, free: 6.16 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1124, allocations: 3.984 kB / 0.6196 GB, free: 6.156 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002344/0.1126, allocations: 192.8 kB / 0.6198 GB, free: 5.949 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 1.854e-05/0.1126, allocations: 15.89 kB / 0.6198 GB, free: 5.934 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.653e-05/0.1126, allocations: 4 kB / 0.6198 GB, free: 5.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.496e-05/0.1127, allocations: 23.97 kB / 0.6199 GB, free: 5.906 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.156e-05/0.1127, allocations: 11.98 kB / 0.6199 GB, free: 5.895 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.57e-06/0.1127, allocations: 4 kB / 0.6199 GB, free: 5.891 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0001043/0.1128, allocations: 183.1 kB / 0.62 GB, free: 5.715 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7e-08/0.1128, allocations: 0 / 0.62 GB, free: 5.715 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0004126/0.1132, allocations: 51.88 kB / 0.6201 GB, free: 5.664 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.0001531/0.1134, allocations: 139.1 kB / 0.6202 GB, free: 5.52 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0002133/0.1136, allocations: 181 kB / 0.6204 GB, free: 5.324 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.1136, allocations: 0 / 0.6204 GB, free: 5.324 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 6.497e-05/0.1137, allocations: 39.91 kB / 0.6204 GB, free: 5.285 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002395/0.1139, allocations: 68.59 kB / 0.6205 GB, free: 5.223 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004972/0.1144, allocations: 437.2 kB / 0.6209 GB, free: 4.762 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.264e-05/0.1145, allocations: 134.2 kB / 0.621 GB, free: 4.605 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.424e-05/0.1145, allocations: 20.5 kB / 0.6211 GB, free: 4.586 MB / 0.5261 GB Notification: Performance of SimCode: time 3e-07/0.1145, allocations: 0 / 0.6211 GB, free: 4.586 MB / 0.5261 GB Notification: Performance of Templates: time 0.003151/0.1177, allocations: 3.248 MB / 0.6242 GB, free: 1.352 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=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.TerminalSourceSink_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.019138122908771]