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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Boundaries_Tests_TerminalSourceSink",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Boundaries_Tests_TerminalSourceSink",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008422/0.008422, allocations: 98.8 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002254/0.002254, allocations: 195.2 kB / 16.68 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.512/1.512, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7667/0.7667, allocations: 93.7 MB / 384.2 MB, free: 6.918 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002338/0.002338, allocations: 75.88 kB / 0.5199 GB, free: 6.332 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1415/0.1439, allocations: 68.28 MB / 0.5866 GB, free: 1.977 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.4815/0.6255, allocations: 140.5 MB / 0.7238 GB, free: 6.258 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002619/0.6281, allocations: 2.117 MB / 0.7258 GB, free: 4.133 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000226/0.6284, allocations: 15.88 kB / 0.7259 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0005119/0.6289, allocations: 119.2 kB / 0.726 GB, free: 4 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0004395/0.6294, allocations: 147 kB / 0.7261 GB, free: 3.855 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004718/0.6299, allocations: 175.4 kB / 0.7263 GB, free: 3.684 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0004265/0.6303, allocations: 322.7 kB / 0.7266 GB, free: 3.367 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001934/0.6305, allocations: 82.12 kB / 0.7267 GB, free: 3.281 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004937/0.631, allocations: 203 kB / 0.7269 GB, free: 3.082 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002176/0.6313, allocations: 119.5 kB / 0.727 GB, free: 2.965 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.186e-05/0.6313, allocations: 16 kB / 0.727 GB, free: 2.949 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004397/0.6318, allocations: 203.6 kB / 0.7272 GB, free: 2.75 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 7.429e-05/0.6318, allocations: 43.78 kB / 0.7272 GB, free: 2.707 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001201/0.632, allocations: 103.4 kB / 0.7273 GB, free: 2.605 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0005194/0.6325, allocations: 302.6 kB / 0.7276 GB, free: 2.316 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.6325, allocations: 0 / 0.7276 GB, free: 2.316 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.683e-06/0.6325, allocations: 0 / 0.7276 GB, free: 2.316 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.191e-06/0.6325, allocations: 0 / 0.7276 GB, free: 2.316 MB / 0.5606 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.001057/0.6336, allocations: 0.5816 MB / 0.7282 GB, free: 1.68 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.6336, allocations: 11.97 kB / 0.7282 GB, free: 1.668 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.76e-05/0.6337, allocations: 46.73 kB / 0.7282 GB, free: 1.613 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.981e-05/0.6338, allocations: 37.62 kB / 0.7283 GB, free: 1.578 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005251/0.6343, allocations: 315.7 kB / 0.7286 GB, free: 1.23 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.988e-05/0.6343, allocations: 16.38 kB / 0.7286 GB, free: 1.215 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.853e-05/0.6344, allocations: 12.38 kB / 0.7286 GB, free: 1.203 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003649/0.6347, allocations: 172.9 kB / 0.7288 GB, free: 1.016 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.6348, allocations: 0 / 0.7288 GB, free: 1.016 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.813e-05/0.6348, allocations: 8 kB / 0.7288 GB, free: 1.008 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.114e-06/0.6348, allocations: 4 kB / 0.7288 GB, free: 1.004 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003153/0.6351, allocations: 103.9 kB / 0.7289 GB, free: 0.9023 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001168/0.6363, allocations: 0.9066 MB / 0.7298 GB, free: 15.9 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003098/0.6366, allocations: 83.84 kB / 0.7298 GB, free: 15.81 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001354/0.6368, allocations: 40.95 kB / 0.7299 GB, free: 15.77 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001024/0.6369, allocations: 77.11 kB / 0.7299 GB, free: 15.67 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002486/0.6371, allocations: 95.33 kB / 0.73 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=7): time 4.438e-06/0.6372, allocations: 0 / 0.73 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of matching and sorting (n=7): time 0.0005256/0.6377, allocations: 161.9 kB / 0.7302 GB, free: 15.4 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.64e-05/0.6377, allocations: 55.39 kB / 0.7302 GB, free: 15.34 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002763/0.638, allocations: 267.4 kB / 0.7305 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.321e-05/0.6381, allocations: 33.69 kB / 0.7305 GB, free: 15.03 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001323/0.6382, allocations: 175.8 kB / 0.7307 GB, free: 14.85 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.56e-05/0.6382, allocations: 27.78 kB / 0.7307 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.079e-05/0.6383, allocations: 25.72 kB / 0.7308 GB, free: 14.79 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001501/0.6384, allocations: 338.8 kB / 0.7311 GB, free: 14.45 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000153/0.6386, allocations: 43.95 kB / 0.7311 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001731/0.6388, allocations: 89.06 kB / 0.7312 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003261/0.6391, allocations: 154.7 kB / 0.7314 GB, free: 14.13 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.6391, allocations: 0 / 0.7314 GB, free: 14.13 MB / 0.5762 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004419/0.6396, allocations: 211 kB / 0.7316 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.912e-05/0.6396, allocations: 29.7 kB / 0.7316 GB, free: 13.88 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.6396, allocations: 7.938 kB / 0.7316 GB, free: 13.87 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.902e-05/0.6397, allocations: 160 / 0.7316 GB, free: 13.87 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001614/0.6398, allocations: 36.86 kB / 0.7316 GB, free: 13.83 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.144e-05/0.6399, allocations: 7.922 kB / 0.7316 GB, free: 13.82 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001509/0.64, allocations: 19.89 kB / 0.7316 GB, free: 13.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.901e-05/0.64, allocations: 8.531 kB / 0.7317 GB, free: 13.8 MB / 0.5762 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 0.0001362/0.6402, allocations: 138.4 kB / 0.7318 GB, free: 13.65 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.364e-05/0.6402, allocations: 23.86 kB / 0.7318 GB, free: 13.63 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003657/0.6406, allocations: 151.2 kB / 0.732 GB, free: 13.48 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.6406, allocations: 0 / 0.732 GB, free: 13.48 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.6406, allocations: 0 / 0.732 GB, free: 13.48 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.6406, allocations: 1.875 kB / 0.732 GB, free: 13.48 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002461/0.6409, allocations: 241.6 kB / 0.7322 GB, free: 13.19 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.6409, allocations: 0 / 0.7322 GB, free: 13.19 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001106/0.641, allocations: 15.98 kB / 0.7322 GB, free: 13.18 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.641, allocations: 0 / 0.7322 GB, free: 13.18 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.365e-05/0.641, allocations: 3.938 kB / 0.7322 GB, free: 13.17 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.641, allocations: 6.969 kB / 0.7322 GB, free: 13.17 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.6411, allocations: 4 kB / 0.7322 GB, free: 13.16 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005004/0.6416, allocations: 192.8 kB / 0.7324 GB, free: 12.96 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.417e-05/0.6416, allocations: 101 kB / 0.7325 GB, free: 12.84 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.114e-05/0.6417, allocations: 3.938 kB / 0.7325 GB, free: 12.84 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001121/0.6418, allocations: 12.05 kB / 0.7325 GB, free: 12.82 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.951e-05/0.6419, allocations: 15.98 kB / 0.7325 GB, free: 12.81 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.985e-06/0.6419, allocations: 0.875 kB / 0.7325 GB, free: 12.81 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001895/0.6421, allocations: 194 kB / 0.7327 GB, free: 12.62 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6421, allocations: 0 / 0.7327 GB, free: 12.62 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000263/0.6423, allocations: 43.89 kB / 0.7328 GB, free: 12.57 MB / 0.5762 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.0008829/0.6432, allocations: 0.7656 MB / 0.7335 GB, free: 11.78 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0004198/0.6437, allocations: 160.7 kB / 0.7337 GB, free: 11.61 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.6437, allocations: 0 / 0.7337 GB, free: 11.61 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001479/0.6438, allocations: 39.97 kB / 0.7337 GB, free: 11.57 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003639/0.6442, allocations: 50.12 kB / 0.7337 GB, free: 11.53 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003199/0.6474, allocations: 2.277 MB / 0.736 GB, free: 9.133 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003825/0.6478, allocations: 0.744 MB / 0.7367 GB, free: 8.359 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 9.724e-05/0.6479, allocations: 21.89 kB / 0.7367 GB, free: 8.332 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001218/0.6481, allocations: 75.41 kB / 0.7368 GB, free: 8.258 MB / 0.5762 GB Notification: Performance of SimCode: time 3.51e-07/0.6481, allocations: 4 kB / 0.7368 GB, free: 8.254 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03057/0.6786, allocations: 5.234 MB / 0.7419 GB, free: 3.148 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.391/9.07, allocations: 9.625 kB / 0.7419 GB, free: 3.145 MB / 0.5762 GB (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 & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv --start-time 0 --stop-time 10 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 ThermofluidStream_dev_ThermofluidStream_Boundaries_Tests_TerminalSourceSink.fmu > ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.TerminalSourceSink_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches