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: 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_dev_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_dev_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.001578/0.001578, allocations: 108.4 kB / 15.99 MB, free: 6.359 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.001513/0.001513, allocations: 191.2 kB / 16.91 MB, free: 6.195 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.408/1.408, allocations: 222.9 MB / 240.6 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7639/0.7639, allocations: 93.69 MB / 384.4 MB, free: 5.477 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002437/0.002437, allocations: 84.16 kB / 463.5 MB, free: 6.488 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1394/0.1418, allocations: 68.27 MB / 0.5193 GB, free: 2.145 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.257/0.3989, allocations: 41.63 MB / 0.56 GB, free: 19.27 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.007321/0.4062, allocations: 5.434 MB / 0.5653 GB, free: 15.37 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001763/0.4081, allocations: 49.75 kB / 0.5654 GB, free: 15.34 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001402/0.4095, allocations: 486.8 kB / 0.5658 GB, free: 15.09 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003822/0.4134, allocations: 1.242 MB / 0.567 GB, free: 14.34 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002144/0.4155, allocations: 0.812 MB / 0.5678 GB, free: 13.89 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002906/0.4184, allocations: 2.14 MB / 0.5699 GB, free: 12.85 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000485/0.4189, allocations: 276.5 kB / 0.5702 GB, free: 12.76 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003099/0.422, allocations: 1.294 MB / 0.5714 GB, free: 12.15 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001136/0.4232, allocations: 0.7806 MB / 0.5722 GB, free: 11.79 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001864/0.4234, allocations: 99.5 kB / 0.5723 GB, free: 11.79 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002379/0.4258, allocations: 0.7514 MB / 0.573 GB, free: 11.56 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002734/0.426, allocations: 264.4 kB / 0.5733 GB, free: 11.39 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007265/0.4268, allocations: 0.6523 MB / 0.5739 GB, free: 11 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002195/0.429, allocations: 1.36 MB / 0.5753 GB, free: 10.52 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.429, allocations: 1.062 kB / 0.5753 GB, free: 10.52 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.429, allocations: 4.547 kB / 0.5753 GB, free: 10.52 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.174e-05/0.429, allocations: 0 / 0.5753 GB, free: 10.52 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.003485/0.4325, allocations: 1.649 MB / 0.5769 GB, free: 9.453 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.4326, allocations: 13.62 kB / 0.5769 GB, free: 9.449 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004206/0.433, allocations: 150 kB / 0.577 GB, free: 9.379 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001279/0.4343, allocations: 0.8078 MB / 0.5778 GB, free: 8.863 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.329e-05/0.4344, allocations: 78.58 kB / 0.5779 GB, free: 8.824 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001454/0.4345, allocations: 94.59 kB / 0.578 GB, free: 8.793 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001803/0.4364, allocations: 1.077 MB / 0.579 GB, free: 8.32 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.637e-05/0.4364, allocations: 1.375 kB / 0.579 GB, free: 8.32 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.92e-05/0.4365, allocations: 46.09 kB / 0.5791 GB, free: 8.285 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.082e-05/0.4365, allocations: 20.97 kB / 0.5791 GB, free: 8.285 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001681/0.4382, allocations: 1.011 MB / 0.5801 GB, free: 7.93 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005466/0.4437, allocations: 4.755 MB / 0.5847 GB, free: 4.195 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001785/0.4455, allocations: 0.9312 MB / 0.5856 GB, free: 3.77 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007805/0.4463, allocations: 0.4928 MB / 0.5861 GB, free: 3.562 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004247/0.4505, allocations: 3.469 MB / 0.5895 GB, free: 0.5352 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.709e-05/0.4506, allocations: 49.22 kB / 0.5896 GB, free: 496 kB / 446.1 MB Notification: Performance of pre-optimization done (n=108): time 2.966e-06/0.4506, allocations: 0 / 0.5896 GB, free: 496 kB / 446.1 MB Notification: Performance of matching and sorting (n=122): time 0.01104/0.4616, allocations: 4.448 MB / 0.5939 GB, free: 14.07 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.804e-05/0.4617, allocations: 91.38 kB / 0.594 GB, free: 13.97 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001143/0.4629, allocations: 0.7557 MB / 0.5947 GB, free: 13.65 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001071/0.463, allocations: 50.92 kB / 0.5948 GB, free: 13.6 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004038/0.4634, allocations: 479.6 kB / 0.5952 GB, free: 13.22 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003835/0.4638, allocations: 429.6 kB / 0.5956 GB, free: 12.88 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003462/0.4642, allocations: 196 kB / 0.5958 GB, free: 12.79 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.4644, allocations: 363.3 kB / 0.5962 GB, free: 12.45 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008979/0.4653, allocations: 413.9 kB / 0.5966 GB, free: 12.3 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001115/0.4664, allocations: 0.5662 MB / 0.5971 GB, free: 12 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002056/0.4684, allocations: 1.041 MB / 0.5981 GB, free: 11.43 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.4685, allocations: 1.219 kB / 0.5981 GB, free: 11.43 MB / 462.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003499/0.472, allocations: 1.51 MB / 0.5996 GB, free: 10.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.279e-05/0.472, allocations: 7.344 kB / 0.5996 GB, free: 10.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.472, allocations: 3.531 kB / 0.5996 GB, free: 10.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001057/0.4731, allocations: 310.9 kB / 0.5999 GB, free: 10.51 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009/0.474, allocations: 234.7 kB / 0.6001 GB, free: 10.45 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01051/0.4845, allocations: 12.14 MB / 0.612 GB, free: 14.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00129/0.4859, allocations: 76.44 kB / 0.6121 GB, free: 14.16 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001434/0.486, allocations: 49.83 kB / 0.6121 GB, free: 14.14 MB / 478.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.0006391/0.4867, allocations: 255.6 kB / 0.6124 GB, free: 13.93 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002888/0.487, allocations: 115.2 kB / 0.6125 GB, free: 13.88 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004134/0.4911, allocations: 1.869 MB / 0.6143 GB, free: 12.04 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.576e-05/0.4911, allocations: 12 kB / 0.6143 GB, free: 12.03 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.124e-05/0.4911, allocations: 7.938 kB / 0.6143 GB, free: 12.02 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.779e-05/0.4912, allocations: 11.97 kB / 0.6143 GB, free: 12.01 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005855/0.497, allocations: 2.882 MB / 0.6171 GB, free: 9.039 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.34e-05/0.4971, allocations: 4 kB / 0.6171 GB, free: 9.035 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009874/0.4981, allocations: 215.8 kB / 0.6173 GB, free: 8.824 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001199/0.4993, allocations: 321.4 kB / 0.6177 GB, free: 8.488 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000109/0.4994, allocations: 47.91 kB / 0.6177 GB, free: 8.441 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01081/0.5102, allocations: 12.16 MB / 0.6296 GB, free: 11.18 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.5103, allocations: 4.031 kB / 0.6296 GB, free: 11.18 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00481/0.5151, allocations: 2.161 MB / 0.6317 GB, free: 8.965 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005131/0.5156, allocations: 179.7 kB / 0.6319 GB, free: 8.77 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000185/0.5158, allocations: 27.94 kB / 0.6319 GB, free: 8.742 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008705/0.5167, allocations: 83.77 kB / 0.632 GB, free: 8.66 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003262/0.517, allocations: 109 kB / 0.6321 GB, free: 8.555 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001086/0.5172, allocations: 43.97 kB / 0.6321 GB, free: 8.512 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0008128/0.518, allocations: 0.5672 MB / 0.6327 GB, free: 7.934 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.518, allocations: 0 / 0.6327 GB, free: 7.934 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001708/0.5197, allocations: 447.8 kB / 0.6331 GB, free: 7.496 MB / 494.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.0007535/0.5205, allocations: 416.4 kB / 0.6335 GB, free: 7.102 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004153/0.5246, allocations: 2.118 MB / 0.6356 GB, free: 4.879 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.969e-06/0.5246, allocations: 12 kB / 0.6356 GB, free: 4.867 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002626/0.5273, allocations: 1.605 MB / 0.6371 GB, free: 3.156 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001876/0.5292, allocations: 354.7 kB / 0.6375 GB, free: 2.852 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005558/0.5347, allocations: 3.155 MB / 0.6406 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007856/0.5355, allocations: 1.1 MB / 0.6416 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004251/0.536, allocations: 135.3 kB / 0.6418 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of SimCode: time 9.42e-07/0.536, allocations: 0 / 0.6418 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of Templates: time 0.06232/0.5983, allocations: 55.6 MB / 0.6961 GB, free: 7.016 MB / 0.545 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.makefile (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 & ./ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > 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