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.001656/0.001656, allocations: 108 kB / 15.61 MB, free: 152 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.001984/0.001984, allocations: 194.2 kB / 16.53 MB, free: 6.664 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.367/1.367, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.659/0.659, allocations: 91.2 MB / 381.6 MB, free: 9.387 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001531/0.001531, allocations: 80.62 kB / 460.3 MB, free: 23.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1047, allocations: 67.7 MB / 0.5156 GB, free: 10.17 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Topology.Tests.TestJunction): time 0.4642/0.5689, allocations: 235.9 MB / 0.746 GB, free: 3.504 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.04027/0.6093, allocations: 36.57 MB / 0.7817 GB, free: 14.82 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00279/0.6121, allocations: 107.3 kB / 0.7819 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.004717/0.6168, allocations: 1.837 MB / 0.7836 GB, free: 12.87 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.00848/0.6254, allocations: 3.002 MB / 0.7866 GB, free: 9.848 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.008428/0.6338, allocations: 2.729 MB / 0.7892 GB, free: 7.109 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.00632/0.6402, allocations: 4.912 MB / 0.794 GB, free: 2.172 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001745/0.6419, allocations: 1.088 MB / 0.7951 GB, free: 1.039 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00357/0.6455, allocations: 2.082 MB / 0.7971 GB, free: 14.95 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003837/0.6494, allocations: 2.659 MB / 0.7997 GB, free: 12.28 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0009807/0.6504, allocations: 304 kB / 0.8 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01069/0.6611, allocations: 4.492 MB / 0.8044 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.001243/0.6624, allocations: 0.755 MB / 0.8051 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.002949/0.6653, allocations: 1.71 MB / 0.8068 GB, free: 5.008 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.01084/0.6762, allocations: 5.457 MB / 0.8121 GB, free: 15.54 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.6762, allocations: 4 kB / 0.8122 GB, free: 15.53 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.503e-06/0.6762, allocations: 3.938 kB / 0.8122 GB, free: 15.53 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 0.0001302/0.6764, allocations: 0 / 0.8122 GB, free: 15.53 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.00927/0.6857, allocations: 4.006 MB / 0.8161 GB, free: 11.45 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.6857, allocations: 12.03 kB / 0.8161 GB, free: 11.44 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008262/0.6865, allocations: 339.9 kB / 0.8164 GB, free: 11.1 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003043/0.6896, allocations: 1.843 MB / 0.8182 GB, free: 9.184 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001201/0.6897, allocations: 168.5 kB / 0.8184 GB, free: 9.016 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003782/0.6901, allocations: 239.8 kB / 0.8186 GB, free: 8.781 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004397/0.6945, allocations: 2.825 MB / 0.8213 GB, free: 5.871 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.963e-05/0.6946, allocations: 0 / 0.8213 GB, free: 5.871 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001993/0.6948, allocations: 92 kB / 0.8214 GB, free: 5.781 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.446e-05/0.6949, allocations: 61 kB / 0.8215 GB, free: 5.723 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004299/0.6992, allocations: 2.804 MB / 0.8242 GB, free: 2.914 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.24/0.9392, allocations: 12.07 MB / 0.836 GB, free: 233.8 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00383/0.9431, allocations: 2.309 MB / 0.8383 GB, free: 232.9 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001744/0.9448, allocations: 1.334 MB / 0.8396 GB, free: 232.3 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009448/0.9543, allocations: 8.716 MB / 0.8481 GB, free: 225.1 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.999e-05/0.9543, allocations: 56.95 kB / 0.8481 GB, free: 225.1 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=225): time 4.228e-06/0.9544, allocations: 0 / 0.8481 GB, free: 225.1 MB / 0.6231 GB Notification: Performance of matching and sorting (n=229): time 0.01566/0.97, allocations: 9.344 MB / 0.8573 GB, free: 219.7 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.766e-05/0.9701, allocations: 153.1 kB / 0.8574 GB, free: 219.5 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00261/0.9727, allocations: 1.793 MB / 0.8592 GB, free: 218.9 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0002759/0.973, allocations: 65.52 kB / 0.8592 GB, free: 218.8 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005977/0.9736, allocations: 1.109 MB / 0.8603 GB, free: 217.9 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005472/0.9742, allocations: 0.7736 MB / 0.8611 GB, free: 217.3 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005624/0.9747, allocations: 374.9 kB / 0.8614 GB, free: 217.2 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 3.845e-05/0.9748, allocations: 309.1 kB / 0.8617 GB, free: 216.8 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001399/0.9762, allocations: 0.8999 MB / 0.8626 GB, free: 216.5 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001632/0.9778, allocations: 1.195 MB / 0.8638 GB, free: 215.9 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.04897/1.027, allocations: 11.47 MB / 0.875 GB, free: 210.3 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.928e-06/1.027, allocations: 0 / 0.875 GB, free: 210.3 MB / 0.6231 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.005789/1.033, allocations: 3.254 MB / 0.8781 GB, free: 208.6 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.431e-05/1.033, allocations: 12.22 kB / 0.8782 GB, free: 208.6 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/1.033, allocations: 7.312 kB / 0.8782 GB, free: 208.6 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002375/1.035, allocations: 0.8456 MB / 0.879 GB, free: 208.2 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001302/1.036, allocations: 375.6 kB / 0.8793 GB, free: 208.1 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01421/1.051, allocations: 11.92 MB / 0.891 GB, free: 197 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001785/1.052, allocations: 72.67 kB / 0.8911 GB, free: 196.9 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002616/1.053, allocations: 95.95 kB / 0.8912 GB, free: 196.8 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.0009213/1.054, allocations: 493.2 kB / 0.8916 GB, free: 196.3 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005579/1.054, allocations: 252.8 kB / 0.8919 GB, free: 196.1 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006374/1.061, allocations: 4.113 MB / 0.8959 GB, free: 192 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.587e-05/1.061, allocations: 24 kB / 0.8959 GB, free: 191.9 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.551e-05/1.061, allocations: 16 kB / 0.8959 GB, free: 191.9 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.58e-05/1.061, allocations: 11.95 kB / 0.8959 GB, free: 191.9 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009408/1.07, allocations: 6.587 MB / 0.9024 GB, free: 185.2 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-05/1.07, allocations: 4 kB / 0.9024 GB, free: 185.2 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001178/1.071, allocations: 339.6 kB / 0.9027 GB, free: 184.9 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002061/1.073, allocations: 0.722 MB / 0.9034 GB, free: 184.2 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002013/1.074, allocations: 83.95 kB / 0.9035 GB, free: 184.1 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009123/1.083, allocations: 10.46 MB / 0.9137 GB, free: 173.1 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/1.083, allocations: 11.94 kB / 0.9137 GB, free: 173.1 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006873/1.09, allocations: 4.906 MB / 0.9185 GB, free: 168.1 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005882/1.09, allocations: 325.7 kB / 0.9188 GB, free: 167.8 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003982/1.091, allocations: 59.91 kB / 0.9189 GB, free: 167.7 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001266/1.092, allocations: 71.94 kB / 0.9189 GB, free: 167.6 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003407/1.092, allocations: 196.9 kB / 0.9191 GB, free: 167.4 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001575/1.092, allocations: 91.95 kB / 0.9192 GB, free: 167.3 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001479/1.094, allocations: 1.3 MB / 0.9205 GB, free: 166 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.4e-07/1.094, allocations: 0 / 0.9205 GB, free: 166 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.00318/1.097, allocations: 1.222 MB / 0.9217 GB, free: 164.9 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.001713/1.099, allocations: 1.369 MB / 0.923 GB, free: 163.7 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.005624/1.105, allocations: 3.482 MB / 0.9264 GB, free: 160.2 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 6.552e-06/1.105, allocations: 4 kB / 0.9264 GB, free: 160.2 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.003123/1.108, allocations: 2.162 MB / 0.9285 GB, free: 158 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004047/1.112, allocations: 0.8651 MB / 0.9294 GB, free: 157.1 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007884/1.12, allocations: 5.541 MB / 0.9348 GB, free: 151.5 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009894/1.121, allocations: 1.79 MB / 0.9365 GB, free: 149.7 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.002101/1.123, allocations: 0.6237 MB / 0.9371 GB, free: 149.1 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005717/1.123, allocations: 227.4 kB / 0.9373 GB, free: 148.9 MB / 0.6231 GB Notification: Performance of SimCode: time 1.443e-06/1.123, allocations: 0 / 0.9373 GB, free: 148.9 MB / 0.6231 GB Notification: Performance of Templates: time 0.07587/1.199, allocations: 61.97 MB / 0.9979 GB, free: 87.38 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