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.005005/0.005005, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001577/0.001577, allocations: 197.5 kB / 16.67 MB, free: 5.934 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.481/1.481, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.796/0.796, allocations: 93.7 MB / 384.2 MB, free: 5.246 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002421/0.002422, allocations: 79.88 kB / 0.5199 GB, free: 1.094 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3384/0.3408, allocations: 68.26 MB / 0.5866 GB, free: 10.24 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.04418/0.3851, allocations: 41.12 MB / 0.6268 GB, free: 0.9609 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.009032/0.3942, allocations: 5.343 MB / 0.632 GB, free: 11.61 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001742/0.396, allocations: 39.75 kB / 0.632 GB, free: 11.57 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001944/0.398, allocations: 0.5393 MB / 0.6325 GB, free: 11.02 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004429/0.4025, allocations: 1.363 MB / 0.6339 GB, free: 9.652 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002855/0.4053, allocations: 0.8688 MB / 0.6347 GB, free: 8.785 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.00357/0.4089, allocations: 2.144 MB / 0.6368 GB, free: 6.633 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006901/0.4097, allocations: 280.4 kB / 0.6371 GB, free: 6.352 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003394/0.4131, allocations: 1.295 MB / 0.6384 GB, free: 5.051 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001508/0.4146, allocations: 0.7778 MB / 0.6391 GB, free: 4.27 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002943/0.415, allocations: 100 kB / 0.6392 GB, free: 4.172 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002734/0.4177, allocations: 0.7413 MB / 0.6399 GB, free: 3.43 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003953/0.4181, allocations: 270.8 kB / 0.6402 GB, free: 3.164 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009884/0.4191, allocations: 0.6568 MB / 0.6408 GB, free: 2.504 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004285/0.4234, allocations: 1.85 MB / 0.6426 GB, free: 0.6484 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.093e-06/0.4235, allocations: 0 / 0.6426 GB, free: 0.6484 MB / 494.1 MB Notification: Performance of FrontEnd: time 5.31e-06/0.4235, allocations: 4 kB / 0.6426 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.445e-05/0.4236, allocations: 0 / 0.6426 GB, free: 0.6445 MB / 494.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.00408/0.4277, allocations: 1.703 MB / 0.6443 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.55e-05/0.4277, allocations: 12.03 kB / 0.6443 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002211/0.428, allocations: 139.9 kB / 0.6444 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004865/0.4285, allocations: 156 kB / 0.6446 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001963/0.4304, allocations: 0.8853 MB / 0.6455 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001001/0.4306, allocations: 74 kB / 0.6455 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001803/0.4308, allocations: 95.95 kB / 0.6456 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0022/0.433, allocations: 1.085 MB / 0.6467 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.61e-05/0.433, allocations: 0 / 0.6467 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.728e-05/0.4331, allocations: 40 kB / 0.6467 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.258e-05/0.4332, allocations: 24 kB / 0.6467 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002037/0.4352, allocations: 1.012 MB / 0.6477 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007668/0.4429, allocations: 4.752 MB / 0.6524 GB, free: 6.109 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002238/0.4452, allocations: 0.9315 MB / 0.6533 GB, free: 5.164 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001039/0.4463, allocations: 0.4933 MB / 0.6538 GB, free: 4.668 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005632/0.4519, allocations: 3.472 MB / 0.6572 GB, free: 0.7773 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.138e-05/0.4521, allocations: 55.06 kB / 0.6572 GB, free: 0.7148 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=108): time 3.797e-06/0.4521, allocations: 4 kB / 0.6572 GB, free: 0.7109 MB / 0.4981 GB Notification: Performance of matching and sorting (n=122): time 0.01215/0.4643, allocations: 4.461 MB / 0.6616 GB, free: 12.05 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.552e-05/0.4644, allocations: 98.14 kB / 0.6617 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001127/0.4655, allocations: 0.76 MB / 0.6624 GB, free: 11.15 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.000272/0.4658, allocations: 53.7 kB / 0.6625 GB, free: 11.09 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004266/0.4662, allocations: 485.4 kB / 0.6629 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004549/0.4667, allocations: 444.2 kB / 0.6633 GB, free: 10.17 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003368/0.4671, allocations: 194.9 kB / 0.6635 GB, free: 9.977 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001771/0.4672, allocations: 345.9 kB / 0.6639 GB, free: 9.633 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001003/0.4683, allocations: 418.4 kB / 0.6643 GB, free: 9.223 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001122/0.4694, allocations: 0.5662 MB / 0.6648 GB, free: 8.609 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002194/0.4716, allocations: 1.04 MB / 0.6658 GB, free: 7.512 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.115e-06/0.4716, allocations: 12 kB / 0.6658 GB, free: 7.5 MB / 0.5137 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003859/0.4755, allocations: 1.504 MB / 0.6673 GB, free: 5.961 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.544e-05/0.4756, allocations: 8 kB / 0.6673 GB, free: 5.953 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.795e-05/0.4756, allocations: 4 kB / 0.6673 GB, free: 5.949 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001203/0.4768, allocations: 311 kB / 0.6676 GB, free: 5.621 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009889/0.4778, allocations: 235.7 kB / 0.6678 GB, free: 5.391 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01067/0.4885, allocations: 12.14 MB / 0.6797 GB, free: 8.137 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009698/0.4895, allocations: 55.89 kB / 0.6797 GB, free: 8.082 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001246/0.4896, allocations: 52.05 kB / 0.6798 GB, free: 8.031 MB / 0.5294 GB 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.0005824/0.4902, allocations: 258.8 kB / 0.68 GB, free: 7.77 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002673/0.4905, allocations: 123.2 kB / 0.6802 GB, free: 7.648 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004212/0.4947, allocations: 1.858 MB / 0.682 GB, free: 5.742 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.932e-05/0.4948, allocations: 19.94 kB / 0.682 GB, free: 5.723 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.4948, allocations: 0 / 0.682 GB, free: 5.723 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.555e-05/0.4948, allocations: 7.984 kB / 0.682 GB, free: 5.715 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005927/0.5008, allocations: 2.902 MB / 0.6848 GB, free: 2.715 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.593e-06/0.5008, allocations: 0 / 0.6848 GB, free: 2.715 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009602/0.5018, allocations: 215.7 kB / 0.685 GB, free: 2.504 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001113/0.5029, allocations: 330.6 kB / 0.6854 GB, free: 2.156 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001009/0.503, allocations: 35.98 kB / 0.6854 GB, free: 2.121 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0117/0.5147, allocations: 12.14 MB / 0.6972 GB, free: 4.855 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.5148, allocations: 0 / 0.6972 GB, free: 4.855 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004954/0.5197, allocations: 2.179 MB / 0.6994 GB, free: 2.625 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004309/0.5202, allocations: 192.3 kB / 0.6996 GB, free: 2.418 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001726/0.5204, allocations: 28 kB / 0.6996 GB, free: 2.391 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007544/0.5211, allocations: 51.95 kB / 0.6996 GB, free: 2.34 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003197/0.5215, allocations: 108.8 kB / 0.6997 GB, free: 2.234 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001107/0.5216, allocations: 47.97 kB / 0.6998 GB, free: 2.188 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0008727/0.5225, allocations: 0.5633 MB / 0.7003 GB, free: 1.613 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5225, allocations: 4 kB / 0.7003 GB, free: 1.609 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00176/0.5242, allocations: 447.5 kB / 0.7008 GB, free: 1.172 MB / 0.545 GB 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.005913/0.5302, allocations: 3.029 MB / 0.7037 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.004035/0.5342, allocations: 2.094 MB / 0.7058 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.735e-06/0.5343, allocations: 0 / 0.7058 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002742/0.537, allocations: 1.601 MB / 0.7073 GB, free: 10.19 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001908/0.539, allocations: 357.7 kB / 0.7077 GB, free: 9.844 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0192/0.5582, allocations: 10.14 MB / 0.7176 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008124/0.559, allocations: 1.103 MB / 0.7187 GB, free: 14.28 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0009489/0.56, allocations: 231.9 kB / 0.7189 GB, free: 14.07 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000738/0.5608, allocations: 0.4915 MB / 0.7194 GB, free: 13.58 MB / 0.5762 GB Notification: Performance of SimCode: time 8.52e-07/0.5608, allocations: 0 / 0.7194 GB, free: 13.58 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3803/0.9411, allocations: 35.8 MB / 0.7543 GB, free: 155.1 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.9/16.85, allocations: 11.39 kB / 0.7543 GB, free: 155.1 MB / 0.5919 GB (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