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.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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00857/0.00857, allocations: 97.05 kB / 15.73 MB, free: 5.547 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.001894/0.001894, allocations: 190.1 kB / 16.67 MB, free: 5.48 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.419/1.419, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6784/0.6784, allocations: 91.19 MB / 381.7 MB, free: 7.488 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001568/0.001568, allocations: 83.88 kB / 0.5164 GB, free: 4.598 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3132/0.3148, allocations: 67.67 MB / 0.5825 GB, free: 13.66 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.1288/0.4436, allocations: 140.5 MB / 0.7196 GB, free: 1.078 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002257/0.4459, allocations: 2.107 MB / 0.7217 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001962/0.4461, allocations: 7.938 kB / 0.7217 GB, free: 14.95 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0004301/0.4465, allocations: 127.2 kB / 0.7218 GB, free: 14.83 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003633/0.4469, allocations: 143.1 kB / 0.7219 GB, free: 14.69 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003858/0.4473, allocations: 171.3 kB / 0.7221 GB, free: 14.52 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0003447/0.4477, allocations: 302.7 kB / 0.7224 GB, free: 14.22 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001524/0.4479, allocations: 68.81 kB / 0.7225 GB, free: 14.16 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004254/0.4483, allocations: 207.1 kB / 0.7227 GB, free: 13.95 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001755/0.4485, allocations: 123.4 kB / 0.7228 GB, free: 13.83 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.589e-05/0.4485, allocations: 12 kB / 0.7228 GB, free: 13.82 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003717/0.4489, allocations: 207.6 kB / 0.723 GB, free: 13.62 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 5.742e-05/0.449, allocations: 39.78 kB / 0.723 GB, free: 13.58 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 9.447e-05/0.4491, allocations: 99.41 kB / 0.7231 GB, free: 13.48 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004339/0.4495, allocations: 295.8 kB / 0.7234 GB, free: 13.2 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.4495, allocations: 0 / 0.7234 GB, free: 13.2 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.202e-06/0.4495, allocations: 3.938 kB / 0.7234 GB, free: 13.19 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.613e-06/0.4495, allocations: 0 / 0.7234 GB, free: 13.19 MB / 0.5762 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.0008947/0.4504, allocations: 0.5701 MB / 0.724 GB, free: 12.57 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.4505, allocations: 8.031 kB / 0.724 GB, free: 12.56 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.18e-05/0.4505, allocations: 42.73 kB / 0.724 GB, free: 12.51 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.034e-05/0.4506, allocations: 32.75 kB / 0.724 GB, free: 12.48 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004633/0.4511, allocations: 311.7 kB / 0.7243 GB, free: 12.13 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.4511, allocations: 4.375 kB / 0.7243 GB, free: 12.13 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.016e-05/0.4511, allocations: 20.38 kB / 0.7244 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003428/0.4515, allocations: 169 kB / 0.7245 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.4515, allocations: 0 / 0.7245 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.697e-05/0.4515, allocations: 4 kB / 0.7245 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.4515, allocations: 4 kB / 0.7245 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003025/0.4518, allocations: 103.9 kB / 0.7246 GB, free: 11.82 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009904/0.4528, allocations: 0.9027 MB / 0.7255 GB, free: 10.82 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002915/0.4532, allocations: 86.53 kB / 0.7256 GB, free: 10.72 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001243/0.4533, allocations: 40.95 kB / 0.7256 GB, free: 10.68 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 9.423e-05/0.4534, allocations: 93.02 kB / 0.7257 GB, free: 10.57 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002208/0.4536, allocations: 95.34 kB / 0.7258 GB, free: 10.46 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=7): time 1.472e-06/0.4536, allocations: 0 / 0.7258 GB, free: 10.46 MB / 0.5762 GB Notification: Performance of matching and sorting (n=7): time 0.0004711/0.4541, allocations: 149.4 kB / 0.726 GB, free: 10.31 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.312e-05/0.4542, allocations: 59.34 kB / 0.726 GB, free: 10.24 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002239/0.4544, allocations: 259 kB / 0.7263 GB, free: 9.977 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.105e-05/0.4544, allocations: 29.7 kB / 0.7263 GB, free: 9.941 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.857e-05/0.4545, allocations: 175.7 kB / 0.7265 GB, free: 9.766 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.746e-05/0.4545, allocations: 15.86 kB / 0.7265 GB, free: 9.75 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.681e-05/0.4546, allocations: 41.66 kB / 0.7265 GB, free: 9.703 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.703e-05/0.4547, allocations: 334.8 kB / 0.7268 GB, free: 9.367 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000139/0.4549, allocations: 43.91 kB / 0.7269 GB, free: 9.324 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001552/0.455, allocations: 85.11 kB / 0.727 GB, free: 9.223 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002757/0.4553, allocations: 146.8 kB / 0.7271 GB, free: 9.055 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.4553, allocations: 0 / 0.7271 GB, free: 9.055 MB / 0.5762 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000401/0.4557, allocations: 211 kB / 0.7273 GB, free: 8.836 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.48e-05/0.4558, allocations: 37.69 kB / 0.7273 GB, free: 8.793 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.4558, allocations: 3.938 kB / 0.7273 GB, free: 8.789 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.4558, allocations: 4 kB / 0.7273 GB, free: 8.785 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001527/0.456, allocations: 32.08 kB / 0.7274 GB, free: 8.754 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.251e-06/0.456, allocations: 4 kB / 0.7274 GB, free: 8.75 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001482/0.4561, allocations: 31.88 kB / 0.7274 GB, free: 8.719 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.604e-05/0.4561, allocations: 4 kB / 0.7274 GB, free: 8.715 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.0001105/0.4563, allocations: 142.6 kB / 0.7275 GB, free: 8.566 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.889e-05/0.4563, allocations: 19.86 kB / 0.7276 GB, free: 8.547 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003311/0.4566, allocations: 135.3 kB / 0.7277 GB, free: 8.406 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.4567, allocations: 8 kB / 0.7277 GB, free: 8.398 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.4567, allocations: 0 / 0.7277 GB, free: 8.398 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.4567, allocations: 0 / 0.7277 GB, free: 8.398 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001925/0.4569, allocations: 241.5 kB / 0.7279 GB, free: 8.113 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.4569, allocations: 0 / 0.7279 GB, free: 8.113 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001068/0.457, allocations: 15.98 kB / 0.7279 GB, free: 8.098 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.457, allocations: 0 / 0.7279 GB, free: 8.098 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.552e-05/0.457, allocations: 7.922 kB / 0.728 GB, free: 8.09 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.457, allocations: 7.938 kB / 0.728 GB, free: 8.082 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.457, allocations: 0 / 0.728 GB, free: 8.082 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000432/0.4575, allocations: 188.9 kB / 0.7281 GB, free: 7.879 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 5.588e-05/0.4575, allocations: 97 kB / 0.7282 GB, free: 7.766 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.074e-05/0.4576, allocations: 7.938 kB / 0.7282 GB, free: 7.758 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001053/0.4577, allocations: 7.984 kB / 0.7283 GB, free: 7.75 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.554e-05/0.4577, allocations: 15.98 kB / 0.7283 GB, free: 7.734 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.965e-06/0.4578, allocations: 4.062 kB / 0.7283 GB, free: 7.73 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001662/0.4579, allocations: 186 kB / 0.7284 GB, free: 7.551 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4579, allocations: 0 / 0.7284 GB, free: 7.551 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002638/0.4582, allocations: 39.94 kB / 0.7285 GB, free: 7.512 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.0007562/0.459, allocations: 0.7767 MB / 0.7292 GB, free: 6.703 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00036/0.4593, allocations: 159.6 kB / 0.7294 GB, free: 6.535 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.4594, allocations: 8 kB / 0.7294 GB, free: 6.527 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001384/0.4595, allocations: 43.91 kB / 0.7294 GB, free: 6.484 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003191/0.4598, allocations: 45.2 kB / 0.7295 GB, free: 6.445 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002646/0.4625, allocations: 2.246 MB / 0.7317 GB, free: 4.086 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002415/0.4627, allocations: 0.732 MB / 0.7324 GB, free: 3.328 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 8.219e-05/0.4628, allocations: 25.94 kB / 0.7324 GB, free: 3.301 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.16e-05/0.4629, allocations: 75.41 kB / 0.7325 GB, free: 3.227 MB / 0.5762 GB Notification: Performance of SimCode: time 2.61e-07/0.4629, allocations: 0 / 0.7325 GB, free: 3.227 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2736/0.7365, allocations: 5.11 MB / 0.7375 GB, free: 153.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.834/8.57, allocations: 4.531 kB / 0.7375 GB, free: 153.9 MB / 0.5762 GB (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 & python3 -m fmpy simulate --output-file ThermofluidStream_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_ThermofluidStream_Boundaries_Tests_TerminalSourceSink.fmu > ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) diffSimulationResults("ThermofluidStream_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_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches