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.0008487/0.0008487, allocations: 91.84 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004982/0.004982, allocations: 170 kB / 16.26 MB, free: 6.613 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.158/1.158, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.5408/0.5408, allocations: 89.64 MB / 381.1 MB, free: 11.32 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002939/0.0002939, allocations: 13.19 kB / 460.7 MB, free: 24.11 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08989/0.0902, allocations: 68.83 MB / 0.5172 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.03319/0.1234, allocations: 40.92 MB / 0.5571 GB, free: 2.223 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.006011/0.1295, allocations: 5.349 MB / 0.5623 GB, free: 12.85 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003895/0.1299, allocations: 15.94 kB / 0.5624 GB, free: 12.84 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009426/0.1308, allocations: 481.4 kB / 0.5628 GB, free: 12.36 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002003/0.1328, allocations: 1.197 MB / 0.564 GB, free: 11.16 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001502/0.1344, allocations: 0.7943 MB / 0.5648 GB, free: 10.37 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001984/0.1363, allocations: 2.58 MB / 0.5673 GB, free: 7.781 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003183/0.1367, allocations: 246.3 kB / 0.5675 GB, free: 7.531 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001638/0.1383, allocations: 1.109 MB / 0.5686 GB, free: 6.418 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006638/0.139, allocations: 0.7155 MB / 0.5693 GB, free: 5.699 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.075e-05/0.1391, allocations: 48 kB / 0.5693 GB, free: 5.652 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001227/0.1403, allocations: 0.6747 MB / 0.57 GB, free: 4.977 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001873/0.1405, allocations: 210.9 kB / 0.5702 GB, free: 4.77 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00046/0.141, allocations: 0.5769 MB / 0.5708 GB, free: 4.184 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001521/0.1425, allocations: 1.635 MB / 0.5724 GB, free: 2.543 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.1425, allocations: 0 / 0.5724 GB, free: 2.543 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1425, allocations: 0 / 0.5724 GB, free: 2.543 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.518e-06/0.1425, allocations: 0 / 0.5724 GB, free: 2.543 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.002214/0.1448, allocations: 1.332 MB / 0.5737 GB, free: 1.16 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.248e-05/0.1448, allocations: 11.97 kB / 0.5737 GB, free: 1.148 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001522/0.145, allocations: 147.9 kB / 0.5738 GB, free: 0.9961 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002709/0.1452, allocations: 131.4 kB / 0.5739 GB, free: 0.8672 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007386/0.146, allocations: 0.6414 MB / 0.5746 GB, free: 188 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.31e-05/0.146, allocations: 70.38 kB / 0.5746 GB, free: 120 kB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000134/0.1462, allocations: 104.3 kB / 0.5747 GB, free: 16 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1844/0.3306, allocations: 1.078 MB / 0.5758 GB, free: 59.34 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.631e-05/0.3306, allocations: 2.375 kB / 0.5758 GB, free: 59.34 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.748e-05/0.3307, allocations: 37.16 kB / 0.5758 GB, free: 59.34 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.35e-05/0.3308, allocations: 23.05 kB / 0.5759 GB, free: 59.34 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001856/0.3326, allocations: 1.029 MB / 0.5769 GB, free: 59.33 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004999/0.3376, allocations: 4.756 MB / 0.5815 GB, free: 56.26 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00158/0.3392, allocations: 0.9454 MB / 0.5824 GB, free: 55.84 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007951/0.34, allocations: 0.5024 MB / 0.5829 GB, free: 55.63 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003445/0.3435, allocations: 3.503 MB / 0.5863 GB, free: 52.65 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.967e-05/0.3435, allocations: 48.73 kB / 0.5864 GB, free: 52.61 MB / 446.1 MB Notification: Performance of pre-optimization done (n=108): time 2.214e-06/0.3435, allocations: 0 / 0.5864 GB, free: 52.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=122): time 0.008399/0.3519, allocations: 4.526 MB / 0.5908 GB, free: 50.28 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.856e-05/0.352, allocations: 91.67 kB / 0.5909 GB, free: 50.18 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000631/0.3526, allocations: 0.6444 MB / 0.5915 GB, free: 49.9 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.486e-05/0.3527, allocations: 48.08 kB / 0.5916 GB, free: 49.86 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001977/0.3529, allocations: 415.1 kB / 0.592 GB, free: 49.53 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002057/0.3531, allocations: 424.9 kB / 0.5924 GB, free: 49.2 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001129/0.3532, allocations: 94.36 kB / 0.5925 GB, free: 49.15 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.466e-05/0.3533, allocations: 354 kB / 0.5928 GB, free: 48.82 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008012/0.3541, allocations: 435.1 kB / 0.5932 GB, free: 48.68 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008474/0.355, allocations: 0.593 MB / 0.5938 GB, free: 48.38 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001638/0.3566, allocations: 1.079 MB / 0.5948 GB, free: 47.83 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.3566, allocations: 2.594 kB / 0.5948 GB, free: 47.83 MB / 446.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002788/0.3594, allocations: 1.536 MB / 0.5963 GB, free: 47.18 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.3594, allocations: 6.312 kB / 0.5964 GB, free: 47.18 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.3595, allocations: 4.094 kB / 0.5964 GB, free: 47.18 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009292/0.3604, allocations: 315.4 kB / 0.5967 GB, free: 47.04 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008026/0.3612, allocations: 244.7 kB / 0.5969 GB, free: 47.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005645/0.3669, allocations: 11.25 MB / 0.6079 GB, free: 35.97 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00068/0.3676, allocations: 84.58 kB / 0.608 GB, free: 35.95 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001044/0.3677, allocations: 49.7 kB / 0.608 GB, free: 35.93 MB / 446.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.0003255/0.368, allocations: 244.8 kB / 0.6082 GB, free: 35.73 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001747/0.3682, allocations: 101 kB / 0.6083 GB, free: 35.68 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00353/0.3717, allocations: 1.902 MB / 0.6102 GB, free: 34.82 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.085e-05/0.3717, allocations: 20.41 kB / 0.6102 GB, free: 34.81 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/0.3717, allocations: 3.562 kB / 0.6102 GB, free: 34.81 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.07e-05/0.3718, allocations: 7.359 kB / 0.6102 GB, free: 34.81 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004161/0.3759, allocations: 2.906 MB / 0.6131 GB, free: 32.88 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.3759, allocations: 1.156 kB / 0.6131 GB, free: 32.88 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000802/0.3768, allocations: 223.1 kB / 0.6133 GB, free: 32.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008843/0.3776, allocations: 324.9 kB / 0.6136 GB, free: 32.62 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.676e-05/0.3777, allocations: 41.72 kB / 0.6136 GB, free: 32.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005533/0.3833, allocations: 11.26 MB / 0.6246 GB, free: 21.19 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.3833, allocations: 1.375 kB / 0.6246 GB, free: 21.19 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003502/0.3868, allocations: 2.222 MB / 0.6268 GB, free: 19.91 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001496/0.387, allocations: 184.8 kB / 0.627 GB, free: 19.73 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001245/0.3871, allocations: 27.38 kB / 0.627 GB, free: 19.71 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007286/0.3878, allocations: 97.3 kB / 0.6271 GB, free: 19.67 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001797/0.388, allocations: 104 kB / 0.6272 GB, free: 19.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.272e-05/0.3881, allocations: 45 kB / 0.6272 GB, free: 19.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004933/0.3886, allocations: 497.4 kB / 0.6277 GB, free: 19.32 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3886, allocations: 5.094 kB / 0.6277 GB, free: 19.31 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001137/0.3897, allocations: 444.8 kB / 0.6281 GB, free: 19.24 MB / 446.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.003861/0.3936, allocations: 3.094 MB / 0.6312 GB, free: 17.29 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002465/0.3961, allocations: 2.117 MB / 0.6332 GB, free: 15.46 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.3961, allocations: 0 / 0.6332 GB, free: 15.46 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001714/0.3978, allocations: 1.639 MB / 0.6348 GB, free: 13.72 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001505/0.3993, allocations: 311.3 kB / 0.6351 GB, free: 13.43 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01234/0.4117, allocations: 10.78 MB / 0.6457 GB, free: 2.25 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000366/0.4121, allocations: 1.059 MB / 0.6467 GB, free: 1.168 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006733/0.4127, allocations: 217.5 kB / 0.6469 GB, free: 0.9648 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004532/0.4132, allocations: 443.3 kB / 0.6473 GB, free: 0.5312 MB / 446.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4132, allocations: 0 / 0.6473 GB, free: 0.5312 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.291/1.704, allocations: 32.23 MB / 0.6788 GB, free: 0.6719 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002165/1.705, allocations: 241.6 kB / 0.679 GB, free: 428 kB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.817/4.522, allocations: 0 / 0.679 GB, free: 428 kB / 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