Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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-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.SourceSink,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Boundaries_Tests_SourceSink",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.SourceSink,fileNamePrefix="ThermofluidStream_dev_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.007696/0.007696, allocations: 97.23 kB / 15.73 MB, free: 6.047 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.001969/0.001969, allocations: 196.2 kB / 16.68 MB, free: 5.973 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.482/1.482, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7553/0.7553, allocations: 93.72 MB / 384.3 MB, free: 6.914 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002277/0.002277, allocations: 79.88 kB / 0.5199 GB, free: 6.32 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1525/0.1547, allocations: 68.27 MB / 0.5866 GB, free: 1.98 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.SourceSink): time 0.5011/0.6559, allocations: 140.5 MB / 0.7238 GB, free: 6.27 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004313/0.6603, allocations: 3.33 MB / 0.7271 GB, free: 2.93 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003059/0.6606, allocations: 19.88 kB / 0.7271 GB, free: 2.91 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0006307/0.6612, allocations: 135.1 kB / 0.7272 GB, free: 2.777 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0004764/0.6618, allocations: 190.8 kB / 0.7274 GB, free: 2.59 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004923/0.6623, allocations: 199.3 kB / 0.7276 GB, free: 2.395 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0004715/0.6628, allocations: 398.4 kB / 0.728 GB, free: 2.004 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001676/0.6629, allocations: 64.69 kB / 0.7281 GB, free: 1.938 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005082/0.6635, allocations: 222.9 kB / 0.7283 GB, free: 1.719 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001882/0.6637, allocations: 127.3 kB / 0.7284 GB, free: 1.594 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.853e-05/0.6637, allocations: 13.12 kB / 0.7284 GB, free: 1.582 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005063/0.6642, allocations: 263.6 kB / 0.7286 GB, free: 1.324 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 6.143e-05/0.6643, allocations: 31.8 kB / 0.7287 GB, free: 1.293 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001093/0.6644, allocations: 119.2 kB / 0.7288 GB, free: 1.176 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0005195/0.6649, allocations: 326.4 kB / 0.7291 GB, free: 0.8633 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.203e-06/0.6649, allocations: 11.98 kB / 0.7291 GB, free: 0.8516 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.613e-06/0.6649, allocations: 0 / 0.7291 GB, free: 0.8516 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.542e-06/0.665, allocations: 0 / 0.7291 GB, free: 0.8516 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.0008534/0.6658, allocations: 0.576 MB / 0.7297 GB, free: 228 kB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.6659, allocations: 12.03 kB / 0.7297 GB, free: 216 kB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.752e-05/0.6659, allocations: 46.69 kB / 0.7297 GB, free: 160 kB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.973e-05/0.666, allocations: 36.7 kB / 0.7298 GB, free: 124 kB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006154/0.6666, allocations: 380.1 kB / 0.7301 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.783e-05/0.6666, allocations: 8.609 kB / 0.7301 GB, free: 15.7 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.658e-05/0.6667, allocations: 16.38 kB / 0.7302 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002459/0.6669, allocations: 154.6 kB / 0.7303 GB, free: 15.52 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.667, allocations: 4 kB / 0.7303 GB, free: 15.51 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/0.667, allocations: 4 kB / 0.7303 GB, free: 15.51 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.667, allocations: 4 kB / 0.7303 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001439/0.6671, allocations: 71.91 kB / 0.7304 GB, free: 15.43 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008869/0.668, allocations: 0.7428 MB / 0.7311 GB, free: 14.63 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001364/0.6682, allocations: 77.17 kB / 0.7312 GB, free: 14.54 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.335e-05/0.6682, allocations: 41.8 kB / 0.7312 GB, free: 14.49 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001596/0.6684, allocations: 162.2 kB / 0.7314 GB, free: 14.29 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.742e-05/0.6684, allocations: 34.56 kB / 0.7314 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=8): time 1.192e-06/0.6685, allocations: 0 / 0.7314 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of matching and sorting (n=8): time 0.0007077/0.6692, allocations: 333.7 kB / 0.7317 GB, free: 13.88 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.378e-05/0.6692, allocations: 81.05 kB / 0.7318 GB, free: 13.78 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003537/0.6696, allocations: 341.6 kB / 0.7321 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.713e-05/0.6696, allocations: 25.7 kB / 0.7322 GB, free: 13.41 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000173/0.6698, allocations: 176 kB / 0.7323 GB, free: 13.23 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 3.636e-05/0.6698, allocations: 31.73 kB / 0.7324 GB, free: 13.2 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.639e-05/0.6699, allocations: 17.72 kB / 0.7324 GB, free: 13.18 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001694/0.6701, allocations: 354.7 kB / 0.7327 GB, free: 12.82 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.266e-05/0.6701, allocations: 19.98 kB / 0.7327 GB, free: 12.8 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.048e-05/0.6702, allocations: 43.44 kB / 0.7328 GB, free: 12.75 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001144/0.6703, allocations: 75.34 kB / 0.7328 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.6703, allocations: 4 kB / 0.7328 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002711/0.6706, allocations: 163 kB / 0.733 GB, free: 12.48 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.6706, allocations: 8 kB / 0.733 GB, free: 12.48 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.6706, allocations: 0 / 0.733 GB, free: 12.48 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002591/0.6709, allocations: 38.58 kB / 0.733 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.814e-05/0.671, allocations: 20.05 kB / 0.7331 GB, free: 12.41 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002182/0.6732, allocations: 2.761 MB / 0.7358 GB, free: 9.379 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.699e-05/0.6732, allocations: 7.891 kB / 0.7358 GB, free: 9.371 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.073e-05/0.6733, allocations: 4 kB / 0.7358 GB, free: 9.367 MB / 0.5762 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.0001322/0.6734, allocations: 138.4 kB / 0.7359 GB, free: 9.223 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.001e-05/0.6735, allocations: 39.7 kB / 0.7359 GB, free: 9.184 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003055/0.6738, allocations: 163.7 kB / 0.7361 GB, free: 9 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.6738, allocations: 0 / 0.7361 GB, free: 9 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.6738, allocations: 4 kB / 0.7361 GB, free: 8.996 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.6738, allocations: 0 / 0.7361 GB, free: 8.996 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005948/0.6744, allocations: 0.5322 MB / 0.7366 GB, free: 8.395 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.6744, allocations: 0 / 0.7366 GB, free: 8.395 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.8e-05/0.6744, allocations: 4 kB / 0.7366 GB, free: 8.391 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000126/0.6746, allocations: 37.69 kB / 0.7367 GB, free: 8.348 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.411e-05/0.6746, allocations: 8 kB / 0.7367 GB, free: 8.34 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002122/0.6767, allocations: 2.766 MB / 0.7394 GB, free: 5.297 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.6767, allocations: 160 / 0.7394 GB, free: 5.297 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003641/0.6771, allocations: 341.9 kB / 0.7397 GB, free: 4.934 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.935e-05/0.6772, allocations: 101 kB / 0.7398 GB, free: 4.816 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.856e-05/0.6772, allocations: 12.05 kB / 0.7398 GB, free: 4.805 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001165/0.6774, allocations: 4 kB / 0.7398 GB, free: 4.801 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.745e-05/0.6774, allocations: 11.88 kB / 0.7398 GB, free: 4.789 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.589e-06/0.6774, allocations: 0 / 0.7398 GB, free: 4.789 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002633/0.6777, allocations: 247.2 kB / 0.7401 GB, free: 4.547 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6777, allocations: 0 / 0.7401 GB, free: 4.547 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003703/0.6781, allocations: 48 kB / 0.7401 GB, free: 4.5 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.0007955/0.6789, allocations: 0.9256 MB / 0.741 GB, free: 3.535 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0004419/0.6793, allocations: 285.2 kB / 0.7413 GB, free: 3.23 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.6793, allocations: 4 kB / 0.7413 GB, free: 3.227 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002654/0.6796, allocations: 253.6 kB / 0.7415 GB, free: 2.953 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005714/0.6802, allocations: 63.95 kB / 0.7416 GB, free: 2.895 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003266/0.6835, allocations: 2.687 MB / 0.7442 GB, free: 92 kB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004386/0.6839, allocations: 0.7595 MB / 0.7449 GB, free: 15.3 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 8.773e-05/0.684, allocations: 32.33 kB / 0.745 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001189/0.6841, allocations: 91.41 kB / 0.7451 GB, free: 15.19 MB / 0.5919 GB Notification: Performance of SimCode: time 4.3e-07/0.6841, allocations: 0 / 0.7451 GB, free: 15.19 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03666/0.7208, allocations: 6.867 MB / 0.7518 GB, free: 8.465 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.39/11.11, allocations: 7.938 kB / 0.7518 GB, free: 8.457 MB / 0.5919 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.SourceSink.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.SourceSink.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.SourceSink.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.SourceSink.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_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_dev_ThermofluidStream_Boundaries_Tests_SourceSink.fmu > ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.SourceSink.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.Boundaries.Tests.SourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches