Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.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/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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.SourceSink,fileNamePrefix="ThermofluidStream_ThermofluidStream_Boundaries_Tests_SourceSink",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.SourceSink,fileNamePrefix="ThermofluidStream_ThermofluidStream_Boundaries_Tests_SourceSink",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.004662/0.004662, allocations: 97.62 kB / 15.73 MB, free: 6.059 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.001257/0.001257, allocations: 197.5 kB / 16.68 MB, free: 5.977 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.362/1.362, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.6689/0.6689, allocations: 89.46 MB / 380 MB, free: 10.93 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002125/0.002125, allocations: 79.86 kB / 0.5139 GB, free: 11.75 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1301, allocations: 67.29 MB / 0.5796 GB, free: 8.375 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.SourceSink): time 0.4327/0.5628, allocations: 140.4 MB / 0.7167 GB, free: 48 kB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.003544/0.5664, allocations: 3.267 MB / 0.7199 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001168/0.5665, allocations: 4 kB / 0.7199 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0005133/0.5671, allocations: 127.2 kB / 0.72 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.000354/0.5674, allocations: 143.1 kB / 0.7202 GB, free: 12.5 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004272/0.5679, allocations: 195.3 kB / 0.7204 GB, free: 12.31 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003508/0.5683, allocations: 267.2 kB / 0.7206 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001599/0.5684, allocations: 54.16 kB / 0.7207 GB, free: 12 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003962/0.5688, allocations: 167.3 kB / 0.7208 GB, free: 11.83 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001698/0.569, allocations: 99.61 kB / 0.7209 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.36e-05/0.5691, allocations: 12 kB / 0.7209 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004687/0.5695, allocations: 257 kB / 0.7212 GB, free: 11.47 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 3.495e-05/0.5696, allocations: 31.86 kB / 0.7212 GB, free: 11.44 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 8.331e-05/0.5697, allocations: 79.61 kB / 0.7213 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003996/0.5701, allocations: 242.8 kB / 0.7215 GB, free: 11.13 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.5701, allocations: 0 / 0.7215 GB, free: 11.13 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.743e-06/0.5701, allocations: 4 kB / 0.7215 GB, free: 11.13 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.106e-05/0.5701, allocations: 0 / 0.7215 GB, free: 11.13 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0007321/0.5709, allocations: 478.7 kB / 0.722 GB, free: 10.61 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.5709, allocations: 12.03 kB / 0.722 GB, free: 10.6 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.757e-05/0.571, allocations: 42.75 kB / 0.722 GB, free: 10.55 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.195e-05/0.571, allocations: 16.84 kB / 0.7221 GB, free: 10.53 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002728/0.5713, allocations: 236 kB / 0.7223 GB, free: 10.26 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/0.5713, allocations: 12.61 kB / 0.7223 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.029e-05/0.5714, allocations: 8.562 kB / 0.7223 GB, free: 10.24 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002536/0.5716, allocations: 162.6 kB / 0.7225 GB, free: 10.07 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.5716, allocations: 0 / 0.7225 GB, free: 10.07 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.199e-05/0.5717, allocations: 3.938 kB / 0.7225 GB, free: 10.06 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.974e-06/0.5717, allocations: 4 kB / 0.7225 GB, free: 10.06 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000139/0.5718, allocations: 75.91 kB / 0.7225 GB, free: 9.984 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008955/0.5727, allocations: 0.7038 MB / 0.7232 GB, free: 9.219 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001504/0.5729, allocations: 85.16 kB / 0.7233 GB, free: 9.117 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.415e-05/0.573, allocations: 41.73 kB / 0.7233 GB, free: 9.07 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001719/0.5731, allocations: 162.2 kB / 0.7235 GB, free: 8.875 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.329e-05/0.5732, allocations: 38.48 kB / 0.7235 GB, free: 8.828 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.262e-06/0.5732, allocations: 0 / 0.7235 GB, free: 8.828 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.0006969/0.5739, allocations: 325.4 kB / 0.7238 GB, free: 8.461 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.807e-05/0.574, allocations: 85.09 kB / 0.7239 GB, free: 8.359 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002287/0.5742, allocations: 217 kB / 0.7241 GB, free: 8.137 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.836e-05/0.5742, allocations: 25.7 kB / 0.7242 GB, free: 8.105 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 9.005e-05/0.5743, allocations: 120.1 kB / 0.7243 GB, free: 7.984 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.411e-05/0.5744, allocations: 35.73 kB / 0.7243 GB, free: 7.949 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.273e-05/0.5744, allocations: 21.72 kB / 0.7243 GB, free: 7.922 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001573/0.5746, allocations: 330.8 kB / 0.7246 GB, free: 7.59 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.328e-05/0.5746, allocations: 16 kB / 0.7247 GB, free: 7.574 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.956e-05/0.5747, allocations: 51.36 kB / 0.7247 GB, free: 7.512 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001108/0.5748, allocations: 79.36 kB / 0.7248 GB, free: 7.422 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.5748, allocations: 0 / 0.7248 GB, free: 7.422 MB / 0.5606 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002505/0.5751, allocations: 143.2 kB / 0.7249 GB, free: 7.27 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.5751, allocations: 7.938 kB / 0.7249 GB, free: 7.262 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.5751, allocations: 3.938 kB / 0.7249 GB, free: 7.258 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002111/0.5753, allocations: 45.77 kB / 0.725 GB, free: 7.207 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.215e-05/0.5754, allocations: 11.98 kB / 0.725 GB, free: 7.195 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002144/0.5775, allocations: 2.764 MB / 0.7277 GB, free: 4.156 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.231e-05/0.5776, allocations: 16.77 kB / 0.7277 GB, free: 4.141 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.055e-06/0.5776, allocations: 0 / 0.7277 GB, free: 4.141 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000118/0.5777, allocations: 126.5 kB / 0.7278 GB, free: 4.008 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.609e-05/0.5778, allocations: 27.8 kB / 0.7278 GB, free: 3.98 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002795/0.5781, allocations: 146.4 kB / 0.728 GB, free: 3.816 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.5781, allocations: 0 / 0.728 GB, free: 3.816 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.414e-06/0.5781, allocations: 3.938 kB / 0.728 GB, free: 3.812 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.5781, allocations: 0 / 0.728 GB, free: 3.812 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005163/0.5786, allocations: 0.5069 MB / 0.7285 GB, free: 3.238 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.5787, allocations: 0 / 0.7285 GB, free: 3.238 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.75e-05/0.5787, allocations: 4 kB / 0.7285 GB, free: 3.234 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001243/0.5788, allocations: 41.69 kB / 0.7285 GB, free: 3.188 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.5788, allocations: 8.125 kB / 0.7285 GB, free: 3.18 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002005/0.5808, allocations: 2.765 MB / 0.7312 GB, free: 144 kB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.5809, allocations: 7.969 kB / 0.7312 GB, free: 136 kB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003412/0.5812, allocations: 322 kB / 0.7316 GB, free: 15.79 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.853e-05/0.5813, allocations: 97.05 kB / 0.7316 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.315e-05/0.5813, allocations: 3.984 kB / 0.7316 GB, free: 15.67 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001081/0.5814, allocations: 0 / 0.7316 GB, free: 15.67 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.771e-05/0.5815, allocations: 11.94 kB / 0.7317 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.802e-06/0.5815, allocations: 7.984 kB / 0.7317 GB, free: 15.65 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001619/0.5816, allocations: 164.5 kB / 0.7318 GB, free: 15.49 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5816, allocations: 0 / 0.7318 GB, free: 15.49 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003488/0.582, allocations: 51.98 kB / 0.7319 GB, free: 15.44 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (sink1.inlet.m_flow,sink.inlet.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007849/0.5828, allocations: 0.9063 MB / 0.7328 GB, free: 14.49 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0004328/0.5832, allocations: 281.2 kB / 0.733 GB, free: 14.19 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.054e-06/0.5833, allocations: 0 / 0.733 GB, free: 14.19 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000257/0.5835, allocations: 261.4 kB / 0.7333 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006022/0.5841, allocations: 53.58 kB / 0.7333 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00255/0.5867, allocations: 2.257 MB / 0.7355 GB, free: 11.48 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003462/0.5871, allocations: 0.7203 MB / 0.7362 GB, free: 10.74 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 5.854e-05/0.5871, allocations: 21.48 kB / 0.7363 GB, free: 10.71 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.51e-05/0.5872, allocations: 47.42 kB / 0.7363 GB, free: 10.67 MB / 0.5762 GB Notification: Performance of SimCode: time 2.4e-07/0.5872, allocations: 0 / 0.7363 GB, free: 10.67 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04174/0.629, allocations: 5.508 MB / 0.7417 GB, free: 5.289 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.491/10.12, allocations: 5.5 kB / 0.7417 GB, free: 5.285 MB / 0.5762 GB (rm -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe >> ../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.sim & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink_res.csv --start-time 0 --stop-time 1 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ThermofluidStream_ThermofluidStream_Boundaries_Tests_SourceSink.fmu > ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.SourceSink_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches