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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo", uses=false) Using package ThermofluidStream with version 0.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|reservoir.M|reservoir.U_med|reservoir.m_flow_fore|reservoir.m_flow_rear|reservoir2.M|reservoir2.U_med|reservoir2.m_flow_in|reservoir2.m_flow_out",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") translateModel(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|reservoir.M|reservoir.U_med|reservoir.m_flow_fore|reservoir.m_flow_rear|reservoir2.M|reservoir2.U_med|reservoir2.m_flow_in|reservoir2.m_flow_out",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002111/0.002111, allocations: 181.6 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.351/1.351, allocations: 205.1 MB / 221.8 MB, free: 8.48 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000965/0.0009652, allocations: 114 kB / 269.2 MB, free: 8.422 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo): time 0.7106/0.7106, allocations: 91.21 MB / 407.8 MB, free: 2.539 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001845/0.001845, allocations: 55.86 kB / 483.5 MB, free: 6.582 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3208/0.3226, allocations: 64.97 MB / 0.5357 GB, free: 33.71 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.03006/0.3528, allocations: 41.74 MB / 0.5764 GB, free: 11.84 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.007882/0.3607, allocations: 5.36 MB / 0.5817 GB, free: 6.469 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001824/0.3626, allocations: 19.88 kB / 0.5817 GB, free: 6.449 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001621/0.3642, allocations: 469.5 kB / 0.5821 GB, free: 5.988 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003845/0.3681, allocations: 1.201 MB / 0.5833 GB, free: 4.781 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00224/0.3704, allocations: 0.7903 MB / 0.5841 GB, free: 3.992 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002758/0.3731, allocations: 2.604 MB / 0.5866 GB, free: 1.383 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003918/0.3735, allocations: 238.4 kB / 0.5868 GB, free: 1.141 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001896/0.3754, allocations: 0.9337 MB / 0.5877 GB, free: 208 kB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008016/0.3763, allocations: 0.7431 MB / 0.5885 GB, free: 15.45 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001172/0.3764, allocations: 64 kB / 0.5885 GB, free: 15.39 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001969/0.3784, allocations: 0.7955 MB / 0.5893 GB, free: 14.6 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002099/0.3786, allocations: 215 kB / 0.5895 GB, free: 14.39 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005414/0.3791, allocations: 0.5635 MB / 0.5901 GB, free: 13.82 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002008/0.3812, allocations: 1.702 MB / 0.5917 GB, free: 12.11 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3812, allocations: 0 / 0.5917 GB, free: 12.11 MB / 426.7 MB Notification: Performance of FrontEnd: time 8.81e-07/0.3812, allocations: 3.938 kB / 0.5917 GB, free: 12.11 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.118e-05/0.3812, allocations: 0 / 0.5917 GB, free: 12.11 MB / 426.7 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.002799/0.384, allocations: 1.5 MB / 0.5932 GB, free: 10.56 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.3841, allocations: 8.031 kB / 0.5932 GB, free: 10.55 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003385/0.3844, allocations: 135.4 kB / 0.5933 GB, free: 10.42 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008027/0.3852, allocations: 0.6064 MB / 0.5939 GB, free: 9.766 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.114e-05/0.3853, allocations: 70.38 kB / 0.594 GB, free: 9.699 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001287/0.3854, allocations: 96.28 kB / 0.5941 GB, free: 9.605 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001693/0.3871, allocations: 1.075 MB / 0.5951 GB, free: 8.5 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.093e-05/0.3871, allocations: 0 / 0.5951 GB, free: 8.5 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.374e-05/0.3872, allocations: 40 kB / 0.5952 GB, free: 8.461 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.512e-05/0.3873, allocations: 24 kB / 0.5952 GB, free: 8.438 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002029/0.3893, allocations: 1.02 MB / 0.5962 GB, free: 7.418 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00594/0.3953, allocations: 4.774 MB / 0.6009 GB, free: 2.148 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001965/0.3972, allocations: 1.15 MB / 0.602 GB, free: 0.9727 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008474/0.3981, allocations: 0.5397 MB / 0.6025 GB, free: 436 kB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00391/0.402, allocations: 3.156 MB / 0.6056 GB, free: 12.95 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.934e-05/0.4021, allocations: 43.5 kB / 0.6056 GB, free: 12.89 MB / 442.7 MB Notification: Performance of pre-optimization done (n=117): time 2.865e-06/0.4021, allocations: 0 / 0.6056 GB, free: 12.89 MB / 442.7 MB Notification: Performance of matching and sorting (n=131): time 0.01009/0.4122, allocations: 4.649 MB / 0.6102 GB, free: 8.047 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.268e-05/0.4123, allocations: 98.08 kB / 0.6103 GB, free: 7.93 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006176/0.4129, allocations: 0.5352 MB / 0.6108 GB, free: 7.383 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.073e-05/0.413, allocations: 49.7 kB / 0.6108 GB, free: 7.328 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002523/0.4133, allocations: 384.9 kB / 0.6112 GB, free: 6.945 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003047/0.4136, allocations: 445.3 kB / 0.6116 GB, free: 6.504 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003162/0.4139, allocations: 206.9 kB / 0.6118 GB, free: 6.297 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.4141, allocations: 398.7 kB / 0.6122 GB, free: 5.898 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009648/0.415, allocations: 462.4 kB / 0.6126 GB, free: 5.449 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001047/0.4161, allocations: 0.6027 MB / 0.6132 GB, free: 4.805 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002028/0.4181, allocations: 1.128 MB / 0.6143 GB, free: 3.637 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.4182, allocations: 0 / 0.6143 GB, free: 3.637 MB / 442.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.003262/0.4214, allocations: 1.57 MB / 0.6159 GB, free: 2.035 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.468e-05/0.4215, allocations: 11.94 kB / 0.6159 GB, free: 2.023 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.4215, allocations: 0 / 0.6159 GB, free: 2.023 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009917/0.4225, allocations: 311 kB / 0.6162 GB, free: 1.695 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000933/0.4234, allocations: 235.7 kB / 0.6164 GB, free: 1.465 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007964/0.4314, allocations: 11.22 MB / 0.6274 GB, free: 5.18 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008497/0.4323, allocations: 75.95 kB / 0.6274 GB, free: 5.105 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001057/0.4324, allocations: 51.97 kB / 0.6275 GB, free: 5.055 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (127): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.0004171/0.4328, allocations: 245.5 kB / 0.6277 GB, free: 4.805 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002052/0.433, allocations: 102.8 kB / 0.6278 GB, free: 4.703 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003926/0.437, allocations: 1.811 MB / 0.6296 GB, free: 2.871 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.271e-05/0.437, allocations: 12 kB / 0.6296 GB, free: 2.859 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.437, allocations: 4 kB / 0.6296 GB, free: 2.855 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.666e-05/0.437, allocations: 15.97 kB / 0.6296 GB, free: 2.84 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005429/0.4425, allocations: 3.123 MB / 0.6327 GB, free: 15.62 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/0.4425, allocations: 3.938 kB / 0.6327 GB, free: 15.61 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009614/0.4435, allocations: 235.7 kB / 0.6329 GB, free: 15.38 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009871/0.4445, allocations: 318.6 kB / 0.6332 GB, free: 15.05 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001181/0.4446, allocations: 43.97 kB / 0.6332 GB, free: 15 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008099/0.4527, allocations: 11.24 MB / 0.6442 GB, free: 2.695 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.4527, allocations: 0 / 0.6442 GB, free: 2.695 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04881/0.5015, allocations: 25.4 MB / 0.669 GB, free: 8.086 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002233/0.5018, allocations: 163.8 kB / 0.6692 GB, free: 7.906 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001988/0.502, allocations: 32 kB / 0.6692 GB, free: 7.875 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008751/0.5029, allocations: 83.92 kB / 0.6693 GB, free: 7.793 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002926/0.5032, allocations: 125.1 kB / 0.6694 GB, free: 7.668 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001314/0.5033, allocations: 48.12 kB / 0.6694 GB, free: 7.621 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0004403/0.5038, allocations: 379.1 kB / 0.6698 GB, free: 7.258 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5038, allocations: 0 / 0.6698 GB, free: 7.258 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002221/0.506, allocations: 0.6561 MB / 0.6704 GB, free: 6.602 MB / 0.4948 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 (122): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.0006973/0.5067, allocations: 437.8 kB / 0.6709 GB, free: 6.172 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003741/0.5105, allocations: 2.309 MB / 0.6731 GB, free: 3.746 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.5105, allocations: 0 / 0.6731 GB, free: 3.746 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00262/0.5131, allocations: 1.767 MB / 0.6748 GB, free: 1.855 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001489/0.5146, allocations: 282.3 kB / 0.6751 GB, free: 1.586 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1914/0.7061, allocations: 4.609 MB / 0.6796 GB, free: 125 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008848/0.707, allocations: 1.103 MB / 0.6807 GB, free: 124.2 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.001221/0.7082, allocations: 255 kB / 0.6809 GB, free: 124.2 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000466/0.7087, allocations: 125.1 kB / 0.681 GB, free: 124.2 MB / 0.4948 GB Notification: Performance of SimCode: time 6.92e-07/0.7087, allocations: 0.9688 kB / 0.681 GB, free: 124.2 MB / 0.4948 GB Notification: Performance of Templates: time 0.03975/0.7485, allocations: 30.5 MB / 0.7108 GB, free: 108.1 MB / 0.4948 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.makefile (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 & ./ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > 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","../files/ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches