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.002096/0.002096, 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.003331/0.003332, allocations: 193.4 kB / 16.53 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 2.193/2.193, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 1.189/1.189, allocations: 91.19 MB / 381.6 MB, free: 9.406 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002824/0.002825, allocations: 77.28 kB / 460.4 MB, free: 23.06 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.2739, allocations: 67.68 MB / 0.5157 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.06875/0.3427, allocations: 41.1 MB / 0.5559 GB, free: 0.8594 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01517/0.358, allocations: 5.319 MB / 0.561 GB, free: 11.52 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003314/0.3613, allocations: 39.75 kB / 0.5611 GB, free: 11.48 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003156/0.3646, allocations: 0.5471 MB / 0.5616 GB, free: 10.93 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008562/0.3733, allocations: 1.355 MB / 0.5629 GB, free: 9.57 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005587/0.3789, allocations: 0.8753 MB / 0.5638 GB, free: 8.695 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.005261/0.3842, allocations: 2.108 MB / 0.5659 GB, free: 6.582 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001677/0.3859, allocations: 281.1 kB / 0.5661 GB, free: 6.297 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005017/0.3909, allocations: 1.288 MB / 0.5674 GB, free: 5.004 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003052/0.3941, allocations: 0.7739 MB / 0.5681 GB, free: 4.227 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005675/0.3947, allocations: 100 kB / 0.5682 GB, free: 4.129 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004343/0.399, allocations: 0.7413 MB / 0.569 GB, free: 3.387 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001091/0.4002, allocations: 266.8 kB / 0.5692 GB, free: 3.125 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001346/0.4016, allocations: 0.649 MB / 0.5698 GB, free: 2.473 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005813/0.4074, allocations: 1.791 MB / 0.5716 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-05/0.4076, allocations: 15.92 kB / 0.5716 GB, free: 0.6602 MB / 446.1 MB Notification: Performance of FrontEnd: time 6.542e-06/0.4077, allocations: 0 / 0.5716 GB, free: 0.6602 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001337/0.4078, allocations: 0 / 0.5716 GB, free: 0.6602 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.004567/0.4124, allocations: 1.647 MB / 0.5732 GB, free: 14.96 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.573e-05/0.4125, allocations: 8.031 kB / 0.5732 GB, free: 14.95 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002043/0.4127, allocations: 147.9 kB / 0.5734 GB, free: 14.8 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006392/0.4133, allocations: 151.2 kB / 0.5735 GB, free: 14.65 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002732/0.4161, allocations: 0.7975 MB / 0.5743 GB, free: 13.81 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.779e-05/0.4162, allocations: 73.94 kB / 0.5744 GB, free: 13.73 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003901/0.4166, allocations: 99.94 kB / 0.5745 GB, free: 13.64 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002185/0.4188, allocations: 1.077 MB / 0.5755 GB, free: 12.53 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.444e-05/0.4189, allocations: 3.938 kB / 0.5755 GB, free: 12.52 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.675e-05/0.419, allocations: 40 kB / 0.5755 GB, free: 12.48 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.816e-05/0.419, allocations: 20 kB / 0.5756 GB, free: 12.46 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002754/0.4218, allocations: 1.008 MB / 0.5766 GB, free: 11.46 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009775/0.4316, allocations: 4.778 MB / 0.5812 GB, free: 6.25 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002353/0.434, allocations: 0.9235 MB / 0.5821 GB, free: 5.316 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001133/0.4352, allocations: 0.4904 MB / 0.5826 GB, free: 4.824 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007061/0.4422, allocations: 3.477 MB / 0.586 GB, free: 0.9297 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.106e-05/0.4423, allocations: 43.12 kB / 0.586 GB, free: 0.8789 MB / 462.1 MB Notification: Performance of pre-optimization done (n=108): time 3.887e-06/0.4423, allocations: 0 / 0.586 GB, free: 0.8789 MB / 462.1 MB Notification: Performance of matching and sorting (n=122): time 0.5415/0.9838, allocations: 4.432 MB / 0.5904 GB, free: 72.16 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.661e-05/0.984, allocations: 89.55 kB / 0.5904 GB, free: 72.06 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001977/0.986, allocations: 0.7548 MB / 0.5912 GB, free: 71.75 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003187/0.9863, allocations: 51.05 kB / 0.5912 GB, free: 71.7 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005414/0.9869, allocations: 481.5 kB / 0.5917 GB, free: 71.33 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004879/0.9874, allocations: 425.3 kB / 0.5921 GB, free: 71 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001369/0.9888, allocations: 201.7 kB / 0.5923 GB, free: 70.91 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003813/0.9892, allocations: 349.3 kB / 0.5926 GB, free: 70.58 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001436/0.9907, allocations: 419.9 kB / 0.593 GB, free: 70.43 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001421/0.9921, allocations: 0.5641 MB / 0.5936 GB, free: 70.14 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002812/0.995, allocations: 1.039 MB / 0.5946 GB, free: 69.59 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.78e-05/0.9951, allocations: 1.062 kB / 0.5946 GB, free: 69.59 MB / 462.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.004805/0.9999, allocations: 1.503 MB / 0.5961 GB, free: 68.95 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.284e-05/0.9999, allocations: 7.812 kB / 0.5961 GB, free: 68.95 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.544e-05/1, allocations: 5.625 kB / 0.5961 GB, free: 68.95 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001074/1.001, allocations: 311.4 kB / 0.5964 GB, free: 68.82 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001499/1.003, allocations: 236 kB / 0.5966 GB, free: 68.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01092/1.014, allocations: 12.13 MB / 0.6084 GB, free: 56.91 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00131/1.015, allocations: 51.56 kB / 0.6085 GB, free: 56.89 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001471/1.015, allocations: 44.17 kB / 0.6085 GB, free: 56.89 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.001623/1.017, allocations: 262.7 kB / 0.6088 GB, free: 56.68 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000678/1.017, allocations: 117.5 kB / 0.6089 GB, free: 56.62 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0049/1.022, allocations: 1.873 MB / 0.6107 GB, free: 55.77 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.978e-05/1.022, allocations: 14.88 kB / 0.6107 GB, free: 55.77 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.716e-05/1.023, allocations: 4.188 kB / 0.6107 GB, free: 55.77 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.904e-05/1.023, allocations: 9.938 kB / 0.6108 GB, free: 55.76 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008606/1.031, allocations: 2.889 MB / 0.6136 GB, free: 54.36 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.608e-06/1.031, allocations: 1.188 kB / 0.6136 GB, free: 54.36 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001015/1.032, allocations: 220.8 kB / 0.6138 GB, free: 54.33 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001163/1.033, allocations: 318.3 kB / 0.6141 GB, free: 54.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001046/1.034, allocations: 38.16 kB / 0.6141 GB, free: 54.18 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01323/1.047, allocations: 12.15 MB / 0.626 GB, free: 42.24 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.633e-06/1.047, allocations: 2.562 kB / 0.626 GB, free: 42.24 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007384/1.054, allocations: 2.168 MB / 0.6281 GB, free: 41.17 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007233/1.055, allocations: 187.3 kB / 0.6283 GB, free: 41 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002212/1.055, allocations: 24.98 kB / 0.6283 GB, free: 40.98 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000974/1.056, allocations: 66.89 kB / 0.6284 GB, free: 40.96 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005472/1.057, allocations: 102.1 kB / 0.6285 GB, free: 40.94 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001771/1.057, allocations: 48.19 kB / 0.6285 GB, free: 40.93 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002461/1.06, allocations: 0.5559 MB / 0.6291 GB, free: 40.68 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.81e-07/1.06, allocations: 4 kB / 0.6291 GB, free: 40.68 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002549/1.062, allocations: 442.5 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.007162/1.069, allocations: 3.046 MB / 0.6325 GB, free: 38.92 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006614/1.076, allocations: 2.128 MB / 0.6345 GB, free: 37.58 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.184e-06/1.076, allocations: 0 / 0.6345 GB, free: 37.58 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002787/1.079, allocations: 1.599 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.003476/1.082, allocations: 353.8 kB / 0.6364 GB, free: 36.26 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02381/1.106, allocations: 10.71 MB / 0.6469 GB, free: 28.93 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001065/1.107, allocations: 1.098 MB / 0.648 GB, free: 27.79 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00144/1.109, allocations: 247 kB / 0.6482 GB, free: 27.56 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009565/1.11, allocations: 499.2 kB / 0.6487 GB, free: 27.07 MB / 462.1 MB Notification: Performance of SimCode: time 3.286e-06/1.11, allocations: 0 / 0.6487 GB, free: 27.07 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9462/2.056, allocations: 35.22 MB / 0.6831 GB, free: 8.195 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.75/24.81, allocations: 3.781 kB / 0.6831 GB, free: 8.191 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir.fmu > ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) diffSimulationResults("ThermofluidStream_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_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches