Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.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.Topology.Tests.TestConnectors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_fore1.rear.m_flow|boundary_fore2.rear.m_flow|boundary_fore3.rear.m_flow|boundary_fore5.rear.m_flow|boundary_rear.fore.m_flow|connectRearOutlet.rear.m_flow|flowResistance2.rear.m_flow|pulse.T_start|pulse.count|sink3.inlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors") translateModel(ThermofluidStream.Undirected.Topology.Tests.TestConnectors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_fore1.rear.m_flow|boundary_fore2.rear.m_flow|boundary_fore3.rear.m_flow|boundary_fore5.rear.m_flow|boundary_rear.fore.m_flow|connectRearOutlet.rear.m_flow|flowResistance2.rear.m_flow|pulse.T_start|pulse.count|sink3.inlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001308/0.001308, allocations: 100.1 kB / 15.88 MB, free: 12 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.001448/0.001448, allocations: 201.7 kB / 16.8 MB, free: 6.828 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.305/1.305, allocations: 222.9 MB / 240.5 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6267/0.6267, allocations: 89.52 MB / 380.1 MB, free: 11.25 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001439/0.001439, allocations: 80.59 kB / 458.2 MB, free: 23.88 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09701/0.09847, allocations: 67.31 MB / 0.5132 GB, free: 12.92 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Topology.Tests.TestConnectors): time 0.4175/0.516, allocations: 224.1 MB / 0.732 GB, free: 3.199 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.03204/0.5481, allocations: 31.01 MB / 0.7623 GB, free: 4.102 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002604/0.5507, allocations: 55.69 kB / 0.7624 GB, free: 4.047 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.004014/0.5547, allocations: 1.516 MB / 0.7638 GB, free: 2.523 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.005974/0.5607, allocations: 2.265 MB / 0.7661 GB, free: 252 kB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.005828/0.5666, allocations: 2.328 MB / 0.7683 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.005628/0.5722, allocations: 5.116 MB / 0.7733 GB, free: 8.777 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00139/0.5736, allocations: 0.8923 MB / 0.7742 GB, free: 7.836 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003577/0.5772, allocations: 1.907 MB / 0.7761 GB, free: 5.922 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002915/0.5802, allocations: 2.192 MB / 0.7782 GB, free: 3.723 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0003959/0.5806, allocations: 172 kB / 0.7784 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00703/0.5876, allocations: 3.633 MB / 0.7819 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0005047/0.5881, allocations: 0.498 MB / 0.7824 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.00156/0.5897, allocations: 1.318 MB / 0.7837 GB, free: 14.09 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.004105/0.5938, allocations: 3.243 MB / 0.7869 GB, free: 10.84 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.5938, allocations: 4 kB / 0.7869 GB, free: 10.84 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.202e-06/0.5938, allocations: 0 / 0.7869 GB, free: 10.84 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 3.068e-05/0.5939, allocations: 0 / 0.7869 GB, free: 10.84 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.005771/0.5997, allocations: 3.032 MB / 0.7898 GB, free: 7.73 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.5997, allocations: 12.03 kB / 0.7898 GB, free: 7.719 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004709/0.6002, allocations: 265.8 kB / 0.7901 GB, free: 7.457 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001633/0.6018, allocations: 1.168 MB / 0.7912 GB, free: 6.234 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000115/0.6019, allocations: 156.5 kB / 0.7914 GB, free: 6.078 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002946/0.6022, allocations: 227.7 kB / 0.7916 GB, free: 5.855 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003937/0.6062, allocations: 2.472 MB / 0.794 GB, free: 3.27 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.639e-05/0.6062, allocations: 3.938 kB / 0.794 GB, free: 3.266 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001696/0.6064, allocations: 84 kB / 0.7941 GB, free: 3.184 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.543e-05/0.6065, allocations: 52 kB / 0.7941 GB, free: 3.133 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003717/0.6102, allocations: 2.23 MB / 0.7963 GB, free: 0.8945 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01228/0.6225, allocations: 11.06 MB / 0.8071 GB, free: 4.98 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00337/0.6259, allocations: 1.758 MB / 0.8088 GB, free: 3.207 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001472/0.6274, allocations: 0.9022 MB / 0.8097 GB, free: 2.301 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007382/0.6348, allocations: 6.539 MB / 0.8161 GB, free: 10.95 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001812/0.6366, allocations: 1.047 MB / 0.8171 GB, free: 9.887 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=183): time 3.317e-06/0.6366, allocations: 0 / 0.8171 GB, free: 9.887 MB / 0.6231 GB Notification: Performance of matching and sorting (n=184): time 0.01127/0.6479, allocations: 5.844 MB / 0.8228 GB, free: 3.777 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.218e-05/0.648, allocations: 95.11 kB / 0.8229 GB, free: 3.668 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001556/0.6495, allocations: 1.319 MB / 0.8242 GB, free: 2.34 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0001453/0.6497, allocations: 57.7 kB / 0.8243 GB, free: 2.277 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006022/0.6503, allocations: 0.8201 MB / 0.8251 GB, free: 1.445 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004694/0.6508, allocations: 0.6121 MB / 0.8257 GB, free: 0.8242 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004536/0.6512, allocations: 299.4 kB / 0.8259 GB, free: 0.5273 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 8.91e-05/0.6513, allocations: 301.1 kB / 0.8262 GB, free: 236 kB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1999/0.8512, allocations: 0.6683 MB / 0.8269 GB, free: 243.3 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001891/0.8531, allocations: 0.8531 MB / 0.8277 GB, free: 243.2 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003401/0.8565, allocations: 1.668 MB / 0.8294 GB, free: 242.9 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.118e-05/0.8565, allocations: 1.625 kB / 0.8294 GB, free: 242.9 MB / 0.6231 GB Notification: Performance of matching and sorting (n=208) (initialization): time 0.005553/0.8621, allocations: 2.485 MB / 0.8318 GB, free: 241.9 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 4.032e-05/0.8622, allocations: 37.34 kB / 0.8318 GB, free: 241.8 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.493e-05/0.8622, allocations: 5 kB / 0.8318 GB, free: 241.8 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002054/0.8642, allocations: 0.6179 MB / 0.8324 GB, free: 241.6 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001057/0.8653, allocations: 297.8 kB / 0.8327 GB, free: 241.6 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01314/0.8785, allocations: 15.04 MB / 0.8474 GB, free: 228.3 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001397/0.8799, allocations: 153.4 kB / 0.8475 GB, free: 228.3 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002319/0.8801, allocations: 75.86 kB / 0.8476 GB, free: 228.3 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (163): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(3,18,77.8%), (1,4,100.0%), (1,4,100.0%), (1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,1,100.0%), (1,8,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007616/0.8809, allocations: 394 kB / 0.848 GB, free: 228 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003815/0.8813, allocations: 196.6 kB / 0.8482 GB, free: 228 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006111/0.8874, allocations: 3.406 MB / 0.8515 GB, free: 226.5 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.634e-05/0.8874, allocations: 21.06 kB / 0.8515 GB, free: 226.5 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-05/0.8875, allocations: 7.203 kB / 0.8515 GB, free: 226.5 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.226e-05/0.8875, allocations: 13.48 kB / 0.8515 GB, free: 226.5 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008283/0.8958, allocations: 4.988 MB / 0.8564 GB, free: 224.2 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.447e-06/0.8958, allocations: 2.375 kB / 0.8564 GB, free: 224.2 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001136/0.897, allocations: 286.4 kB / 0.8567 GB, free: 224.2 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001898/0.8989, allocations: 0.5474 MB / 0.8572 GB, free: 224 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000173/0.899, allocations: 73.17 kB / 0.8573 GB, free: 223.9 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009277/0.9083, allocations: 14.06 MB / 0.871 GB, free: 210.8 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.9084, allocations: 6.094 kB / 0.871 GB, free: 210.8 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006484/0.9149, allocations: 3.629 MB / 0.8746 GB, free: 209.1 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005017/0.9154, allocations: 282.2 kB / 0.8748 GB, free: 208.8 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003371/0.9157, allocations: 50 kB / 0.8749 GB, free: 208.8 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001099/0.9168, allocations: 119.2 kB / 0.875 GB, free: 208.8 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003858/0.9172, allocations: 177 kB / 0.8752 GB, free: 208.7 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001522/0.9174, allocations: 69.56 kB / 0.8752 GB, free: 208.7 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001152/0.9186, allocations: 0.9745 MB / 0.8762 GB, free: 208.4 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.11e-07/0.9186, allocations: 0 / 0.8762 GB, free: 208.4 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.002479/0.921, allocations: 0.8781 MB / 0.877 GB, free: 208.2 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 10 (connectRearRear.rear_a.m_flow,connectForeFore.fore_a.m_flow,connectInletFore.fore.m_flow,connectRearOutlet.rear.m_flow,sink1.inlet.m_flow,boundary_fore3.rear.m_flow,flowResistance.rear.m_flow,flowResistance2.rear.m_flow,flowResistance3.inlet.m_flow,flowResistance4.rear.m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (158): * Single equations (assignments): 147 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(1,4,100.0%), (1,1,100.0%), (1,4,100.0%), (1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,8,100.0%), (1,2,100.0%), (3,18,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00124/0.9223, allocations: 1.008 MB / 0.878 GB, free: 207.9 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.004398/0.9267, allocations: 3.076 MB / 0.881 GB, free: 206 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.9267, allocations: 0 / 0.881 GB, free: 206 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.002896/0.9296, allocations: 2.242 MB / 0.8832 GB, free: 204.4 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003447/0.9331, allocations: 0.7284 MB / 0.8839 GB, free: 204 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00639/0.9395, allocations: 5.238 MB / 0.889 GB, free: 200.5 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007891/0.9403, allocations: 1.491 MB / 0.8905 GB, free: 199.4 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006914/0.941, allocations: 202.7 kB / 0.8907 GB, free: 199.4 MB / 0.6231 GB Notification: Performance of SimCode: time 4.2e-07/0.941, allocations: 0 / 0.8907 GB, free: 199.4 MB / 0.6231 GB Notification: Performance of Templates: time 0.07711/1.018, allocations: 119.2 MB / 1.007 GB, free: 80.45 MB / 0.6231 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.sim & ./ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Topology.Tests.TestConnectors_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestConnectors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches