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.01358/0.01358, allocations: 101 kB / 15.73 MB, free: 6.055 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.002302/0.002302, allocations: 192.8 kB / 16.67 MB, free: 5.969 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.94/1.94, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 1.176/1.176, allocations: 93.7 MB / 384.2 MB, free: 5.242 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003377/0.003377, allocations: 79.88 kB / 0.52 GB, free: 1.07 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7067/0.7101, allocations: 68.26 MB / 0.5866 GB, free: 10.22 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.05638/0.7666, allocations: 41.11 MB / 0.6268 GB, free: 0.957 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01336/0.78, allocations: 5.343 MB / 0.632 GB, free: 11.6 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002853/0.783, allocations: 43.69 kB / 0.632 GB, free: 11.56 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002914/0.7859, allocations: 0.5432 MB / 0.6325 GB, free: 11.01 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007547/0.7936, allocations: 1.355 MB / 0.6339 GB, free: 9.648 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004383/0.798, allocations: 0.864 MB / 0.6347 GB, free: 8.785 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.006366/0.8044, allocations: 2.155 MB / 0.6368 GB, free: 6.621 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001246/0.8057, allocations: 280.4 kB / 0.6371 GB, free: 6.34 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00597/0.8117, allocations: 1.303 MB / 0.6384 GB, free: 5.031 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002644/0.8144, allocations: 0.7661 MB / 0.6391 GB, free: 4.262 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007967/0.8152, allocations: 100 kB / 0.6392 GB, free: 4.164 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004854/0.8201, allocations: 0.753 MB / 0.6399 GB, free: 3.41 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008732/0.821, allocations: 262.9 kB / 0.6402 GB, free: 3.152 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002323/0.8233, allocations: 0.6567 MB / 0.6408 GB, free: 2.492 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007977/0.8313, allocations: 1.85 MB / 0.6426 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.085e-05/0.8314, allocations: 7.875 kB / 0.6426 GB, free: 0.6289 MB / 494.1 MB Notification: Performance of FrontEnd: time 4.308e-06/0.8314, allocations: 0 / 0.6426 GB, free: 0.6289 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.000108/0.8315, allocations: 0 / 0.6426 GB, free: 0.6289 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.00757/0.8391, allocations: 1.697 MB / 0.6443 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 9.045e-05/0.8392, allocations: 11.97 kB / 0.6443 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005295/0.8398, allocations: 147.9 kB / 0.6445 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000809/0.8406, allocations: 156 kB / 0.6446 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003109/0.8437, allocations: 0.8837 MB / 0.6455 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001148/0.8439, allocations: 66 kB / 0.6455 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003191/0.8442, allocations: 95.95 kB / 0.6456 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00305/0.8473, allocations: 1.085 MB / 0.6467 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.417e-05/0.8473, allocations: 3.938 kB / 0.6467 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001174/0.8475, allocations: 36 kB / 0.6467 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.34e-05/0.8475, allocations: 24 kB / 0.6467 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002323/0.8498, allocations: 1.008 MB / 0.6477 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009137/0.859, allocations: 4.752 MB / 0.6524 GB, free: 6.105 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00251/0.8616, allocations: 0.9393 MB / 0.6533 GB, free: 5.152 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001097/0.8627, allocations: 0.4986 MB / 0.6538 GB, free: 4.652 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007072/0.8698, allocations: 3.464 MB / 0.6572 GB, free: 0.7695 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.222e-05/0.8699, allocations: 62.95 kB / 0.6572 GB, free: 0.6992 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=108): time 4.308e-06/0.8699, allocations: 0 / 0.6572 GB, free: 0.6992 MB / 0.4981 GB Notification: Performance of matching and sorting (n=122): time 0.01406/0.884, allocations: 4.461 MB / 0.6616 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001059/0.8842, allocations: 94.2 kB / 0.6617 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001779/0.886, allocations: 0.7678 MB / 0.6624 GB, free: 11.13 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0001641/0.8862, allocations: 45.7 kB / 0.6625 GB, free: 11.08 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005693/0.8868, allocations: 485.4 kB / 0.6629 GB, free: 10.6 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005889/0.8874, allocations: 440.2 kB / 0.6633 GB, free: 10.17 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000487/0.8879, allocations: 202.9 kB / 0.6635 GB, free: 9.965 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0002966/0.8882, allocations: 341.9 kB / 0.6639 GB, free: 9.625 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001208/0.8894, allocations: 422.4 kB / 0.6643 GB, free: 9.211 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001387/0.8908, allocations: 0.57 MB / 0.6648 GB, free: 8.594 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002335/0.8932, allocations: 1.04 MB / 0.6658 GB, free: 7.496 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.854e-06/0.8932, allocations: 4 kB / 0.6658 GB, free: 7.492 MB / 0.5137 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.004455/0.8977, allocations: 1.504 MB / 0.6673 GB, free: 5.953 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.145e-05/0.8977, allocations: 8 kB / 0.6673 GB, free: 5.945 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/0.8977, allocations: 4 kB / 0.6673 GB, free: 5.941 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001342/0.8991, allocations: 315 kB / 0.6676 GB, free: 5.609 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001091/0.9002, allocations: 243.5 kB / 0.6678 GB, free: 5.371 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01474/0.915, allocations: 12.13 MB / 0.6797 GB, free: 8.121 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001623/0.9167, allocations: 51.95 kB / 0.6797 GB, free: 8.07 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002147/0.9169, allocations: 44.3 kB / 0.6798 GB, free: 8.027 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.0009817/0.9179, allocations: 261.6 kB / 0.68 GB, free: 7.762 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004884/0.9184, allocations: 127.1 kB / 0.6802 GB, free: 7.637 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004698/0.9231, allocations: 1.868 MB / 0.682 GB, free: 5.723 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.659e-05/0.9231, allocations: 12 kB / 0.682 GB, free: 5.711 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.221e-05/0.9232, allocations: 7.938 kB / 0.682 GB, free: 5.703 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.261e-05/0.9232, allocations: 8.109 kB / 0.682 GB, free: 5.695 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006695/0.9299, allocations: 2.887 MB / 0.6848 GB, free: 2.711 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.236e-05/0.93, allocations: 4 kB / 0.6848 GB, free: 2.707 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009916/0.931, allocations: 215.7 kB / 0.685 GB, free: 2.496 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00119/0.9322, allocations: 318.6 kB / 0.6853 GB, free: 2.16 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001503/0.9323, allocations: 43.97 kB / 0.6854 GB, free: 2.117 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01483/0.9472, allocations: 12.15 MB / 0.6972 GB, free: 4.844 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/0.9473, allocations: 4.031 kB / 0.6973 GB, free: 4.84 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00602/0.9533, allocations: 2.172 MB / 0.6994 GB, free: 2.617 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007423/0.9541, allocations: 192.2 kB / 0.6996 GB, free: 2.41 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002195/0.9543, allocations: 31.98 kB / 0.6996 GB, free: 2.379 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008278/0.9551, allocations: 55.95 kB / 0.6996 GB, free: 2.324 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004774/0.9556, allocations: 101 kB / 0.6997 GB, free: 2.227 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001402/0.9558, allocations: 47.97 kB / 0.6998 GB, free: 2.18 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001199/0.957, allocations: 0.5594 MB / 0.7003 GB, free: 1.609 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.21e-07/0.957, allocations: 4 kB / 0.7003 GB, free: 1.605 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.002408/0.9594, allocations: 451.5 kB / 0.7008 GB, free: 1.164 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.006676/0.9661, allocations: 3.047 MB / 0.7037 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.005042/0.9712, allocations: 2.079 MB / 0.7058 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.517e-05/0.9713, allocations: 0 / 0.7058 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.003423/0.9747, allocations: 1.613 MB / 0.7073 GB, free: 10.17 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002597/0.9773, allocations: 350.5 kB / 0.7077 GB, free: 9.832 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02403/1.001, allocations: 10.13 MB / 0.7176 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001302/1.003, allocations: 1.107 MB / 0.7187 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001515/1.004, allocations: 242.6 kB / 0.7189 GB, free: 14.05 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009832/1.005, allocations: 495.3 kB / 0.7194 GB, free: 13.57 MB / 0.5762 GB Notification: Performance of SimCode: time 3.296e-06/1.005, allocations: 0 / 0.7194 GB, free: 13.57 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7197/1.725, allocations: 35.8 MB / 0.7543 GB, free: 155.1 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.34/24.07, allocations: 10.14 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Undirected_Boundaries_Tests_Reservoir_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 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.mat","/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