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/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001545/0.001545, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001735/0.001735, allocations: 191.8 kB / 16.53 MB, free: 6.391 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.397/1.397, allocations: 222.9 MB / 240.2 MB, free: 4.273 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.6391/0.6391, allocations: 89.48 MB / 379.9 MB, free: 11 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001528, allocations: 81.98 kB / 458.2 MB, free: 23.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1184, allocations: 67.3 MB / 0.5132 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.04097/0.1594, allocations: 40.92 MB / 0.5531 GB, free: 3.371 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.007674/0.1671, allocations: 5.267 MB / 0.5583 GB, free: 14.08 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001287/0.1685, allocations: 19.88 kB / 0.5583 GB, free: 14.06 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001652/0.1701, allocations: 0.5355 MB / 0.5588 GB, free: 13.52 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00369/0.1739, allocations: 1.305 MB / 0.5601 GB, free: 12.21 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002342/0.1763, allocations: 0.8702 MB / 0.5609 GB, free: 11.34 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002513/0.1788, allocations: 2.007 MB / 0.5629 GB, free: 9.324 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005185/0.1793, allocations: 264.4 kB / 0.5632 GB, free: 9.055 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002569/0.1819, allocations: 1.245 MB / 0.5644 GB, free: 7.805 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001126/0.183, allocations: 0.7507 MB / 0.5651 GB, free: 7.051 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002685/0.1833, allocations: 100 kB / 0.5652 GB, free: 6.953 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002113/0.1854, allocations: 0.7452 MB / 0.5659 GB, free: 6.207 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003187/0.1858, allocations: 259 kB / 0.5662 GB, free: 5.953 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008147/0.1866, allocations: 0.6219 MB / 0.5668 GB, free: 5.328 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002706/0.1893, allocations: 1.69 MB / 0.5684 GB, free: 3.633 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1893, allocations: 0 / 0.5684 GB, free: 3.633 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1893, allocations: 0 / 0.5684 GB, free: 3.633 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.179e-05/0.1894, allocations: 0 / 0.5684 GB, free: 3.633 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.003192/0.1926, allocations: 1.531 MB / 0.5699 GB, free: 2.051 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.1926, allocations: 8.031 kB / 0.5699 GB, free: 2.043 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004233/0.1931, allocations: 139.4 kB / 0.5701 GB, free: 1.906 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009574/0.194, allocations: 0.6375 MB / 0.5707 GB, free: 1.227 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.268e-05/0.1941, allocations: 70.38 kB / 0.5708 GB, free: 1.16 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001736/0.1943, allocations: 100.3 kB / 0.5709 GB, free: 1.062 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001881/0.1962, allocations: 1.074 MB / 0.5719 GB, free: 15.95 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.024e-05/0.1962, allocations: 0 / 0.5719 GB, free: 15.95 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001041/0.1963, allocations: 47.94 kB / 0.572 GB, free: 15.91 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.813e-05/0.1963, allocations: 24 kB / 0.572 GB, free: 15.88 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001822/0.1982, allocations: 1.004 MB / 0.573 GB, free: 14.88 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006191/0.2044, allocations: 4.743 MB / 0.5776 GB, free: 9.699 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001888/0.2063, allocations: 0.9352 MB / 0.5785 GB, free: 8.738 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008558/0.2072, allocations: 0.4909 MB / 0.579 GB, free: 8.246 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00457/0.2118, allocations: 3.477 MB / 0.5824 GB, free: 4.355 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.075e-05/0.2118, allocations: 55.11 kB / 0.5824 GB, free: 4.293 MB / 462.1 MB Notification: Performance of pre-optimization done (n=108): time 3.526e-06/0.2118, allocations: 0 / 0.5824 GB, free: 4.293 MB / 462.1 MB Notification: Performance of matching and sorting (n=122): time 0.2217/0.4336, allocations: 4.371 MB / 0.5867 GB, free: 74.91 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.453e-05/0.4336, allocations: 93.84 kB / 0.5868 GB, free: 74.82 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000957/0.4346, allocations: 0.6393 MB / 0.5874 GB, free: 74.69 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001873/0.4348, allocations: 49.98 kB / 0.5875 GB, free: 74.66 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002513/0.4351, allocations: 409.5 kB / 0.5878 GB, free: 74.57 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002831/0.4353, allocations: 426.3 kB / 0.5883 GB, free: 74.39 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003144/0.4357, allocations: 198.6 kB / 0.5884 GB, free: 74.37 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 7.348e-05/0.4357, allocations: 348.6 kB / 0.5888 GB, free: 74.07 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009368/0.4367, allocations: 411.3 kB / 0.5892 GB, free: 73.95 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001055/0.4378, allocations: 0.5653 MB / 0.5897 GB, free: 73.65 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001981/0.4397, allocations: 1.048 MB / 0.5907 GB, free: 73.12 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.4398, allocations: 0.8438 kB / 0.5907 GB, free: 73.12 MB / 462.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003513/0.4433, allocations: 1.496 MB / 0.5922 GB, free: 72.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.53e-05/0.4433, allocations: 8.406 kB / 0.5922 GB, free: 72.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/0.4434, allocations: 3.875 kB / 0.5922 GB, free: 72.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001033/0.4444, allocations: 308.5 kB / 0.5925 GB, free: 72.38 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000957/0.4454, allocations: 236.5 kB / 0.5927 GB, free: 72.36 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006698/0.4521, allocations: 12.14 MB / 0.6046 GB, free: 60.48 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008548/0.453, allocations: 59.56 kB / 0.6046 GB, free: 60.45 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001452/0.4531, allocations: 46.5 kB / 0.6047 GB, free: 60.45 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.0004441/0.4536, allocations: 256.2 kB / 0.6049 GB, free: 60.23 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002536/0.4538, allocations: 97.66 kB / 0.605 GB, free: 60.18 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003591/0.4574, allocations: 1.861 MB / 0.6068 GB, free: 59.34 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.055e-05/0.4575, allocations: 17.06 kB / 0.6069 GB, free: 59.33 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.154e-05/0.4575, allocations: 6.562 kB / 0.6069 GB, free: 59.33 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.805e-05/0.4575, allocations: 10.12 kB / 0.6069 GB, free: 59.33 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004996/0.4625, allocations: 2.844 MB / 0.6097 GB, free: 57.95 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.722e-06/0.4625, allocations: 0 / 0.6097 GB, free: 57.95 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008628/0.4634, allocations: 220.6 kB / 0.6099 GB, free: 57.93 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009823/0.4644, allocations: 313.1 kB / 0.6102 GB, free: 57.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001031/0.4645, allocations: 38.59 kB / 0.6102 GB, free: 57.79 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007114/0.4716, allocations: 12.16 MB / 0.6221 GB, free: 45.87 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.4717, allocations: 5.25 kB / 0.6221 GB, free: 45.87 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004399/0.4761, allocations: 2.153 MB / 0.6242 GB, free: 44.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002643/0.4764, allocations: 170.2 kB / 0.6243 GB, free: 44.65 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002125/0.4766, allocations: 24.02 kB / 0.6244 GB, free: 44.64 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008186/0.4774, allocations: 61.38 kB / 0.6244 GB, free: 44.61 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002654/0.4777, allocations: 105.9 kB / 0.6245 GB, free: 44.59 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001039/0.4778, allocations: 48.03 kB / 0.6246 GB, free: 44.58 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0006555/0.4785, allocations: 495.2 kB / 0.625 GB, free: 44.37 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4785, allocations: 0 / 0.625 GB, free: 44.37 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001529/0.48, allocations: 448.1 kB / 0.6255 GB, free: 44.29 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.00068/0.4807, allocations: 419.4 kB / 0.6259 GB, free: 44.11 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004067/0.4848, allocations: 2.123 MB / 0.6279 GB, free: 42.78 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.4848, allocations: 1.094 kB / 0.6279 GB, free: 42.78 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002223/0.487, allocations: 1.609 MB / 0.6295 GB, free: 41.62 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00174/0.4888, allocations: 337.6 kB / 0.6298 GB, free: 41.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004456/0.4932, allocations: 2.537 MB / 0.6323 GB, free: 40.11 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006342/0.4939, allocations: 1.059 MB / 0.6334 GB, free: 39.38 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001254/0.4952, allocations: 226 kB / 0.6336 GB, free: 39.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003933/0.4956, allocations: 109.3 kB / 0.6337 GB, free: 39.28 MB / 462.1 MB Notification: Performance of SimCode: time 1.973e-06/0.4956, allocations: 4 kB / 0.6337 GB, free: 39.27 MB / 462.1 MB Notification: Performance of Templates: time 0.03387/0.5295, allocations: 24.21 MB / 0.6573 GB, free: 20.31 MB / 462.1 MB 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches