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.001257/0.001257, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001186/0.001186, allocations: 189 kB / 16.13 MB, free: 6.656 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.195/1.195, allocations: 222.9 MB / 239.8 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.5589/0.5589, allocations: 89.52 MB / 379.5 MB, free: 11.28 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00136/0.00136, allocations: 72.14 kB / 457.7 MB, free: 23.87 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09517/0.09654, allocations: 67.32 MB / 0.5127 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.03438/0.131, allocations: 41.86 MB / 0.5536 GB, free: 2.848 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.006829/0.1378, allocations: 5.403 MB / 0.5588 GB, free: 13.42 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008249/0.1387, allocations: 19.88 kB / 0.5588 GB, free: 13.4 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001122/0.1398, allocations: 477.5 kB / 0.5593 GB, free: 12.93 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00244/0.1423, allocations: 1.2 MB / 0.5605 GB, free: 11.73 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001707/0.144, allocations: 0.7976 MB / 0.5613 GB, free: 10.93 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001959/0.146, allocations: 2.573 MB / 0.5638 GB, free: 8.348 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003208/0.1463, allocations: 242.3 kB / 0.564 GB, free: 8.102 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00174/0.1481, allocations: 1.136 MB / 0.5651 GB, free: 6.961 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006453/0.1487, allocations: 0.7506 MB / 0.5658 GB, free: 6.207 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001184/0.1489, allocations: 64 kB / 0.5659 GB, free: 6.145 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001627/0.1505, allocations: 0.6826 MB / 0.5666 GB, free: 5.461 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001977/0.1507, allocations: 234.9 kB / 0.5668 GB, free: 5.23 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004631/0.1512, allocations: 0.5752 MB / 0.5674 GB, free: 4.652 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001632/0.1528, allocations: 1.671 MB / 0.569 GB, free: 2.977 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.1528, allocations: 0 / 0.569 GB, free: 2.977 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1528, allocations: 0 / 0.569 GB, free: 2.977 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.11e-05/0.1528, allocations: 0 / 0.569 GB, free: 2.977 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.002555/0.1554, allocations: 1.531 MB / 0.5705 GB, free: 1.395 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.1554, allocations: 8.031 kB / 0.5705 GB, free: 1.387 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001479/0.1556, allocations: 147.8 kB / 0.5706 GB, free: 1.234 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003184/0.1559, allocations: 139.4 kB / 0.5708 GB, free: 1.098 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007667/0.1567, allocations: 0.6376 MB / 0.5714 GB, free: 428 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.425e-05/0.1568, allocations: 66.38 kB / 0.5714 GB, free: 364 kB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/0.1569, allocations: 96.28 kB / 0.5715 GB, free: 268 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001599/0.1585, allocations: 1.085 MB / 0.5726 GB, free: 15.14 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/0.1585, allocations: 0 / 0.5726 GB, free: 15.14 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.045e-05/0.1586, allocations: 36 kB / 0.5726 GB, free: 15.1 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.316e-05/0.1586, allocations: 24 kB / 0.5727 GB, free: 15.08 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00157/0.1602, allocations: 1.012 MB / 0.5736 GB, free: 14.07 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004847/0.1651, allocations: 4.723 MB / 0.5783 GB, free: 8.914 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001599/0.1667, allocations: 0.9382 MB / 0.5792 GB, free: 7.957 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000738/0.1674, allocations: 0.4938 MB / 0.5797 GB, free: 7.461 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003848/0.1713, allocations: 3.466 MB / 0.583 GB, free: 3.582 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.271e-05/0.1713, allocations: 51.06 kB / 0.5831 GB, free: 3.523 MB / 462.1 MB Notification: Performance of pre-optimization done (n=108): time 2.114e-06/0.1713, allocations: 4 kB / 0.5831 GB, free: 3.52 MB / 462.1 MB Notification: Performance of matching and sorting (n=122): time 0.1858/0.3571, allocations: 4.38 MB / 0.5874 GB, free: 75.33 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.454e-05/0.3572, allocations: 90.27 kB / 0.5875 GB, free: 75.23 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007207/0.3579, allocations: 0.6414 MB / 0.5881 GB, free: 75.11 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 7.056e-05/0.358, allocations: 48.77 kB / 0.5881 GB, free: 75.07 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002076/0.3582, allocations: 411 kB / 0.5885 GB, free: 74.92 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000214/0.3584, allocations: 427.3 kB / 0.5889 GB, free: 74.62 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002796/0.3587, allocations: 201.2 kB / 0.5891 GB, free: 74.52 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.242e-05/0.3588, allocations: 349.2 kB / 0.5895 GB, free: 74.2 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008088/0.3596, allocations: 413.2 kB / 0.5898 GB, free: 74.05 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008917/0.3605, allocations: 0.5652 MB / 0.5904 GB, free: 73.75 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00174/0.3622, allocations: 1.039 MB / 0.5914 GB, free: 73.22 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.3622, allocations: 4.969 kB / 0.5914 GB, free: 73.22 MB / 462.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002931/0.3652, allocations: 1.481 MB / 0.5929 GB, free: 72.59 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.3652, allocations: 14.41 kB / 0.5929 GB, free: 72.59 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.3652, allocations: 3.688 kB / 0.5929 GB, free: 72.59 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009572/0.3662, allocations: 303.8 kB / 0.5932 GB, free: 72.46 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008305/0.367, allocations: 245.4 kB / 0.5934 GB, free: 72.43 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005431/0.3725, allocations: 11.23 MB / 0.6044 GB, free: 61.43 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008227/0.3733, allocations: 73.64 kB / 0.6044 GB, free: 61.41 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.344e-05/0.3734, allocations: 47.25 kB / 0.6045 GB, free: 61.4 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.0003658/0.3738, allocations: 253.5 kB / 0.6047 GB, free: 61.19 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001801/0.374, allocations: 99.91 kB / 0.6048 GB, free: 61.14 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003149/0.3771, allocations: 1.857 MB / 0.6066 GB, free: 60.29 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.662e-06/0.3771, allocations: 13.12 kB / 0.6066 GB, free: 60.29 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.3772, allocations: 5.906 kB / 0.6067 GB, free: 60.29 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.312e-05/0.3772, allocations: 6.594 kB / 0.6067 GB, free: 60.29 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004151/0.3813, allocations: 2.844 MB / 0.6094 GB, free: 58.91 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.3813, allocations: 0.7969 kB / 0.6094 GB, free: 58.91 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008036/0.3822, allocations: 215.7 kB / 0.6096 GB, free: 58.89 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009059/0.3831, allocations: 323.4 kB / 0.61 GB, free: 58.77 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.578e-05/0.3832, allocations: 44 kB / 0.61 GB, free: 58.74 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005767/0.3889, allocations: 11.24 MB / 0.621 GB, free: 47.74 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.3889, allocations: 1.281 kB / 0.621 GB, free: 47.74 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003686/0.3926, allocations: 2.159 MB / 0.6231 GB, free: 46.68 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001566/0.3928, allocations: 164.8 kB / 0.6232 GB, free: 46.53 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001359/0.393, allocations: 35.14 kB / 0.6233 GB, free: 46.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007275/0.3937, allocations: 75.19 kB / 0.6233 GB, free: 46.48 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002334/0.3939, allocations: 107.2 kB / 0.6234 GB, free: 46.46 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.675e-05/0.394, allocations: 46.36 kB / 0.6235 GB, free: 46.45 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00056/0.3946, allocations: 497.7 kB / 0.624 GB, free: 46.23 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3946, allocations: 0 / 0.624 GB, free: 46.23 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001391/0.396, allocations: 451.8 kB / 0.6244 GB, free: 46.16 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.004347/0.4003, allocations: 3.008 MB / 0.6273 GB, free: 44.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002676/0.403, allocations: 2.073 MB / 0.6294 GB, free: 43.18 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.403, allocations: 1.25 kB / 0.6294 GB, free: 43.18 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001818/0.4049, allocations: 1.611 MB / 0.6309 GB, free: 42.02 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001363/0.4062, allocations: 319.3 kB / 0.6312 GB, free: 41.92 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01251/0.4188, allocations: 10.47 MB / 0.6415 GB, free: 35.13 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003481/0.4191, allocations: 1.052 MB / 0.6425 GB, free: 34.28 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0007158/0.4199, allocations: 226.6 kB / 0.6427 GB, free: 34.17 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004518/0.4203, allocations: 433.8 kB / 0.6431 GB, free: 33.82 MB / 462.1 MB Notification: Performance of SimCode: time 4.01e-07/0.4203, allocations: 0 / 0.6431 GB, free: 33.82 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03569/0.456, allocations: 32.56 MB / 0.6749 GB, free: 2.184 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001177/0.4562, allocations: 247.6 kB / 0.6751 GB, free: 1.926 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.426/2.882, allocations: 4 kB / 0.6751 GB, free: 1.922 MB / 462.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