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.0008486/0.0008486, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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.0009657/0.0009657, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.8945/0.8945, allocations: 177.2 MB / 202.8 MB, free: 5.73 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.5047/0.5047, allocations: 80.17 MB / 339.4 MB, free: 7.539 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: "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,fileNamePrefix="ThermofluidStream_ThermofluidStream_Boundaries_Tests_TerminalSourceSink",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,fileNamePrefix="ThermofluidStream_ThermofluidStream_Boundaries_Tests_TerminalSourceSink",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 0.4924 GB, free: 6.641 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.222e-05/1.348e-05, allocations: 6.062 kB / 0.4924 GB, free: 6.637 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.1034/0.1035, allocations: 121.8 MB / 0.6114 GB, free: 14.16 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.001111/0.1046, allocations: 1.149 MB / 0.6125 GB, free: 13.01 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001989/0.1048, allocations: 19.81 kB / 0.6125 GB, free: 12.99 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0004807/0.1052, allocations: 119.2 kB / 0.6126 GB, free: 12.88 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.000353/0.1056, allocations: 154.9 kB / 0.6128 GB, free: 12.72 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003555/0.106, allocations: 179.2 kB / 0.6129 GB, free: 12.55 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0003226/0.1063, allocations: 358.3 kB / 0.6133 GB, free: 12.2 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/0.1064, allocations: 49.08 kB / 0.6133 GB, free: 12.14 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000413/0.1068, allocations: 275 kB / 0.6136 GB, free: 11.87 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001215/0.1069, allocations: 111.7 kB / 0.6137 GB, free: 11.76 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 2.004e-05/0.107, allocations: 12 kB / 0.6137 GB, free: 11.75 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002344/0.1072, allocations: 171.6 kB / 0.6139 GB, free: 11.58 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 6.358e-05/0.1073, allocations: 39.78 kB / 0.6139 GB, free: 11.54 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 6.987e-05/0.1073, allocations: 63.84 kB / 0.614 GB, free: 11.48 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.000382/0.1077, allocations: 295 kB / 0.6142 GB, free: 11.19 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.1077, allocations: 0 / 0.6142 GB, free: 11.19 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.445e-06/0.1077, allocations: 0 / 0.6142 GB, free: 11.19 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 6.462e-06/0.1077, allocations: 0 / 0.6142 GB, free: 11.19 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.0008553/0.1086, allocations: 0.518 MB / 0.6148 GB, free: 10.64 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.226e-05/0.1086, allocations: 9.469 kB / 0.6148 GB, free: 10.63 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.276e-05/0.1087, allocations: 46.69 kB / 0.6148 GB, free: 10.57 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.153e-05/0.1087, allocations: 32.75 kB / 0.6148 GB, free: 10.54 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004607/0.1092, allocations: 255.3 kB / 0.6151 GB, free: 10.27 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.752e-05/0.1092, allocations: 8.375 kB / 0.6151 GB, free: 10.26 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.545e-05/0.1093, allocations: 12.38 kB / 0.6151 GB, free: 10.25 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003015/0.1096, allocations: 177.7 kB / 0.6153 GB, free: 10.05 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.1096, allocations: 0 / 0.6153 GB, free: 10.05 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.973e-05/0.1096, allocations: 12 kB / 0.6153 GB, free: 10.04 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.1096, allocations: 4 kB / 0.6153 GB, free: 10.04 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001882/0.1098, allocations: 99.86 kB / 0.6154 GB, free: 9.941 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007853/0.1106, allocations: 0.7102 MB / 0.6161 GB, free: 9.172 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002013/0.1108, allocations: 90.52 kB / 0.6162 GB, free: 9.074 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.82e-05/0.1108, allocations: 36.95 kB / 0.6162 GB, free: 9.035 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 6.072e-05/0.1109, allocations: 4 kB / 0.6162 GB, free: 9.031 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001624/0.1111, allocations: 91.3 kB / 0.6163 GB, free: 8.93 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.1111, allocations: 0 / 0.6163 GB, free: 8.93 MB / 0.5261 GB Notification: Performance of matching and sorting (n=7): time 0.0003074/0.1114, allocations: 161.4 kB / 0.6164 GB, free: 8.766 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.384e-05/0.1114, allocations: 59.34 kB / 0.6165 GB, free: 8.695 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001793/0.1116, allocations: 276.5 kB / 0.6168 GB, free: 8.422 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.334e-05/0.1116, allocations: 37.58 kB / 0.6168 GB, free: 8.379 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 8.655e-05/0.1117, allocations: 175.7 kB / 0.617 GB, free: 8.203 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 1.86e-05/0.1117, allocations: 23.84 kB / 0.617 GB, free: 8.18 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.65e-05/0.1118, allocations: 33.72 kB / 0.617 GB, free: 8.141 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.346e-05/0.1118, allocations: 330.8 kB / 0.6173 GB, free: 7.809 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001031/0.1119, allocations: 73.66 kB / 0.6174 GB, free: 7.73 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000103/0.112, allocations: 114.8 kB / 0.6175 GB, free: 7.594 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001692/0.1122, allocations: 158.7 kB / 0.6177 GB, free: 7.414 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.1122, allocations: 0 / 0.6177 GB, free: 7.414 MB / 0.5261 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002659/0.1125, allocations: 244.8 kB / 0.6179 GB, free: 7.156 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.049e-05/0.1125, allocations: 29.7 kB / 0.6179 GB, free: 7.121 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.1125, allocations: 7.938 kB / 0.6179 GB, free: 7.113 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.1125, allocations: 3.984 kB / 0.6179 GB, free: 7.109 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001013/0.1126, allocations: 31.92 kB / 0.618 GB, free: 7.078 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.712e-06/0.1127, allocations: 3.938 kB / 0.618 GB, free: 7.074 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.521e-05/0.1127, allocations: 27.88 kB / 0.618 GB, free: 7.047 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.031e-05/0.1127, allocations: 4 kB / 0.618 GB, free: 7.043 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 9.378e-05/0.1128, allocations: 137.9 kB / 0.6181 GB, free: 6.898 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.865e-05/0.1129, allocations: 23.86 kB / 0.6182 GB, free: 6.875 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002077/0.1131, allocations: 131.5 kB / 0.6183 GB, free: 6.734 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.1131, allocations: 4 kB / 0.6183 GB, free: 6.73 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.326e-06/0.1131, allocations: 11.92 kB / 0.6183 GB, free: 6.719 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.379e-06/0.1131, allocations: 3.984 kB / 0.6183 GB, free: 6.715 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001547/0.1132, allocations: 200.7 kB / 0.6185 GB, free: 6.477 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.1132, allocations: 0 / 0.6185 GB, free: 6.477 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.135e-05/0.1133, allocations: 19.98 kB / 0.6185 GB, free: 6.457 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.1133, allocations: 4 kB / 0.6185 GB, free: 6.453 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.316e-06/0.1133, allocations: 0 / 0.6185 GB, free: 6.453 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.1133, allocations: 0 / 0.6185 GB, free: 6.453 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.1133, allocations: 3.938 kB / 0.6185 GB, free: 6.449 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002611/0.1136, allocations: 196.8 kB / 0.6187 GB, free: 6.238 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 2.264e-05/0.1136, allocations: 19.89 kB / 0.6187 GB, free: 6.219 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.1136, allocations: 4 kB / 0.6187 GB, free: 6.215 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.718e-05/0.1137, allocations: 12.05 kB / 0.6187 GB, free: 6.203 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.617e-05/0.1137, allocations: 11.92 kB / 0.6188 GB, free: 6.191 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.334e-06/0.1137, allocations: 11.94 kB / 0.6188 GB, free: 6.18 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0001216/0.1138, allocations: 195.1 kB / 0.6189 GB, free: 5.988 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5e-08/0.1138, allocations: 0 / 0.6189 GB, free: 5.988 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0001864/0.114, allocations: 47.89 kB / 0.619 GB, free: 5.941 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.0005383/0.1146, allocations: 0.7645 MB / 0.6197 GB, free: 5.148 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0002279/0.1148, allocations: 181 kB / 0.6199 GB, free: 4.953 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.1148, allocations: 0 / 0.6199 GB, free: 4.953 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 6.959e-05/0.1149, allocations: 40.28 kB / 0.62 GB, free: 4.914 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000277/0.1151, allocations: 73.44 kB / 0.62 GB, free: 4.844 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001906/0.117, allocations: 2.366 MB / 0.6223 GB, free: 2.332 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.904e-05/0.1171, allocations: 142.1 kB / 0.6225 GB, free: 2.172 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 7.093e-05/0.1172, allocations: 21.94 kB / 0.6225 GB, free: 2.152 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.802e-05/0.1173, allocations: 76.47 kB / 0.6226 GB, free: 2.078 MB / 0.5261 GB Notification: Performance of SimCode: time 6.02e-07/0.1173, allocations: 4 kB / 0.6226 GB, free: 2.074 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02039/0.1377, allocations: 6.698 MB / 0.6291 GB, free: 11.55 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.259/7.396, allocations: 4 kB / 0.6291 GB, free: 11.55 MB / 0.5417 GB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Boundaries_Tests_TerminalSourceSink_fmu --startTime=0 --stopTime=10 --stepSize=0.01 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Boundaries_Tests_TerminalSourceSink.fmu > ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) [Timeout 1260.0] 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] "Error: Could not read variable pulse.T_start in file ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.903612519614398]