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.005448/0.005448, allocations: 102.1 kB / 15.73 MB, free: 6.051 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.001253/0.001253, allocations: 195.7 kB / 16.67 MB, free: 5.98 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.395/1.395, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6939/0.6939, allocations: 91.17 MB / 381.7 MB, free: 9.367 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001438, allocations: 75.88 kB / 0.5169 GB, free: 8.992 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1271, allocations: 67.7 MB / 0.583 GB, free: 5.207 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Topology.Tests.TestJunction): time 0.5247/0.6518, allocations: 235.9 MB / 0.8134 GB, free: 11.87 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.4292/1.081, allocations: 36.56 MB / 0.8491 GB, free: 1.16 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004229/1.085, allocations: 102.7 kB / 0.8492 GB, free: 1.16 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.005278/1.091, allocations: 1.848 MB / 0.851 GB, free: 1.152 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.009875/1.101, allocations: 2.993 MB / 0.8539 GB, free: 1.078 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.007801/1.108, allocations: 2.737 MB / 0.8566 GB, free: 1.008 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.007591/1.116, allocations: 4.925 MB / 0.8614 GB, free: 1 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001842/1.118, allocations: 1.092 MB / 0.8625 GB, free: 16.73 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004682/1.123, allocations: 2.137 MB / 0.8645 GB, free: 16.72 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004785/1.127, allocations: 2.658 MB / 0.8671 GB, free: 16.72 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.001056/1.128, allocations: 305.8 kB / 0.8674 GB, free: 16.72 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0121/1.141, allocations: 4.497 MB / 0.8718 GB, free: 16.65 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.00153/1.142, allocations: 0.7556 MB / 0.8726 GB, free: 16.65 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.004874/1.147, allocations: 1.714 MB / 0.8742 GB, free: 16.29 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.0157/1.163, allocations: 5.577 MB / 0.8797 GB, free: 15.5 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/1.163, allocations: 0 / 0.8797 GB, free: 15.5 MB / 0.6856 GB Notification: Performance of FrontEnd: time 2.004e-06/1.163, allocations: 1 kB / 0.8797 GB, free: 15.5 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 0.0001923/1.163, allocations: 0 / 0.8797 GB, free: 15.5 MB / 0.6856 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.01274/1.176, allocations: 3.995 MB / 0.8836 GB, free: 13.81 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/1.176, allocations: 8.938 kB / 0.8836 GB, free: 13.81 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001517/1.177, allocations: 342.9 kB / 0.8839 GB, free: 13.64 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004498/1.182, allocations: 1.991 MB / 0.8859 GB, free: 13.07 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001428/1.182, allocations: 169.1 kB / 0.886 GB, free: 13.07 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008208/1.183, allocations: 239.9 kB / 0.8863 GB, free: 13.06 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006612/1.19, allocations: 2.813 MB / 0.889 GB, free: 12.84 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.563e-05/1.19, allocations: 4.719 kB / 0.889 GB, free: 12.84 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003389/1.19, allocations: 92.56 kB / 0.8891 GB, free: 12.84 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.296e-05/1.19, allocations: 69.06 kB / 0.8892 GB, free: 12.84 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004384/1.194, allocations: 2.802 MB / 0.8919 GB, free: 12.83 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01625/1.211, allocations: 12 MB / 0.9036 GB, free: 6.457 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003741/1.214, allocations: 2.296 MB / 0.9059 GB, free: 6.328 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001889/1.216, allocations: 1.339 MB / 0.9072 GB, free: 6.285 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01172/1.228, allocations: 8.728 MB / 0.9157 GB, free: 352 kB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.442e-05/1.228, allocations: 64.8 kB / 0.9158 GB, free: 312 kB / 0.6856 GB Notification: Performance of pre-optimization done (n=225): time 4.699e-06/1.228, allocations: 3.219 kB / 0.9158 GB, free: 312 kB / 0.6856 GB Notification: Performance of matching and sorting (n=229): time 0.01831/1.247, allocations: 9.325 MB / 0.9249 GB, free: 12.9 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.86e-05/1.247, allocations: 154.3 kB / 0.925 GB, free: 12.75 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002704/1.249, allocations: 1.797 MB / 0.9268 GB, free: 12.25 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0002907/1.25, allocations: 69.2 kB / 0.9268 GB, free: 12.22 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007018/1.25, allocations: 1.109 MB / 0.9279 GB, free: 11.75 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007287/1.251, allocations: 0.7763 MB / 0.9287 GB, free: 11.18 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007233/1.252, allocations: 373.6 kB / 0.929 GB, free: 11.11 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 9.368e-05/1.252, allocations: 305.9 kB / 0.9293 GB, free: 10.81 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001418/1.253, allocations: 0.8934 MB / 0.9302 GB, free: 10.68 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001775/1.255, allocations: 1.2 MB / 0.9314 GB, free: 10.27 MB / 0.7012 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.05154/1.307, allocations: 11.43 MB / 0.9425 GB, free: 1.363 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.715e-05/1.307, allocations: 4 kB / 0.9425 GB, free: 1.359 MB / 0.7012 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.007417/1.314, allocations: 3.261 MB / 0.9457 GB, free: 15.13 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.001e-05/1.314, allocations: 8 kB / 0.9457 GB, free: 15.12 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.796e-05/1.314, allocations: 8 kB / 0.9457 GB, free: 15.11 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002849/1.317, allocations: 0.8349 MB / 0.9465 GB, free: 14.31 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001662/1.319, allocations: 377.8 kB / 0.9469 GB, free: 13.96 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01817/1.337, allocations: 11.89 MB / 0.9585 GB, free: 1.609 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002185/1.339, allocations: 75.89 kB / 0.9586 GB, free: 1.535 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005192/1.34, allocations: 95.97 kB / 0.9587 GB, free: 1.441 MB / 0.7169 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.001516/1.341, allocations: 487.8 kB / 0.9592 GB, free: 0.9766 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009728/1.342, allocations: 256.8 kB / 0.9594 GB, free: 0.7227 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008394/1.351, allocations: 4.109 MB / 0.9634 GB, free: 12.68 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-05/1.351, allocations: 28 kB / 0.9634 GB, free: 12.65 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-05/1.351, allocations: 12 kB / 0.9634 GB, free: 12.64 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.572e-05/1.351, allocations: 11.95 kB / 0.9635 GB, free: 12.62 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01303/1.364, allocations: 6.569 MB / 0.9699 GB, free: 6.055 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-05/1.364, allocations: 4 kB / 0.9699 GB, free: 6.051 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001426/1.365, allocations: 344.2 kB / 0.9702 GB, free: 5.734 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002528/1.368, allocations: 0.7159 MB / 0.9709 GB, free: 5.008 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003327/1.368, allocations: 79.95 kB / 0.971 GB, free: 4.93 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01223/1.38, allocations: 10.45 MB / 0.9812 GB, free: 9.992 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.544e-06/1.381, allocations: 6.531 kB / 0.9812 GB, free: 9.988 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009574/1.39, allocations: 4.905 MB / 0.986 GB, free: 5.051 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009966/1.391, allocations: 325.6 kB / 0.9863 GB, free: 4.711 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009909/1.392, allocations: 63.94 kB / 0.9864 GB, free: 4.648 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002093/1.394, allocations: 63.95 kB / 0.9864 GB, free: 4.586 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000593/1.395, allocations: 202 kB / 0.9866 GB, free: 4.395 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003276/1.395, allocations: 87.95 kB / 0.9867 GB, free: 4.309 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.00257/1.398, allocations: 1.304 MB / 0.988 GB, free: 2.992 MB / 0.7481 GB Notification: Performance of sort global known variables: time 4.41e-07/1.398, allocations: 384 / 0.988 GB, free: 2.992 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.005086/1.403, allocations: 1.226 MB / 0.9892 GB, free: 1.766 MB / 0.7481 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.002785/1.406, allocations: 1.369 MB / 0.9905 GB, free: 0.5352 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.006126/1.412, allocations: 3.241 MB / 0.9937 GB, free: 13.31 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 8.036e-06/1.412, allocations: 4 kB / 0.9937 GB, free: 13.31 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.003854/1.416, allocations: 2.148 MB / 0.9958 GB, free: 11.15 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00515/1.421, allocations: 0.8541 MB / 0.9966 GB, free: 10.31 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01048/1.431, allocations: 5.477 MB / 1.002 GB, free: 4.801 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001744/1.433, allocations: 1.787 MB / 1.004 GB, free: 2.984 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.002351/1.436, allocations: 0.6212 MB / 1.004 GB, free: 2.402 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008251/1.436, allocations: 231.4 kB / 1.005 GB, free: 2.176 MB / 0.7637 GB Notification: Performance of SimCode: time 6.21e-07/1.436, allocations: 0 / 1.005 GB, free: 2.176 MB / 0.7637 GB Notification: Performance of Templates: time 0.1001/1.537, allocations: 62.54 MB / 1.066 GB, free: 4.258 MB / 0.8262 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