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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 101.3 kB / 19.73 MB, free: 2.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001432/0.001432, allocations: 220.4 kB / 23.03 MB, free: 4.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.432/1.432, allocations: 230.6 MB / 256.8 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.8789/0.8789, allocations: 100.3 MB / 413.5 MB, free: 3.43 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunction,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Topology_Tests_TestJunction",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunction,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Topology_Tests_TestJunction",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003191/0.003191, allocations: 89.08 kB / 0.564 GB, free: 35.87 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1461/0.1493, allocations: 74.46 MB / 0.6367 GB, free: 7.406 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.4883/0.6376, allocations: 124.5 MB / 0.7583 GB, free: 3.25 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.004439/0.6421, allocations: 4.203 MB / 0.7624 GB, free: 3.207 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003811/0.6424, allocations: 41.56 kB / 0.7625 GB, free: 3.207 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005814/0.643, allocations: 181.5 kB / 0.7626 GB, free: 3.203 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0007122/0.6437, allocations: 327.7 kB / 0.763 GB, free: 3.195 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001127/0.6449, allocations: 434.9 kB / 0.7634 GB, free: 3.18 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0008551/0.6457, allocations: 0.7494 MB / 0.7641 GB, free: 3.18 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001779/0.6459, allocations: 72.75 kB / 0.7642 GB, free: 3.164 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008361/0.6467, allocations: 405.2 kB / 0.7646 GB, free: 3.164 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005229/0.6473, allocations: 349.6 kB / 0.7649 GB, free: 3.164 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.296e-05/0.6473, allocations: 33.5 kB / 0.7649 GB, free: 3.164 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000831/0.6482, allocations: 379.2 kB / 0.7653 GB, free: 3.156 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001198/0.6483, allocations: 105.2 kB / 0.7654 GB, free: 3.156 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001904/0.6485, allocations: 174.7 kB / 0.7656 GB, free: 3.156 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0008276/0.6493, allocations: 0.6354 MB / 0.7662 GB, free: 3.113 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.6493, allocations: 3.906 kB / 0.7662 GB, free: 3.113 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.292e-06/0.6493, allocations: 0.9375 kB / 0.7662 GB, free: 3.113 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.017e-06/0.6493, allocations: 0.7969 kB / 0.7662 GB, free: 3.113 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.001593/0.6509, allocations: 0.7565 MB / 0.7669 GB, free: 18.68 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.6509, allocations: 10.78 kB / 0.7669 GB, free: 18.68 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.236e-05/0.651, allocations: 11.72 kB / 0.7669 GB, free: 18.68 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.505e-05/0.651, allocations: 59.55 kB / 0.767 GB, free: 18.64 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.487e-05/0.6511, allocations: 53.86 kB / 0.7671 GB, free: 18.61 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006759/0.6518, allocations: 419.7 kB / 0.7675 GB, free: 18.41 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.209e-05/0.6518, allocations: 22.38 kB / 0.7675 GB, free: 18.41 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.924e-05/0.6519, allocations: 28.86 kB / 0.7675 GB, free: 18.41 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006638/0.6525, allocations: 452 kB / 0.7679 GB, free: 18.33 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.6526, allocations: 0 / 0.7679 GB, free: 18.33 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.199e-05/0.6526, allocations: 10.59 kB / 0.7679 GB, free: 18.33 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.16e-05/0.6526, allocations: 20.11 kB / 0.768 GB, free: 18.33 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006902/0.6533, allocations: 490 kB / 0.7684 GB, free: 18.33 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00202/0.6553, allocations: 1.24 MB / 0.7696 GB, free: 17.8 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004252/0.6557, allocations: 229.4 kB / 0.7699 GB, free: 17.77 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002725/0.656, allocations: 193.9 kB / 0.77 GB, free: 17.76 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001482/0.6562, allocations: 26.2 kB / 0.7701 GB, free: 17.76 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.688e-05/0.6562, allocations: 42.84 kB / 0.7701 GB, free: 17.71 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=32): time 1.432e-06/0.6562, allocations: 0 / 0.7701 GB, free: 17.71 MB / 0.5919 GB Notification: Performance of matching and sorting (n=33): time 0.00284/0.659, allocations: 1.227 MB / 0.7713 GB, free: 17.44 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.199e-05/0.6591, allocations: 58.38 kB / 0.7714 GB, free: 17.38 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000489/0.6596, allocations: 398.8 kB / 0.7717 GB, free: 17.26 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.983e-05/0.6596, allocations: 31.27 kB / 0.7718 GB, free: 17.23 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001304/0.6598, allocations: 203.5 kB / 0.772 GB, free: 17.14 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 9.252e-05/0.6599, allocations: 115 kB / 0.7721 GB, free: 17.07 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00012/0.66, allocations: 66.95 kB / 0.7721 GB, free: 17.05 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001961/0.6602, allocations: 362.5 kB / 0.7725 GB, free: 16.73 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00025/0.6604, allocations: 147.6 kB / 0.7726 GB, free: 16.73 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002338/0.6607, allocations: 148 kB / 0.7728 GB, free: 16.73 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005038/0.6612, allocations: 337.1 kB / 0.7731 GB, free: 16.72 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.6612, allocations: 3.938 kB / 0.7731 GB, free: 16.72 MB / 0.5919 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008529/0.662, allocations: 0.5207 MB / 0.7736 GB, free: 16.64 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.662, allocations: 11.59 kB / 0.7736 GB, free: 16.64 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.662, allocations: 2.328 kB / 0.7736 GB, free: 16.64 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003768/0.6624, allocations: 118.5 kB / 0.7737 GB, free: 16.62 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002758/0.6627, allocations: 53.69 kB / 0.7738 GB, free: 16.62 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00291/0.6656, allocations: 2.209 MB / 0.7759 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002733/0.6659, allocations: 14.19 kB / 0.776 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.579e-05/0.6659, allocations: 10.2 kB / 0.776 GB, free: 15.25 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.0002725/0.6662, allocations: 169.3 kB / 0.7761 GB, free: 15.13 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001194/0.6663, allocations: 49.58 kB / 0.7762 GB, free: 15.11 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001094/0.6674, allocations: 0.6541 MB / 0.7768 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.6674, allocations: 5.375 kB / 0.7768 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.6674, allocations: 3.625 kB / 0.7768 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.828e-06/0.6674, allocations: 3.938 kB / 0.7768 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004075/0.6678, allocations: 368.8 kB / 0.7772 GB, free: 14.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.564e-06/0.6678, allocations: 0 / 0.7772 GB, free: 14.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001835/0.668, allocations: 33.59 kB / 0.7772 GB, free: 14.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000344/0.6683, allocations: 129 kB / 0.7773 GB, free: 14.79 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.866e-05/0.6684, allocations: 9.25 kB / 0.7773 GB, free: 14.79 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002433/0.6708, allocations: 2.208 MB / 0.7795 GB, free: 13.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.6708, allocations: 0.9375 kB / 0.7795 GB, free: 13.4 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000957/0.6718, allocations: 0.6477 MB / 0.7801 GB, free: 13.28 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.868e-05/0.6718, allocations: 41.53 kB / 0.7802 GB, free: 13.26 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.954e-05/0.6719, allocations: 7.359 kB / 0.7802 GB, free: 13.26 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001982/0.6721, allocations: 9.234 kB / 0.7802 GB, free: 13.26 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.32e-05/0.6721, allocations: 22.27 kB / 0.7802 GB, free: 13.26 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.492e-05/0.6722, allocations: 10.58 kB / 0.7802 GB, free: 13.26 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003392/0.6725, allocations: 323.7 kB / 0.7805 GB, free: 13.17 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1e-07/0.6725, allocations: 0 / 0.7805 GB, free: 13.17 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0005808/0.6731, allocations: 115.8 kB / 0.7806 GB, free: 13.16 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.001461/0.6745, allocations: 1.28 MB / 0.7819 GB, free: 12.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0009013/0.6754, allocations: 0.4957 MB / 0.7824 GB, free: 12.38 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.6754, allocations: 0 / 0.7824 GB, free: 12.38 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0005926/0.676, allocations: 356.3 kB / 0.7827 GB, free: 12.25 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006185/0.6767, allocations: 116.6 kB / 0.7828 GB, free: 12.23 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005375/0.682, allocations: 4.127 MB / 0.7868 GB, free: 10.78 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002038/0.6822, allocations: 237.2 kB / 0.7871 GB, free: 10.69 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0002747/0.6825, allocations: 92.72 kB / 0.7872 GB, free: 10.68 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001911/0.6827, allocations: 152.6 kB / 0.7873 GB, free: 10.67 MB / 0.5919 GB Notification: Performance of SimCode: time 5.91e-07/0.6827, allocations: 0.7188 kB / 0.7873 GB, free: 10.67 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03773/0.7204, allocations: 12.7 MB / 0.7997 GB, free: 9.316 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.16/12.88, allocations: 20.28 kB / 0.7997 GB, free: 9.309 MB / 0.5919 GB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Topology_Tests_TestJunction_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Topology_Tests_TestJunction.fmu > ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction_res.mat","/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.6281808729982]