Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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-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.Topology.Tests.TestJunction,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Topology_Tests_TestJunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunction,fileNamePrefix="ThermofluidStream_dev_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.007982/0.007982, allocations: 97.03 kB / 15.73 MB, free: 6.484 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.001929/0.001929, allocations: 192 kB / 16.67 MB, free: 6.391 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.47/1.47, 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.7623/0.7623, allocations: 93.72 MB / 384.3 MB, free: 6.922 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002356/0.002356, allocations: 91.86 kB / 0.52 GB, free: 6.316 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1581/0.1604, allocations: 68.26 MB / 0.5866 GB, free: 1.984 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.5553/0.7158, allocations: 144.5 MB / 0.7277 GB, free: 2.285 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.005968/0.7218, allocations: 4.58 MB / 0.7322 GB, free: 13.7 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00048/0.7224, allocations: 27.81 kB / 0.7322 GB, free: 13.67 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000813/0.7232, allocations: 198.7 kB / 0.7324 GB, free: 13.48 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0008269/0.7241, allocations: 322.2 kB / 0.7327 GB, free: 13.16 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.00117/0.7253, allocations: 434.3 kB / 0.7331 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0009378/0.7262, allocations: 0.7439 MB / 0.7339 GB, free: 11.99 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002452/0.7265, allocations: 114.6 kB / 0.734 GB, free: 11.87 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007883/0.7273, allocations: 382.4 kB / 0.7343 GB, free: 11.5 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000507/0.7278, allocations: 330.8 kB / 0.7347 GB, free: 11.17 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.818e-05/0.7279, allocations: 32 kB / 0.7347 GB, free: 11.14 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009582/0.7288, allocations: 467.1 kB / 0.7351 GB, free: 10.68 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001159/0.7289, allocations: 103.6 kB / 0.7352 GB, free: 10.58 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002271/0.7292, allocations: 210.8 kB / 0.7354 GB, free: 10.38 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001085/0.7303, allocations: 0.6457 MB / 0.7361 GB, free: 9.73 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.7303, allocations: 0 / 0.7361 GB, free: 9.73 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.284e-06/0.7303, allocations: 0 / 0.7361 GB, free: 9.73 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.052e-05/0.7303, allocations: 4 kB / 0.7361 GB, free: 9.727 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.001798/0.7321, allocations: 0.8369 MB / 0.7369 GB, free: 8.84 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.879e-05/0.7322, allocations: 12.03 kB / 0.7369 GB, free: 8.828 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.038e-05/0.7323, allocations: 62.72 kB / 0.737 GB, free: 8.758 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.94e-05/0.7324, allocations: 52.61 kB / 0.737 GB, free: 8.707 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007658/0.7332, allocations: 486.2 kB / 0.7375 GB, free: 8.191 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.366e-05/0.7332, allocations: 20.88 kB / 0.7375 GB, free: 8.172 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.08e-05/0.7333, allocations: 28.33 kB / 0.7375 GB, free: 8.145 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007518/0.734, allocations: 445.1 kB / 0.7379 GB, free: 7.691 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.734, allocations: 0 / 0.7379 GB, free: 7.691 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.697e-05/0.7341, allocations: 23.97 kB / 0.738 GB, free: 7.668 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.799e-05/0.7341, allocations: 12.56 kB / 0.738 GB, free: 7.652 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007621/0.7349, allocations: 485.8 kB / 0.7384 GB, free: 7.18 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002284/0.7372, allocations: 1.431 MB / 0.7398 GB, free: 5.66 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005165/0.7377, allocations: 254.4 kB / 0.7401 GB, free: 5.402 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003488/0.7381, allocations: 204.8 kB / 0.7403 GB, free: 5.199 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003758/0.7385, allocations: 336.4 kB / 0.7406 GB, free: 4.797 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.39e-05/0.7385, allocations: 38.56 kB / 0.7406 GB, free: 4.75 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=32): time 4.258e-06/0.7385, allocations: 0 / 0.7406 GB, free: 4.75 MB / 0.5762 GB Notification: Performance of matching and sorting (n=33): time 0.002989/0.7415, allocations: 1.534 MB / 0.7421 GB, free: 3.105 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.471e-05/0.7416, allocations: 55.41 kB / 0.7422 GB, free: 3.039 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004866/0.7421, allocations: 398 kB / 0.7426 GB, free: 2.645 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.058e-05/0.7421, allocations: 29.7 kB / 0.7426 GB, free: 2.609 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001772/0.7423, allocations: 212.5 kB / 0.7428 GB, free: 2.395 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001136/0.7424, allocations: 115 kB / 0.7429 GB, free: 2.281 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001212/0.7426, allocations: 65.67 kB / 0.743 GB, free: 2.211 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001955/0.7428, allocations: 366.7 kB / 0.7433 GB, free: 1.844 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002393/0.743, allocations: 143.9 kB / 0.7435 GB, free: 1.703 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002561/0.7433, allocations: 151.6 kB / 0.7436 GB, free: 1.555 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005484/0.7438, allocations: 340.7 kB / 0.7439 GB, free: 1.219 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.7438, allocations: 0.6875 kB / 0.7439 GB, free: 1.219 MB / 0.5762 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009192/0.7448, allocations: 0.5255 MB / 0.7444 GB, free: 0.6836 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.7448, allocations: 4 kB / 0.7444 GB, free: 0.6797 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.7448, allocations: 0 / 0.7444 GB, free: 0.6797 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003939/0.7452, allocations: 116.7 kB / 0.7446 GB, free: 0.5625 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002729/0.7455, allocations: 55.94 kB / 0.7446 GB, free: 0.5078 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002883/0.7484, allocations: 2.327 MB / 0.7469 GB, free: 14.05 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001921/0.7486, allocations: 16.03 kB / 0.7469 GB, free: 14.03 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.677e-05/0.7486, allocations: 16.08 kB / 0.7469 GB, free: 14.02 MB / 0.5919 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.0002244/0.7489, allocations: 172.2 kB / 0.7471 GB, free: 13.84 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.866e-05/0.749, allocations: 43.72 kB / 0.7471 GB, free: 13.8 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001148/0.7501, allocations: 0.6641 MB / 0.7478 GB, free: 13.1 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.7501, allocations: 4 kB / 0.7478 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.7501, allocations: 0 / 0.7478 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.7501, allocations: 0 / 0.7478 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005148/0.7507, allocations: 449.1 kB / 0.7482 GB, free: 12.61 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.716e-06/0.7507, allocations: 3.984 kB / 0.7482 GB, free: 12.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001752/0.7509, allocations: 27.97 kB / 0.7482 GB, free: 12.57 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003518/0.7512, allocations: 132.7 kB / 0.7484 GB, free: 12.44 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.163e-05/0.7513, allocations: 11.98 kB / 0.7484 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002743/0.754, allocations: 2.338 MB / 0.7506 GB, free: 9.953 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.754, allocations: 3.938 kB / 0.7506 GB, free: 9.949 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001109/0.7551, allocations: 0.646 MB / 0.7513 GB, free: 9.277 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001011/0.7553, allocations: 116.9 kB / 0.7514 GB, free: 9.145 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.639e-05/0.7553, allocations: 8.562 kB / 0.7514 GB, free: 9.137 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001707/0.7555, allocations: 7.984 kB / 0.7514 GB, free: 9.129 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.425e-05/0.7556, allocations: 23.91 kB / 0.7514 GB, free: 9.105 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.337e-05/0.7556, allocations: 11.98 kB / 0.7514 GB, free: 9.094 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003736/0.756, allocations: 322.9 kB / 0.7517 GB, free: 8.777 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.9e-07/0.756, allocations: 0 / 0.7517 GB, free: 8.777 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0005182/0.7565, allocations: 120 kB / 0.7519 GB, free: 8.66 MB / 0.5919 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.001639/0.7582, allocations: 1.273 MB / 0.7531 GB, free: 7.355 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001019/0.7592, allocations: 0.5294 MB / 0.7536 GB, free: 6.812 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.7592, allocations: 0 / 0.7536 GB, free: 6.812 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0006624/0.7599, allocations: 362.4 kB / 0.754 GB, free: 6.445 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006543/0.7605, allocations: 108.7 kB / 0.7541 GB, free: 6.344 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006016/0.7666, allocations: 4.135 MB / 0.7581 GB, free: 2.121 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005215/0.7671, allocations: 0.8347 MB / 0.7589 GB, free: 1.262 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003142/0.7674, allocations: 103.9 kB / 0.759 GB, free: 1.16 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002397/0.7677, allocations: 155.4 kB / 0.7592 GB, free: 1.008 MB / 0.5919 GB Notification: Performance of SimCode: time 1.082e-06/0.7677, allocations: 0 / 0.7592 GB, free: 1.008 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0461/0.8138, allocations: 11.92 MB / 0.7708 GB, free: 5.262 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.74/11.55, allocations: 15.88 kB / 0.7708 GB, free: 5.25 MB / 0.6075 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_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_dev_ThermofluidStream_Topology_Tests_TestJunction.fmu > ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.Topology.Tests.TestJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches