Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.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.Undirected.Boundaries.Tests.Reservoir,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir",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.002103/0.002102, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002897/0.002897, allocations: 198.2 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.4/2.4, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 1.389/1.389, allocations: 93.71 MB / 384.1 MB, free: 6.934 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003538/0.003539, allocations: 84.09 kB / 463.5 MB, free: 21.97 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3095/0.3131, allocations: 68.26 MB / 0.5193 GB, free: 6.848 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.07379/0.387, allocations: 41.11 MB / 0.5594 GB, free: 13.59 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01646/0.4036, allocations: 5.347 MB / 0.5647 GB, free: 8.219 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003624/0.4073, allocations: 39.75 kB / 0.5647 GB, free: 8.18 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003533/0.411, allocations: 0.5432 MB / 0.5652 GB, free: 7.633 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00825/0.4193, allocations: 1.359 MB / 0.5666 GB, free: 6.266 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005232/0.4246, allocations: 0.8716 MB / 0.5674 GB, free: 5.395 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.004931/0.4295, allocations: 2.136 MB / 0.5695 GB, free: 3.25 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001197/0.4308, allocations: 281.1 kB / 0.5698 GB, free: 2.965 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005422/0.4362, allocations: 1.307 MB / 0.571 GB, free: 1.652 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001628/0.4379, allocations: 0.7778 MB / 0.5718 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007255/0.4387, allocations: 100 kB / 0.5719 GB, free: 0.7734 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003954/0.4427, allocations: 0.7335 MB / 0.5726 GB, free: 40 kB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000477/0.4432, allocations: 267 kB / 0.5729 GB, free: 15.77 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001044/0.4443, allocations: 0.6528 MB / 0.5735 GB, free: 15.12 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005662/0.45, allocations: 1.818 MB / 0.5753 GB, free: 13.3 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.322e-05/0.45, allocations: 0 / 0.5753 GB, free: 13.3 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.597e-06/0.45, allocations: 0 / 0.5753 GB, free: 13.3 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.754e-05/0.4501, allocations: 0 / 0.5753 GB, free: 13.3 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.005738/0.4558, allocations: 1.651 MB / 0.5769 GB, free: 11.59 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.174e-05/0.4559, allocations: 16.02 kB / 0.5769 GB, free: 11.58 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002298/0.4561, allocations: 143.9 kB / 0.5771 GB, free: 11.43 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004927/0.4566, allocations: 151.2 kB / 0.5772 GB, free: 11.28 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00171/0.4584, allocations: 0.8053 MB / 0.578 GB, free: 10.43 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.843e-05/0.4585, allocations: 69.94 kB / 0.578 GB, free: 10.36 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002067/0.4587, allocations: 99.91 kB / 0.5781 GB, free: 10.27 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002849/0.4616, allocations: 1.081 MB / 0.5792 GB, free: 9.156 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.843e-05/0.4617, allocations: 0 / 0.5792 GB, free: 9.156 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003572/0.4621, allocations: 40 kB / 0.5792 GB, free: 9.117 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.537e-05/0.4622, allocations: 20 kB / 0.5793 GB, free: 9.098 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002475/0.4647, allocations: 1.008 MB / 0.5802 GB, free: 8.086 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009306/0.474, allocations: 4.782 MB / 0.5849 GB, free: 2.871 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002276/0.4763, allocations: 0.9276 MB / 0.5858 GB, free: 1.93 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001357/0.4777, allocations: 0.4924 MB / 0.5863 GB, free: 1.438 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6688/1.147, allocations: 3.465 MB / 0.5897 GB, free: 69.02 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001743/1.147, allocations: 45.95 kB / 0.5897 GB, free: 68.98 MB / 462.1 MB Notification: Performance of pre-optimization done (n=108): time 1.47e-05/1.147, allocations: 0 / 0.5897 GB, free: 68.98 MB / 462.1 MB Notification: Performance of matching and sorting (n=122): time 0.01745/1.164, allocations: 4.442 MB / 0.5941 GB, free: 66.79 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00017/1.165, allocations: 90.39 kB / 0.5942 GB, free: 66.7 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001877/1.167, allocations: 0.7629 MB / 0.5949 GB, free: 66.37 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 9.537e-05/1.167, allocations: 46.77 kB / 0.5949 GB, free: 66.32 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004836/1.167, allocations: 481 kB / 0.5954 GB, free: 65.95 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004633/1.168, allocations: 421.2 kB / 0.5958 GB, free: 65.62 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005258/1.168, allocations: 200.6 kB / 0.596 GB, free: 65.52 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001947/1.168, allocations: 360.2 kB / 0.5963 GB, free: 65.2 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001212/1.17, allocations: 411 kB / 0.5967 GB, free: 65.05 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001942/1.172, allocations: 0.5637 MB / 0.5973 GB, free: 64.75 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003226/1.175, allocations: 1.042 MB / 0.5983 GB, free: 64.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-05/1.175, allocations: 1.094 kB / 0.5983 GB, free: 64.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.004583/1.179, allocations: 1.506 MB / 0.5998 GB, free: 63.55 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.388e-05/1.18, allocations: 11.22 kB / 0.5998 GB, free: 63.55 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.273e-05/1.18, allocations: 6.438 kB / 0.5998 GB, free: 63.55 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001909/1.182, allocations: 309.6 kB / 0.6001 GB, free: 63.43 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001109/1.183, allocations: 235.3 kB / 0.6003 GB, free: 63.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01346/1.196, allocations: 12.14 MB / 0.6122 GB, free: 51.52 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002112/1.199, allocations: 53.89 kB / 0.6122 GB, free: 51.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002216/1.199, allocations: 49.83 kB / 0.6123 GB, free: 51.48 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (124): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,2,100.0%), (1,2,100.0%), (2,5,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008409/1.2, allocations: 262.5 kB / 0.6125 GB, free: 51.27 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004069/1.2, allocations: 115.8 kB / 0.6126 GB, free: 51.21 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00665/1.207, allocations: 1.869 MB / 0.6144 GB, free: 50.38 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.809e-05/1.207, allocations: 15.81 kB / 0.6145 GB, free: 50.38 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-05/1.207, allocations: 8.219 kB / 0.6145 GB, free: 50.37 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.175e-05/1.207, allocations: 6.984 kB / 0.6145 GB, free: 50.37 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008439/1.215, allocations: 2.891 MB / 0.6173 GB, free: 48.95 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-05/1.215, allocations: 1.375 kB / 0.6173 GB, free: 48.95 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001096/1.216, allocations: 217.5 kB / 0.6175 GB, free: 48.93 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001387/1.218, allocations: 323.6 kB / 0.6178 GB, free: 48.79 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001179/1.218, allocations: 36.84 kB / 0.6178 GB, free: 48.78 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01387/1.232, allocations: 12.15 MB / 0.6297 GB, free: 36.84 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-06/1.232, allocations: 1.719 kB / 0.6297 GB, free: 36.84 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007836/1.24, allocations: 2.175 MB / 0.6318 GB, free: 35.77 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005748/1.24, allocations: 181.4 kB / 0.632 GB, free: 35.61 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001896/1.241, allocations: 27.72 kB / 0.632 GB, free: 35.59 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009814/1.242, allocations: 63.31 kB / 0.6321 GB, free: 35.57 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000461/1.242, allocations: 99.31 kB / 0.6322 GB, free: 35.55 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001558/1.242, allocations: 49.83 kB / 0.6322 GB, free: 35.54 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001926/1.244, allocations: 0.5589 MB / 0.6328 GB, free: 35.29 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.122e-06/1.244, allocations: 0 / 0.6328 GB, free: 35.29 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003641/1.248, allocations: 449.6 kB / 0.6332 GB, free: 35.22 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (reservoir.M,reservoir.U_med,flowResistance1.rear.m_flow,flowResistance2.rear.m_flow,reservoir2.M,reservoir2.U_med,flowResistance4.inlet.m_flow,flowResistance5.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 (104): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (2,5,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007816/1.256, allocations: 3.031 MB / 0.6362 GB, free: 33.39 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006901/1.263, allocations: 2.125 MB / 0.6382 GB, free: 31.89 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.098e-05/1.263, allocations: 1.156 kB / 0.6383 GB, free: 31.89 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00326/1.266, allocations: 1.598 MB / 0.6398 GB, free: 30.61 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003712/1.27, allocations: 356.4 kB / 0.6402 GB, free: 30.41 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02498/1.295, allocations: 10.78 MB / 0.6507 GB, free: 22.69 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007884/1.296, allocations: 1.1 MB / 0.6518 GB, free: 21.56 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001353/1.297, allocations: 234.2 kB / 0.652 GB, free: 21.34 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007187/1.298, allocations: 495.3 kB / 0.6525 GB, free: 20.86 MB / 462.1 MB Notification: Performance of SimCode: time 2.755e-06/1.298, allocations: 0 / 0.6525 GB, free: 20.86 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1465/1.444, allocations: 35.34 MB / 0.687 GB, free: 1.867 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.5/21.94, allocations: 15.3 kB / 0.687 GB, free: 1.855 MB / 478.1 MB (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches