Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_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_dev_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.008416/0.008417, allocations: 96.7 kB / 15.73 MB, free: 6.039 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.002055/0.002055, allocations: 193.8 kB / 16.67 MB, free: 5.969 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.35/1.35, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.68/0.68, allocations: 93.7 MB / 384.2 MB, free: 6.906 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00151/0.00151, allocations: 79.88 kB / 0.5204 GB, free: 5.777 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.123, allocations: 68.26 MB / 0.5871 GB, free: 1.434 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Topology.Tests.TestJunction): time 0.5102/0.6333, allocations: 236 MB / 0.8176 GB, free: 6.086 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.04406/0.6774, allocations: 36.65 MB / 0.8534 GB, free: 1.309 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003547/0.681, allocations: 115.3 kB / 0.8535 GB, free: 1.195 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.3753/1.056, allocations: 1.848 MB / 0.8553 GB, free: 2.227 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.008567/1.065, allocations: 3.05 MB / 0.8583 GB, free: 2.227 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.00784/1.073, allocations: 2.725 MB / 0.8609 GB, free: 2.191 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.007754/1.081, allocations: 5.079 MB / 0.8659 GB, free: 2.188 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002218/1.083, allocations: 1.098 MB / 0.867 GB, free: 17.9 MB / 0.7012 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005226/1.088, allocations: 2.151 MB / 0.8691 GB, free: 17.89 MB / 0.7012 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005348/1.093, allocations: 2.668 MB / 0.8717 GB, free: 17.89 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.001377/1.095, allocations: 306.2 kB / 0.872 GB, free: 17.89 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01214/1.107, allocations: 4.496 MB / 0.8764 GB, free: 17.82 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.001812/1.109, allocations: 0.7602 MB / 0.8771 GB, free: 17.82 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.004978/1.114, allocations: 1.731 MB / 0.8788 GB, free: 17.6 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.01408/1.128, allocations: 5.639 MB / 0.8843 GB, free: 16.77 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/1.128, allocations: 1.406 kB / 0.8843 GB, free: 16.77 MB / 0.7012 GB Notification: Performance of FrontEnd: time 1.422e-06/1.128, allocations: 0 / 0.8843 GB, free: 16.77 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 0.0001362/1.128, allocations: 1.938 kB / 0.8843 GB, free: 16.77 MB / 0.7012 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.01175/1.14, allocations: 4.162 MB / 0.8884 GB, free: 14.98 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/1.14, allocations: 10.25 kB / 0.8884 GB, free: 14.98 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009942/1.141, allocations: 367.8 kB / 0.8887 GB, free: 14.79 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004397/1.145, allocations: 2.074 MB / 0.8908 GB, free: 14.2 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001198/1.146, allocations: 170.4 kB / 0.8909 GB, free: 14.19 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006125/1.146, allocations: 244.9 kB / 0.8911 GB, free: 14.18 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005497/1.152, allocations: 2.817 MB / 0.8939 GB, free: 13.96 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.013e-05/1.152, allocations: 0 / 0.8939 GB, free: 13.96 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002279/1.152, allocations: 88.47 kB / 0.894 GB, free: 13.96 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.029e-05/1.152, allocations: 69 kB / 0.894 GB, free: 13.96 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00452/1.157, allocations: 2.805 MB / 0.8968 GB, free: 13.95 MB / 0.7012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0174/1.174, allocations: 12.03 MB / 0.9085 GB, free: 7.566 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004092/1.178, allocations: 2.31 MB / 0.9108 GB, free: 7.426 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002289/1.181, allocations: 1.331 MB / 0.9121 GB, free: 7.391 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0118/1.192, allocations: 8.725 MB / 0.9206 GB, free: 1.445 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.572e-05/1.192, allocations: 55.25 kB / 0.9207 GB, free: 1.406 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=225): time 4.929e-06/1.192, allocations: 0.8125 kB / 0.9207 GB, free: 1.406 MB / 0.7012 GB Notification: Performance of matching and sorting (n=229): time 0.0186/1.211, allocations: 9.511 MB / 0.93 GB, free: 14.08 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.553e-05/1.211, allocations: 162.3 kB / 0.9301 GB, free: 13.92 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002491/1.214, allocations: 1.847 MB / 0.9319 GB, free: 13.7 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0004146/1.214, allocations: 65.05 kB / 0.932 GB, free: 13.67 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007592/1.215, allocations: 1.166 MB / 0.9331 GB, free: 13.29 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008562/1.216, allocations: 0.8016 MB / 0.9339 GB, free: 12.76 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006541/1.216, allocations: 378 kB / 0.9343 GB, free: 12.73 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001001/1.217, allocations: 304 kB / 0.9345 GB, free: 12.44 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001398/1.218, allocations: 0.8955 MB / 0.9354 GB, free: 12.43 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001725/1.22, allocations: 1.2 MB / 0.9366 GB, free: 12.16 MB / 0.7169 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.05245/1.272, allocations: 11.44 MB / 0.9478 GB, free: 7.871 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-05/1.272, allocations: 4 kB / 0.9478 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.007498/1.28, allocations: 3.275 MB / 0.951 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.933e-05/1.28, allocations: 8 kB / 0.951 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.514e-05/1.28, allocations: 8 kB / 0.951 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002817/1.283, allocations: 0.8464 MB / 0.9518 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001562/1.284, allocations: 370.5 kB / 0.9522 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01798/1.302, allocations: 11.91 MB / 0.9638 GB, free: 10.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002235/1.304, allocations: 69.62 kB / 0.9639 GB, free: 10.71 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006174/1.305, allocations: 94.66 kB / 0.9639 GB, free: 10.64 MB / 0.7325 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.001628/1.307, allocations: 498.1 kB / 0.9644 GB, free: 10.36 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001081/1.308, allocations: 270.2 kB / 0.9647 GB, free: 10.09 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008591/1.316, allocations: 4.126 MB / 0.9687 GB, free: 7.281 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.301e-05/1.316, allocations: 28 kB / 0.9687 GB, free: 7.254 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.168e-05/1.317, allocations: 8 kB / 0.9687 GB, free: 7.246 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.38e-05/1.317, allocations: 16.06 kB / 0.9688 GB, free: 7.23 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01355/1.33, allocations: 6.599 MB / 0.9752 GB, free: 0.6328 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-05/1.33, allocations: 8 kB / 0.9752 GB, free: 0.625 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001502/1.332, allocations: 342.7 kB / 0.9755 GB, free: 316 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002605/1.334, allocations: 0.7094 MB / 0.9762 GB, free: 15.59 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004353/1.335, allocations: 83.89 kB / 0.9763 GB, free: 15.51 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01276/1.348, allocations: 10.47 MB / 0.9865 GB, free: 4.555 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.414e-06/1.348, allocations: 11.09 kB / 0.9865 GB, free: 4.547 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01005/1.358, allocations: 4.925 MB / 0.9914 GB, free: 15.59 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001006/1.359, allocations: 343.1 kB / 0.9917 GB, free: 15.24 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009213/1.36, allocations: 67.94 kB / 0.9917 GB, free: 15.17 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001996/1.362, allocations: 63.95 kB / 0.9918 GB, free: 15.11 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005994/1.362, allocations: 196.2 kB / 0.992 GB, free: 14.92 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003497/1.363, allocations: 91.95 kB / 0.9921 GB, free: 14.83 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.00238/1.365, allocations: 1.337 MB / 0.9934 GB, free: 13.48 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2.1e-07/1.365, allocations: 4 kB / 0.9934 GB, free: 13.48 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.00539/1.37, allocations: 1.232 MB / 0.9946 GB, free: 12.25 MB / 0.7637 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.003413/1.374, allocations: 1.368 MB / 0.9959 GB, free: 11.01 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.007057/1.381, allocations: 3.248 MB / 0.9991 GB, free: 7.77 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 6.772e-06/1.381, allocations: 0 / 0.9991 GB, free: 7.77 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.004243/1.385, allocations: 2.158 MB / 1.001 GB, free: 5.602 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005765/1.391, allocations: 0.8589 MB / 1.002 GB, free: 4.762 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01108/1.402, allocations: 5.628 MB / 1.008 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00182/1.404, allocations: 1.804 MB / 1.009 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.002609/1.407, allocations: 0.6376 MB / 1.01 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008994/1.408, allocations: 231.4 kB / 1.01 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of SimCode: time 8.41e-07/1.408, allocations: 3.094 kB / 1.01 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of Templates: time 0.09832/1.506, allocations: 62.7 MB / 1.071 GB, free: 14.42 MB / 0.8419 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction.makefile (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches