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.002054/0.002054, allocations: 104 kB / 15.6 MB, free: 148 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.002508/0.002508, allocations: 196.2 kB / 16.53 MB, free: 6.652 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.704/1.704, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8638/0.8638, allocations: 93.71 MB / 384.1 MB, free: 6.977 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002487/0.002487, allocations: 89.56 kB / 463.5 MB, free: 21.95 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1865/0.189, allocations: 68.26 MB / 0.5193 GB, free: 6.898 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.05295/0.242, allocations: 41.11 MB / 0.5595 GB, free: 13.64 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01097/0.2531, allocations: 5.343 MB / 0.5647 GB, free: 8.277 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002158/0.2553, allocations: 39.75 kB / 0.5647 GB, free: 8.238 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00202/0.2573, allocations: 0.5393 MB / 0.5652 GB, free: 7.695 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005378/0.2628, allocations: 1.363 MB / 0.5666 GB, free: 6.324 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002958/0.2657, allocations: 0.8713 MB / 0.5674 GB, free: 5.453 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003458/0.2692, allocations: 2.14 MB / 0.5695 GB, free: 3.305 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005475/0.2698, allocations: 281.1 kB / 0.5698 GB, free: 3.02 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003483/0.2733, allocations: 1.303 MB / 0.571 GB, free: 1.711 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001181/0.2745, allocations: 0.7661 MB / 0.5718 GB, free: 0.9414 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001947/0.2747, allocations: 103.9 kB / 0.5719 GB, free: 0.8398 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002585/0.2773, allocations: 0.7491 MB / 0.5726 GB, free: 92 kB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003927/0.2777, allocations: 266.8 kB / 0.5729 GB, free: 15.83 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009429/0.2786, allocations: 0.649 MB / 0.5735 GB, free: 15.18 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003803/0.2824, allocations: 1.815 MB / 0.5753 GB, free: 13.36 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.273e-06/0.2825, allocations: 0 / 0.5753 GB, free: 13.36 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.2825, allocations: 0 / 0.5753 GB, free: 13.36 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.236e-05/0.2825, allocations: 0 / 0.5753 GB, free: 13.36 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.004995/0.2875, allocations: 1.655 MB / 0.5769 GB, free: 11.65 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.598e-05/0.2876, allocations: 8.031 kB / 0.5769 GB, free: 11.64 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002283/0.2878, allocations: 147.9 kB / 0.577 GB, free: 11.49 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000492/0.2883, allocations: 147.2 kB / 0.5772 GB, free: 11.34 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002219/0.2905, allocations: 0.8092 MB / 0.578 GB, free: 10.49 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.32e-05/0.2906, allocations: 73.94 kB / 0.5781 GB, free: 10.42 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001912/0.2908, allocations: 99.91 kB / 0.5781 GB, free: 10.32 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002296/0.2932, allocations: 1.077 MB / 0.5792 GB, free: 9.215 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.263e-05/0.2932, allocations: 0 / 0.5792 GB, free: 9.215 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.608e-05/0.2933, allocations: 36 kB / 0.5792 GB, free: 9.18 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.506e-05/0.2933, allocations: 27.94 kB / 0.5793 GB, free: 9.152 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002209/0.2955, allocations: 1.001 MB / 0.5802 GB, free: 8.148 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008924/0.3045, allocations: 4.786 MB / 0.5849 GB, free: 2.93 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002259/0.3069, allocations: 0.9276 MB / 0.5858 GB, free: 1.988 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008995/0.3078, allocations: 0.4924 MB / 0.5863 GB, free: 1.496 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4122/0.72, allocations: 3.464 MB / 0.5897 GB, free: 69.1 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.068e-05/0.7201, allocations: 48.72 kB / 0.5897 GB, free: 69.06 MB / 462.1 MB Notification: Performance of pre-optimization done (n=108): time 3.847e-06/0.7201, allocations: 0 / 0.5897 GB, free: 69.06 MB / 462.1 MB Notification: Performance of matching and sorting (n=122): time 0.01217/0.7323, allocations: 4.441 MB / 0.5941 GB, free: 66.88 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.141e-05/0.7324, allocations: 90.8 kB / 0.5941 GB, free: 66.79 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001324/0.7337, allocations: 0.7661 MB / 0.5949 GB, free: 66.46 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 8.522e-05/0.7338, allocations: 46.61 kB / 0.5949 GB, free: 66.41 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003793/0.7342, allocations: 483.4 kB / 0.5954 GB, free: 66.03 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003432/0.7346, allocations: 418.3 kB / 0.5958 GB, free: 65.71 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003736/0.735, allocations: 198.6 kB / 0.596 GB, free: 65.61 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.7351, allocations: 356.1 kB / 0.5963 GB, free: 65.29 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001016/0.7361, allocations: 413.8 kB / 0.5967 GB, free: 65.14 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00112/0.7373, allocations: 0.5684 MB / 0.5973 GB, free: 64.84 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002028/0.7393, allocations: 1.041 MB / 0.5983 GB, free: 64.29 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.646e-06/0.7393, allocations: 0 / 0.5983 GB, free: 64.29 MB / 462.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003328/0.7426, allocations: 1.508 MB / 0.5998 GB, free: 63.64 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.596e-05/0.7427, allocations: 6.469 kB / 0.5998 GB, free: 63.64 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.7427, allocations: 8.094 kB / 0.5998 GB, free: 63.64 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001014/0.7437, allocations: 305 kB / 0.6001 GB, free: 63.52 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009235/0.7447, allocations: 237.4 kB / 0.6003 GB, free: 63.49 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008824/0.7535, allocations: 12.14 MB / 0.6122 GB, free: 51.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00132/0.7549, allocations: 47.48 kB / 0.6122 GB, free: 51.59 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001195/0.755, allocations: 52.78 kB / 0.6123 GB, free: 51.57 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.0006485/0.7557, allocations: 267.8 kB / 0.6125 GB, free: 51.36 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003299/0.756, allocations: 115.2 kB / 0.6126 GB, free: 51.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004318/0.7603, allocations: 1.867 MB / 0.6144 GB, free: 50.46 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.61e-05/0.7603, allocations: 17.03 kB / 0.6145 GB, free: 50.46 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.225e-05/0.7604, allocations: 5.906 kB / 0.6145 GB, free: 50.46 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.253e-05/0.7604, allocations: 6.906 kB / 0.6145 GB, free: 50.46 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006096/0.7665, allocations: 2.884 MB / 0.6173 GB, free: 49.05 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.924e-06/0.7665, allocations: 0.7031 kB / 0.6173 GB, free: 49.05 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009498/0.7675, allocations: 217 kB / 0.6175 GB, free: 49.02 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00111/0.7686, allocations: 322.3 kB / 0.6178 GB, free: 48.89 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.988e-05/0.7687, allocations: 39.55 kB / 0.6178 GB, free: 48.87 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008551/0.7773, allocations: 12.15 MB / 0.6297 GB, free: 36.92 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.7773, allocations: 5.156 kB / 0.6297 GB, free: 36.92 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005657/0.783, allocations: 2.169 MB / 0.6318 GB, free: 35.86 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005299/0.7836, allocations: 189.8 kB / 0.632 GB, free: 35.69 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001762/0.7837, allocations: 24.69 kB / 0.632 GB, free: 35.68 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008495/0.7846, allocations: 59.52 kB / 0.6321 GB, free: 35.65 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003159/0.7849, allocations: 106.6 kB / 0.6322 GB, free: 35.63 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/0.785, allocations: 44.47 kB / 0.6322 GB, free: 35.62 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0008196/0.7859, allocations: 0.5637 MB / 0.6328 GB, free: 35.38 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.7859, allocations: 0 / 0.6328 GB, free: 35.38 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001982/0.7879, allocations: 441.9 kB / 0.6332 GB, free: 35.31 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.005516/0.7934, allocations: 3.043 MB / 0.6362 GB, free: 33.49 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004373/0.7978, allocations: 2.125 MB / 0.6383 GB, free: 31.98 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.067e-05/0.7978, allocations: 1.562 kB / 0.6383 GB, free: 31.98 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002992/0.8008, allocations: 1.603 MB / 0.6398 GB, free: 30.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002423/0.8033, allocations: 346.5 kB / 0.6402 GB, free: 30.52 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02129/0.8246, allocations: 10.77 MB / 0.6507 GB, free: 22.75 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005682/0.8252, allocations: 1.103 MB / 0.6517 GB, free: 21.62 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001012/0.8262, allocations: 247.3 kB / 0.652 GB, free: 21.39 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005504/0.8268, allocations: 499.3 kB / 0.6525 GB, free: 20.9 MB / 462.1 MB Notification: Performance of SimCode: time 1.263e-06/0.8268, allocations: 0 / 0.6525 GB, free: 20.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1001/0.9269, allocations: 35.32 MB / 0.687 GB, free: 1.922 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.58/17.5, allocations: 7.734 kB / 0.687 GB, free: 1.914 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 & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.csv --start-time 0 --stop-time 10 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 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.csv","/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