Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,fileNamePrefix="ThermofluidStream_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.001763/0.001763, allocations: 108 kB / 15.61 MB, free: 152 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.0024/0.0024, allocations: 192.1 kB / 16.53 MB, free: 6.664 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.683/1.683, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.9505/0.9505, allocations: 91.2 MB / 381.6 MB, free: 9.43 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001701/0.001701, allocations: 77.72 kB / 460.4 MB, free: 23.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2138/0.2155, allocations: 67.7 MB / 0.5157 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.05084/0.2664, allocations: 41.1 MB / 0.5559 GB, free: 0.8477 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01043/0.2769, allocations: 5.319 MB / 0.5611 GB, free: 11.51 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002287/0.2793, allocations: 35.75 kB / 0.5611 GB, free: 11.48 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001943/0.2812, allocations: 0.5509 MB / 0.5616 GB, free: 10.92 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004995/0.2863, allocations: 1.347 MB / 0.563 GB, free: 9.566 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003142/0.2894, allocations: 0.8741 MB / 0.5638 GB, free: 8.691 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003499/0.2929, allocations: 2.108 MB / 0.5659 GB, free: 6.578 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007393/0.2937, allocations: 281.1 kB / 0.5661 GB, free: 6.293 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004307/0.298, allocations: 1.288 MB / 0.5674 GB, free: 5 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001902/0.2999, allocations: 0.77 MB / 0.5681 GB, free: 4.227 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005317/0.3005, allocations: 100 kB / 0.5682 GB, free: 4.129 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003376/0.3039, allocations: 0.7452 MB / 0.569 GB, free: 3.383 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003778/0.3043, allocations: 258.9 kB / 0.5692 GB, free: 3.129 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001243/0.3055, allocations: 0.6567 MB / 0.5699 GB, free: 2.469 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003992/0.3095, allocations: 1.799 MB / 0.5716 GB, free: 0.6641 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.476e-06/0.3096, allocations: 0 / 0.5716 GB, free: 0.6641 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.846e-06/0.3096, allocations: 0 / 0.5716 GB, free: 0.6641 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.943e-05/0.3096, allocations: 0 / 0.5716 GB, free: 0.6641 MB / 446.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.003834/0.3135, allocations: 1.653 MB / 0.5732 GB, free: 14.96 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.666e-05/0.3135, allocations: 12.03 kB / 0.5732 GB, free: 14.95 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003811/0.3139, allocations: 151.8 kB / 0.5734 GB, free: 14.79 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004194/0.3144, allocations: 147.2 kB / 0.5735 GB, free: 14.65 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001613/0.316, allocations: 0.8014 MB / 0.5743 GB, free: 13.8 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.023e-05/0.3161, allocations: 73.88 kB / 0.5744 GB, free: 13.73 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000158/0.3162, allocations: 96 kB / 0.5745 GB, free: 13.64 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002026/0.3183, allocations: 1.077 MB / 0.5755 GB, free: 12.53 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.44e-05/0.3183, allocations: 4 kB / 0.5755 GB, free: 12.52 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.636e-05/0.3184, allocations: 36 kB / 0.5756 GB, free: 12.49 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.432e-05/0.3184, allocations: 24 kB / 0.5756 GB, free: 12.46 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001851/0.3203, allocations: 1.008 MB / 0.5766 GB, free: 11.46 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006819/0.3272, allocations: 4.77 MB / 0.5812 GB, free: 6.258 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001955/0.3292, allocations: 0.9315 MB / 0.5821 GB, free: 5.312 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008881/0.3301, allocations: 496 kB / 0.5826 GB, free: 4.824 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005403/0.3355, allocations: 3.477 MB / 0.586 GB, free: 0.9297 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.347e-05/0.3356, allocations: 43.12 kB / 0.586 GB, free: 0.8789 MB / 462.1 MB Notification: Performance of pre-optimization done (n=108): time 7.033e-06/0.3356, allocations: 3.984 kB / 0.5861 GB, free: 0.875 MB / 462.1 MB Notification: Performance of matching and sorting (n=122): time 0.4929/0.8285, allocations: 4.431 MB / 0.5904 GB, free: 72.16 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.497e-05/0.8286, allocations: 94.61 kB / 0.5905 GB, free: 72.06 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001731/0.8303, allocations: 0.755 MB / 0.5912 GB, free: 71.75 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001198/0.8305, allocations: 50.88 kB / 0.5913 GB, free: 71.7 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005189/0.831, allocations: 471.1 kB / 0.5917 GB, free: 71.33 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004534/0.8315, allocations: 425.3 kB / 0.5921 GB, free: 71 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006794/0.8321, allocations: 197.3 kB / 0.5923 GB, free: 70.91 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.8323, allocations: 356 kB / 0.5926 GB, free: 70.58 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001079/0.8334, allocations: 416.2 kB / 0.593 GB, free: 70.43 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001436/0.8348, allocations: 0.5679 MB / 0.5936 GB, free: 70.13 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002485/0.8373, allocations: 1.045 MB / 0.5946 GB, free: 69.58 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.378e-05/0.8373, allocations: 1.062 kB / 0.5946 GB, free: 69.58 MB / 462.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003895/0.8413, allocations: 1.503 MB / 0.5961 GB, free: 68.94 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.381e-05/0.8414, allocations: 5.594 kB / 0.5961 GB, free: 68.94 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.735e-05/0.8414, allocations: 5.406 kB / 0.5961 GB, free: 68.94 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001202/0.8426, allocations: 302.4 kB / 0.5964 GB, free: 68.82 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009789/0.8436, allocations: 240.1 kB / 0.5966 GB, free: 68.79 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00905/0.8527, allocations: 12.14 MB / 0.6085 GB, free: 56.91 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001509/0.8543, allocations: 46.31 kB / 0.6085 GB, free: 56.89 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003006/0.8546, allocations: 50.92 kB / 0.6086 GB, free: 56.88 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.0009706/0.8556, allocations: 255.7 kB / 0.6088 GB, free: 56.67 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005454/0.8561, allocations: 115.5 kB / 0.6089 GB, free: 56.61 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005328/0.8615, allocations: 1.863 MB / 0.6107 GB, free: 55.77 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.068e-05/0.8615, allocations: 12.5 kB / 0.6107 GB, free: 55.77 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.752e-05/0.8615, allocations: 3.438 kB / 0.6107 GB, free: 55.77 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.82e-05/0.8616, allocations: 13.17 kB / 0.6108 GB, free: 55.77 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007654/0.8692, allocations: 2.898 MB / 0.6136 GB, free: 54.36 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.144e-05/0.8693, allocations: 2.562 kB / 0.6136 GB, free: 54.36 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001042/0.8703, allocations: 217 kB / 0.6138 GB, free: 54.34 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001268/0.8716, allocations: 316.1 kB / 0.6141 GB, free: 54.21 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001429/0.8718, allocations: 44.7 kB / 0.6141 GB, free: 54.19 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009772/0.8816, allocations: 12.15 MB / 0.626 GB, free: 42.24 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/0.8816, allocations: 1.156 kB / 0.626 GB, free: 42.24 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006365/0.888, allocations: 2.175 MB / 0.6281 GB, free: 41.16 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007795/0.8889, allocations: 183.8 kB / 0.6283 GB, free: 41 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003905/0.8893, allocations: 25.05 kB / 0.6283 GB, free: 40.98 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0012/0.8905, allocations: 57.61 kB / 0.6284 GB, free: 40.96 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005168/0.891, allocations: 105.7 kB / 0.6285 GB, free: 40.94 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001981/0.8912, allocations: 52.16 kB / 0.6285 GB, free: 40.93 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001558/0.8928, allocations: 0.555 MB / 0.6291 GB, free: 40.68 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.8928, allocations: 0 / 0.6291 GB, free: 40.68 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002955/0.8958, allocations: 443.3 kB / 0.6295 GB, free: 40.61 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.007096/0.9029, allocations: 3.037 MB / 0.6325 GB, free: 38.93 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005121/0.908, allocations: 2.128 MB / 0.6345 GB, free: 37.59 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-05/0.9081, allocations: 0 / 0.6345 GB, free: 37.59 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003098/0.9112, allocations: 1.604 MB / 0.6361 GB, free: 36.43 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002941/0.9141, allocations: 356.8 kB / 0.6365 GB, free: 36.25 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02362/0.9378, allocations: 10.7 MB / 0.6469 GB, free: 28.89 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008831/0.9387, allocations: 1.098 MB / 0.648 GB, free: 27.75 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001241/0.94, allocations: 247.5 kB / 0.6482 GB, free: 27.52 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007939/0.9408, allocations: 499.3 kB / 0.6487 GB, free: 27.04 MB / 462.1 MB Notification: Performance of SimCode: time 2.825e-06/0.9409, allocations: 0 / 0.6487 GB, free: 27.04 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1125/1.053, allocations: 35.21 MB / 0.6831 GB, free: 8.16 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.46/16.52, allocations: 11.78 kB / 0.6831 GB, free: 8.148 MB / 478.1 MB (rm -f ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.sim & python3 -m fmpy simulate --output-file ThermofluidStream_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_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir.fmu > ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) diffSimulationResults("ThermofluidStream_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_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches