Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.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.Topology.Tests.TestJunction,fileNamePrefix="ThermofluidStream_ThermofluidStream_Topology_Tests_TestJunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunction,fileNamePrefix="ThermofluidStream_ThermofluidStream_Topology_Tests_TestJunction",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.004974/0.004974, allocations: 97.69 kB / 15.73 MB, free: 6.02 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.001239/0.001239, allocations: 190.6 kB / 16.67 MB, free: 5.938 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.35/1.35, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.7046/0.7046, allocations: 89.48 MB / 380 MB, free: 8.66 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002192/0.002192, allocations: 87.84 kB / 0.5139 GB, free: 7.156 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3366/0.3388, allocations: 67.29 MB / 0.5796 GB, free: 15.24 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.1545/0.4933, allocations: 144.3 MB / 0.7206 GB, free: 15.9 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.004979/0.4984, allocations: 4.498 MB / 0.725 GB, free: 11.39 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001889/0.4986, allocations: 7.938 kB / 0.725 GB, free: 11.38 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005924/0.4992, allocations: 190.8 kB / 0.7252 GB, free: 11.2 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0005645/0.4998, allocations: 246.6 kB / 0.7254 GB, free: 10.95 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009776/0.5008, allocations: 434.3 kB / 0.7258 GB, free: 10.53 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0006083/0.5014, allocations: 0.5725 MB / 0.7264 GB, free: 9.953 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001997/0.5016, allocations: 112.3 kB / 0.7265 GB, free: 9.844 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005463/0.5022, allocations: 306.9 kB / 0.7268 GB, free: 9.543 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004389/0.5026, allocations: 307 kB / 0.7271 GB, free: 9.242 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.048e-05/0.5027, allocations: 32 kB / 0.7271 GB, free: 9.211 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007973/0.5035, allocations: 459.1 kB / 0.7275 GB, free: 8.762 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 9.569e-05/0.5036, allocations: 95.72 kB / 0.7276 GB, free: 8.668 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001746/0.5038, allocations: 171.2 kB / 0.7278 GB, free: 8.5 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0007077/0.5045, allocations: 0.5341 MB / 0.7283 GB, free: 7.969 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.5045, allocations: 0 / 0.7283 GB, free: 7.969 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.312e-06/0.5045, allocations: 0 / 0.7283 GB, free: 7.969 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.067e-05/0.5045, allocations: 4 kB / 0.7283 GB, free: 7.965 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.001371/0.5059, allocations: 0.7012 MB / 0.729 GB, free: 7.215 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.506, allocations: 11.97 kB / 0.729 GB, free: 7.203 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.835e-05/0.506, allocations: 62.72 kB / 0.7291 GB, free: 7.133 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.158e-05/0.5061, allocations: 32.75 kB / 0.7291 GB, free: 7.102 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003369/0.5064, allocations: 295.8 kB / 0.7294 GB, free: 6.773 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.178e-05/0.5065, allocations: 16.94 kB / 0.7294 GB, free: 6.758 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.702e-05/0.5065, allocations: 32.36 kB / 0.7294 GB, free: 6.727 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006502/0.5072, allocations: 449.1 kB / 0.7299 GB, free: 6.27 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.5072, allocations: 0 / 0.7299 GB, free: 6.27 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.922e-05/0.5073, allocations: 8 kB / 0.7299 GB, free: 6.262 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.527e-05/0.5073, allocations: 20.55 kB / 0.7299 GB, free: 6.238 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007187/0.508, allocations: 477.8 kB / 0.7304 GB, free: 5.773 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001961/0.51, allocations: 1.411 MB / 0.7317 GB, free: 4.273 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004526/0.5105, allocations: 250.4 kB / 0.732 GB, free: 4.02 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003165/0.5108, allocations: 212.8 kB / 0.7322 GB, free: 3.809 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003/0.5111, allocations: 332.4 kB / 0.7325 GB, free: 3.41 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.551e-05/0.5111, allocations: 34.56 kB / 0.7325 GB, free: 3.367 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=32): time 1.373e-06/0.5111, allocations: 0 / 0.7325 GB, free: 3.367 MB / 0.5762 GB Notification: Performance of matching and sorting (n=33): time 0.002567/0.5137, allocations: 1.501 MB / 0.734 GB, free: 1.754 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.126e-05/0.5138, allocations: 55.41 kB / 0.734 GB, free: 1.688 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000263/0.514, allocations: 267 kB / 0.7343 GB, free: 1.422 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.949e-05/0.5141, allocations: 29.7 kB / 0.7343 GB, free: 1.387 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.964e-05/0.5142, allocations: 152.6 kB / 0.7345 GB, free: 1.234 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001075/0.5143, allocations: 123 kB / 0.7346 GB, free: 1.113 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001101/0.5144, allocations: 65.67 kB / 0.7347 GB, free: 1.043 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001536/0.5146, allocations: 346.8 kB / 0.735 GB, free: 0.6953 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000234/0.5148, allocations: 139.9 kB / 0.7351 GB, free: 0.5586 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002363/0.515, allocations: 151.8 kB / 0.7353 GB, free: 420 kB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005207/0.5156, allocations: 336.5 kB / 0.7356 GB, free: 80 kB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.61e-07/0.5156, allocations: 0 / 0.7356 GB, free: 80 kB / 0.5762 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.2504/0.7659, allocations: 0.504 MB / 0.7361 GB, free: 156.4 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.787e-05/0.766, allocations: 9.828 kB / 0.7361 GB, free: 156.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.854e-06/0.766, allocations: 0 / 0.7361 GB, free: 156.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000436/0.7665, allocations: 116 kB / 0.7362 GB, free: 156.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002792/0.7668, allocations: 54.33 kB / 0.7362 GB, free: 156.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002376/0.7691, allocations: 2.326 MB / 0.7385 GB, free: 154.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002027/0.7694, allocations: 8.766 kB / 0.7385 GB, free: 154.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.768e-05/0.7694, allocations: 16.45 kB / 0.7385 GB, free: 154.6 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,9,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001605/0.7696, allocations: 170.8 kB / 0.7387 GB, free: 154.4 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.576e-05/0.7697, allocations: 33.61 kB / 0.7387 GB, free: 154.4 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001011/0.7707, allocations: 0.6406 MB / 0.7394 GB, free: 154.1 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.7707, allocations: 4.75 kB / 0.7394 GB, free: 154.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.7707, allocations: 2.859 kB / 0.7394 GB, free: 154.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.7707, allocations: 1.219 kB / 0.7394 GB, free: 154.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003897/0.7711, allocations: 408.1 kB / 0.7398 GB, free: 153.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.7711, allocations: 0 / 0.7398 GB, free: 153.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001738/0.7713, allocations: 30.73 kB / 0.7398 GB, free: 153.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003426/0.7716, allocations: 134.6 kB / 0.7399 GB, free: 153.8 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.863e-05/0.7717, allocations: 13.62 kB / 0.7399 GB, free: 153.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002101/0.7738, allocations: 2.33 MB / 0.7422 GB, free: 151.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.7738, allocations: 0 / 0.7422 GB, free: 151.9 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001034/0.7748, allocations: 0.6432 MB / 0.7428 GB, free: 151.6 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 4.822e-05/0.7749, allocations: 106.4 kB / 0.7429 GB, free: 151.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.961e-05/0.775, allocations: 9.844 kB / 0.7429 GB, free: 151.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001625/0.7751, allocations: 9.109 kB / 0.743 GB, free: 151.5 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.157e-05/0.7752, allocations: 27.75 kB / 0.743 GB, free: 151.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.746e-05/0.7752, allocations: 14.16 kB / 0.743 GB, free: 151.4 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002648/0.7755, allocations: 230.1 kB / 0.7432 GB, free: 151.3 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7755, allocations: 0 / 0.7432 GB, free: 151.3 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0005424/0.7761, allocations: 106.1 kB / 0.7433 GB, free: 151.3 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (source.outlet.m_flow,source1.outlet.m_flow,source2.outlet.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 (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,8,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001467/0.7775, allocations: 1.264 MB / 0.7446 GB, free: 150.5 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0009839/0.7785, allocations: 0.5242 MB / 0.7451 GB, free: 150.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.354e-06/0.7785, allocations: 0.5312 kB / 0.7451 GB, free: 150.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0006136/0.7792, allocations: 363.2 kB / 0.7454 GB, free: 150 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000556/0.7797, allocations: 100.2 kB / 0.7455 GB, free: 150 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004181/0.7839, allocations: 3.608 MB / 0.749 GB, free: 147.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001997/0.7841, allocations: 0.795 MB / 0.7498 GB, free: 146.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002078/0.7844, allocations: 72.97 kB / 0.7499 GB, free: 146.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001284/0.7845, allocations: 105.8 kB / 0.75 GB, free: 146.8 MB / 0.5762 GB Notification: Performance of SimCode: time 3.41e-07/0.7845, allocations: 0 / 0.75 GB, free: 146.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03339/0.8179, allocations: 10.32 MB / 0.7601 GB, free: 137.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.806/10.62, allocations: 6.094 kB / 0.7601 GB, free: 137.9 MB / 0.5762 GB (rm -f ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.pipe >> ../files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.sim & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction_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_Topology_Tests_TestJunction.fmu > ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Topology.Tests.TestJunction_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches