Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestJunction.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.TestJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|sink.inlet.m_flow|sink4.inlet.m_flow|sink6.inlet.m_flow|sink7.inlet.m_flow|source.outlet.m_flow|source3.outlet.m_flow|source7.outlet.m_flow|source8.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestJunction") translateModel(ThermofluidStream.Undirected.Topology.Tests.TestJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|sink.inlet.m_flow|sink4.inlet.m_flow|sink6.inlet.m_flow|sink7.inlet.m_flow|source.outlet.m_flow|source3.outlet.m_flow|source7.outlet.m_flow|source8.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestJunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001471/0.001471, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001732/0.001733, allocations: 194.7 kB / 16.14 MB, free: 6.691 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.402/1.402, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6785/0.6785, allocations: 91.19 MB / 381.2 MB, free: 9.598 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001523/0.001523, allocations: 76.69 kB / 459.6 MB, free: 23.29 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1262, allocations: 67.7 MB / 0.515 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Topology.Tests.TestJunction): time 0.4952/0.6215, allocations: 236.3 MB / 0.7457 GB, free: 3.898 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.04289/0.6644, allocations: 37.14 MB / 0.782 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00448/0.6689, allocations: 135.1 kB / 0.7821 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.005536/0.6745, allocations: 1.648 MB / 0.7837 GB, free: 12.86 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.009193/0.6838, allocations: 2.763 MB / 0.7864 GB, free: 10.08 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.008036/0.6918, allocations: 2.364 MB / 0.7887 GB, free: 7.711 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.008091/0.7, allocations: 5.942 MB / 0.7945 GB, free: 1.742 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002302/0.7023, allocations: 0.9888 MB / 0.7955 GB, free: 0.6992 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00459/0.7069, allocations: 1.922 MB / 0.7974 GB, free: 14.77 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00528/0.7122, allocations: 2.639 MB / 0.7999 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.001431/0.7137, allocations: 204 kB / 0.8001 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01104/0.7248, allocations: 4.402 MB / 0.8044 GB, free: 7.512 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.001397/0.7262, allocations: 0.6613 MB / 0.8051 GB, free: 6.848 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.003401/0.7296, allocations: 1.613 MB / 0.8067 GB, free: 5.227 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.01208/0.7417, allocations: 5.27 MB / 0.8118 GB, free: 15.94 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 6.752e-06/0.7418, allocations: 0 / 0.8118 GB, free: 15.94 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.593e-06/0.7418, allocations: 4 kB / 0.8118 GB, free: 15.93 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 0.0001644/0.742, allocations: 4 kB / 0.8118 GB, free: 15.93 MB / 0.6231 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 572 * Number of variables: 572 Notification: Performance of Generate backend data structure: time 0.01033/0.7523, allocations: 3.994 MB / 0.8157 GB, free: 11.87 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.7524, allocations: 8.031 kB / 0.8157 GB, free: 11.86 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009739/0.7533, allocations: 355.8 kB / 0.8161 GB, free: 11.51 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003518/0.7569, allocations: 1.839 MB / 0.8179 GB, free: 9.594 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001503/0.757, allocations: 168.5 kB / 0.818 GB, free: 9.426 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005128/0.7576, allocations: 239.8 kB / 0.8182 GB, free: 9.191 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005284/0.7629, allocations: 2.813 MB / 0.821 GB, free: 6.297 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.903e-05/0.7629, allocations: 11.92 kB / 0.821 GB, free: 6.285 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002376/0.7632, allocations: 88 kB / 0.8211 GB, free: 6.199 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.282e-05/0.7633, allocations: 65 kB / 0.8211 GB, free: 6.137 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004761/0.768, allocations: 2.804 MB / 0.8239 GB, free: 3.332 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2482/1.016, allocations: 12.02 MB / 0.8356 GB, free: 234.3 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004319/1.021, allocations: 2.292 MB / 0.8379 GB, free: 233.3 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002139/1.023, allocations: 1.342 MB / 0.8392 GB, free: 232.8 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01086/1.034, allocations: 8.711 MB / 0.8477 GB, free: 225.6 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.982e-05/1.034, allocations: 66.69 kB / 0.8477 GB, free: 225.5 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=225): time 5.47e-06/1.034, allocations: 0 / 0.8477 GB, free: 225.5 MB / 0.6231 GB Notification: Performance of matching and sorting (n=229): time 0.02053/1.054, allocations: 9.331 MB / 0.8569 GB, free: 220.2 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/1.055, allocations: 155.7 kB / 0.857 GB, free: 220 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004536/1.059, allocations: 1.794 MB / 0.8588 GB, free: 219.3 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0005262/1.06, allocations: 61.42 kB / 0.8588 GB, free: 219.2 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008912/1.061, allocations: 1.118 MB / 0.8599 GB, free: 218.4 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.001022/1.062, allocations: 0.7627 MB / 0.8607 GB, free: 217.8 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001147/1.063, allocations: 379.5 kB / 0.861 GB, free: 217.6 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 7.502e-05/1.063, allocations: 306.2 kB / 0.8613 GB, free: 217.3 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001872/1.065, allocations: 0.894 MB / 0.8622 GB, free: 217 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002212/1.067, allocations: 1.203 MB / 0.8634 GB, free: 216.3 MB / 0.6231 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: flowResistance4.m_flow = flowResistance4.m_flow_0 (flowResistance7.m_flow_0 - flowResistance5.m_flow_0 = flowResistance4.m_flow_0) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: flowResistance10.m_flow = flowResistance10.m_flow_0 (flowResistance6.m_flow_0 - flowResistance11.m_flow_0 = flowResistance10.m_flow_0) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: flowResistance8.m_flow = flowResistance8.m_flow_0 (flowResistance3.m_flow_0 - flowResistance9.m_flow_0 = flowResistance8.m_flow_0) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: flowResistance.m_flow = flowResistance.m_flow_0 (flowResistance2.m_flow_0 - flowResistance1.m_flow_0 = flowResistance.m_flow_0) Notification: Performance of analyzeInitialSystem (initialization): time 0.05054/1.117, allocations: 11.44 MB / 0.8745 GB, free: 210.9 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.901e-05/1.118, allocations: 7.156 kB / 0.8745 GB, free: 210.9 MB / 0.6231 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.006653/1.124, allocations: 3.259 MB / 0.8777 GB, free: 209.2 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 3.198e-05/1.124, allocations: 8.594 kB / 0.8777 GB, free: 209.2 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.81e-05/1.124, allocations: 7.125 kB / 0.8777 GB, free: 209.2 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002764/1.127, allocations: 0.8336 MB / 0.8785 GB, free: 208.8 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001578/1.129, allocations: 373.4 kB / 0.8789 GB, free: 208.7 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01472/1.143, allocations: 11.02 MB / 0.8897 GB, free: 198.7 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00229/1.146, allocations: 135.7 kB / 0.8898 GB, free: 198.5 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004639/1.146, allocations: 95.91 kB / 0.8899 GB, free: 198.4 MB / 0.6231 GB Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization system: flowResistance4.m_flow = flowResistance4.m_flow_0 flowResistance10.m_flow = flowResistance10.m_flow_0 flowResistance8.m_flow = flowResistance8.m_flow_0 flowResistance.m_flow = flowResistance.m_flow_0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (199): * Single equations (assignments): 195 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,9,77.8%), (3,22,77.8%), (3,19,77.8%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001418/1.148, allocations: 481.4 kB / 0.8903 GB, free: 198 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008493/1.148, allocations: 248.9 kB / 0.8906 GB, free: 197.7 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007376/1.156, allocations: 4.123 MB / 0.8946 GB, free: 193.6 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.476e-05/1.156, allocations: 28 kB / 0.8946 GB, free: 193.6 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.955e-05/1.156, allocations: 12 kB / 0.8946 GB, free: 193.6 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.718e-05/1.156, allocations: 15.95 kB / 0.8947 GB, free: 193.5 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01328/1.169, allocations: 6.576 MB / 0.9011 GB, free: 186.9 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.259e-05/1.169, allocations: 4 kB / 0.9011 GB, free: 186.9 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001405/1.171, allocations: 351.5 kB / 0.9014 GB, free: 186.5 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002419/1.173, allocations: 0.7136 MB / 0.9021 GB, free: 185.8 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003352/1.174, allocations: 75.95 kB / 0.9022 GB, free: 185.7 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00923/1.183, allocations: 9.575 MB / 0.9115 GB, free: 175.6 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/1.183, allocations: 4 kB / 0.9115 GB, free: 175.6 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008122/1.191, allocations: 4.894 MB / 0.9163 GB, free: 170.7 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009354/1.192, allocations: 333.6 kB / 0.9166 GB, free: 170.3 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006643/1.193, allocations: 63.84 kB / 0.9167 GB, free: 170.3 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001892/1.195, allocations: 135.7 kB / 0.9168 GB, free: 170.1 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004976/1.195, allocations: 200.8 kB / 0.917 GB, free: 169.9 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002204/1.195, allocations: 91.95 kB / 0.9171 GB, free: 169.8 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001923/1.197, allocations: 1.304 MB / 0.9184 GB, free: 168.5 MB / 0.6231 GB Notification: Performance of sort global known variables: time 4.51e-07/1.197, allocations: 0 / 0.9184 GB, free: 168.5 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.004298/1.202, allocations: 1.223 MB / 0.9196 GB, free: 167.4 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 8 (flowResistance1.inlet.m_flow,flowResistance2.inlet.m_flow,flowResistance9.inlet.m_flow,flowResistance3.inlet.m_flow,flowResistance11.inlet.m_flow,flowResistance6.inlet.m_flow,flowResistance5.inlet.m_flow,flowResistance7.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 (188): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,8,100.0%), (3,19,77.8%), (3,22,77.8%), (3,9,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002359/1.204, allocations: 1.363 MB / 0.9209 GB, free: 166.2 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.005472/1.209, allocations: 3.219 MB / 0.9241 GB, free: 162.9 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 6.603e-06/1.209, allocations: 0 / 0.9241 GB, free: 162.9 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.003282/1.213, allocations: 2.163 MB / 0.9262 GB, free: 160.7 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004285/1.217, allocations: 0.7962 MB / 0.9269 GB, free: 159.9 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008985/1.226, allocations: 6.628 MB / 0.9334 GB, free: 153.2 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001251/1.227, allocations: 1.783 MB / 0.9352 GB, free: 151.4 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.002336/1.23, allocations: 0.6331 MB / 0.9358 GB, free: 150.8 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007417/1.23, allocations: 223.4 kB / 0.936 GB, free: 150.6 MB / 0.6231 GB Notification: Performance of SimCode: time 5.61e-07/1.23, allocations: 3.938 kB / 0.936 GB, free: 150.6 MB / 0.6231 GB Notification: Performance of Templates: time 0.08026/1.311, allocations: 60.15 MB / 0.9947 GB, free: 90.87 MB / 0.6231 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestJunction.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestJunction.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestJunction.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestJunction.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestJunction.sim & ./ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestJunction -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestJunction.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestJunction_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Topology.Tests.TestJunction_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches