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.001356/0.001356, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001411/0.001411, allocations: 197.1 kB / 16.14 MB, free: 6.715 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.363/1.363, allocations: 222.9 MB / 239.8 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.6727/0.6727, allocations: 93.7 MB / 383.7 MB, free: 7.176 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001511, allocations: 89.52 kB / 462.7 MB, free: 22.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1097, allocations: 68.26 MB / 0.5185 GB, free: 7.465 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Topology.Tests.TestJunction): time 0.4534/0.5632, allocations: 236.3 MB / 0.7493 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0412/0.6044, allocations: 37.22 MB / 0.7857 GB, free: 9.621 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003501/0.6079, allocations: 143 kB / 0.7858 GB, free: 9.48 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.005012/0.613, allocations: 1.652 MB / 0.7874 GB, free: 7.82 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.007858/0.6209, allocations: 2.821 MB / 0.7902 GB, free: 4.984 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.006764/0.6277, allocations: 2.352 MB / 0.7925 GB, free: 2.625 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.006836/0.6346, allocations: 6.078 MB / 0.7984 GB, free: 12.52 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001585/0.6362, allocations: 1.008 MB / 0.7994 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003535/0.6397, allocations: 1.995 MB / 0.8014 GB, free: 9.449 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003779/0.6435, allocations: 2.643 MB / 0.8039 GB, free: 6.797 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0007692/0.6443, allocations: 200 kB / 0.8041 GB, free: 6.602 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01003/0.6543, allocations: 4.406 MB / 0.8084 GB, free: 2.188 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.001172/0.6556, allocations: 0.6535 MB / 0.8091 GB, free: 1.531 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.002829/0.6584, allocations: 1.636 MB / 0.8107 GB, free: 15.88 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.00998/0.6684, allocations: 5.297 MB / 0.8158 GB, free: 10.57 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.6684, allocations: 0 / 0.8158 GB, free: 10.57 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.443e-06/0.6685, allocations: 0 / 0.8158 GB, free: 10.57 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 0.0001024/0.6686, allocations: 4 kB / 0.8158 GB, free: 10.57 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.009447/0.678, allocations: 4.049 MB / 0.8198 GB, free: 6.449 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.6781, allocations: 8.031 kB / 0.8198 GB, free: 6.441 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007847/0.6789, allocations: 351.8 kB / 0.8201 GB, free: 6.094 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00335/0.6822, allocations: 1.903 MB / 0.822 GB, free: 4.117 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001229/0.6824, allocations: 164.5 kB / 0.8222 GB, free: 3.953 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004148/0.6828, allocations: 247.8 kB / 0.8224 GB, free: 3.711 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004991/0.6878, allocations: 2.81 MB / 0.8251 GB, free: 0.8203 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.965e-05/0.6879, allocations: 0 / 0.8251 GB, free: 0.8203 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002037/0.6881, allocations: 92 kB / 0.8252 GB, free: 0.7305 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.75e-05/0.6882, allocations: 68.98 kB / 0.8253 GB, free: 0.6641 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2093/0.8975, allocations: 2.801 MB / 0.828 GB, free: 238.3 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01484/0.9124, allocations: 12.04 MB / 0.8398 GB, free: 229.8 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003742/0.9162, allocations: 2.295 MB / 0.842 GB, free: 228.9 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001915/0.9181, allocations: 1.335 MB / 0.8433 GB, free: 228.3 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009659/0.9278, allocations: 8.719 MB / 0.8518 GB, free: 221 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.332e-05/0.9279, allocations: 64.11 kB / 0.8519 GB, free: 221 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=225): time 4.148e-06/0.9279, allocations: 3.938 kB / 0.8519 GB, free: 221 MB / 0.6231 GB Notification: Performance of matching and sorting (n=229): time 0.01703/0.9449, allocations: 9.369 MB / 0.861 GB, free: 215.4 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.425e-05/0.945, allocations: 160 kB / 0.8612 GB, free: 215.2 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002523/0.9475, allocations: 1.851 MB / 0.863 GB, free: 214.2 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0003399/0.9479, allocations: 66.08 kB / 0.8631 GB, free: 214.1 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005888/0.9485, allocations: 1.137 MB / 0.8642 GB, free: 213.1 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005333/0.949, allocations: 0.7658 MB / 0.8649 GB, free: 212.5 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005828/0.9496, allocations: 371.4 kB / 0.8653 GB, free: 212.3 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 3.565e-05/0.9497, allocations: 305.1 kB / 0.8656 GB, free: 212 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001438/0.9511, allocations: 0.8967 MB / 0.8665 GB, free: 211.5 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001759/0.9529, allocations: 1.194 MB / 0.8676 GB, free: 210.7 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.05012/1.003, allocations: 11.45 MB / 0.8788 GB, free: 205 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.031e-05/1.003, allocations: 0 / 0.8788 GB, free: 205 MB / 0.6231 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.006347/1.009, allocations: 3.265 MB / 0.882 GB, free: 203.3 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.834e-05/1.009, allocations: 16.41 kB / 0.882 GB, free: 203.3 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.535e-05/1.009, allocations: 8.656 kB / 0.882 GB, free: 203.3 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00252/1.012, allocations: 0.8408 MB / 0.8828 GB, free: 202.5 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001456/1.013, allocations: 367.5 kB / 0.8832 GB, free: 202.2 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01449/1.028, allocations: 11.02 MB / 0.8939 GB, free: 190.6 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002178/1.03, allocations: 136.6 kB / 0.8941 GB, free: 190.5 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003727/1.031, allocations: 95.97 kB / 0.8942 GB, free: 190.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.001159/1.032, allocations: 489.4 kB / 0.8946 GB, free: 189.9 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008063/1.033, allocations: 268.6 kB / 0.8949 GB, free: 189.7 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006986/1.04, allocations: 4.118 MB / 0.8989 GB, free: 185.5 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.347e-05/1.04, allocations: 32 kB / 0.8989 GB, free: 185.5 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.67e-05/1.04, allocations: 12 kB / 0.899 GB, free: 185.5 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.355e-05/1.04, allocations: 11.95 kB / 0.899 GB, free: 185.5 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01114/1.051, allocations: 6.603 MB / 0.9054 GB, free: 178.8 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.662e-05/1.051, allocations: 4.438 kB / 0.9054 GB, free: 178.8 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001312/1.052, allocations: 347.5 kB / 0.9057 GB, free: 178.5 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002331/1.055, allocations: 0.7206 MB / 0.9065 GB, free: 177.7 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003043/1.055, allocations: 83.95 kB / 0.9065 GB, free: 177.6 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009221/1.064, allocations: 9.553 MB / 0.9159 GB, free: 167.6 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/1.064, allocations: 11.88 kB / 0.9159 GB, free: 167.6 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007733/1.072, allocations: 4.91 MB / 0.9207 GB, free: 162.6 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007911/1.073, allocations: 337.5 kB / 0.921 GB, free: 162.2 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006828/1.073, allocations: 52 kB / 0.921 GB, free: 162.2 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001943/1.075, allocations: 135.7 kB / 0.9212 GB, free: 162 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004333/1.076, allocations: 200.9 kB / 0.9214 GB, free: 161.8 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002113/1.076, allocations: 87.95 kB / 0.9214 GB, free: 161.7 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001766/1.078, allocations: 1.337 MB / 0.9227 GB, free: 160.4 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.41e-07/1.078, allocations: 4 kB / 0.9228 GB, free: 160.4 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.003499/1.081, allocations: 1.223 MB / 0.9239 GB, free: 159.2 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.001865/1.083, allocations: 1.367 MB / 0.9253 GB, free: 158 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.005102/1.088, allocations: 3.227 MB / 0.9284 GB, free: 154.8 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/1.088, allocations: 0 / 0.9284 GB, free: 154.8 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.003211/1.092, allocations: 2.151 MB / 0.9305 GB, free: 152.6 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004306/1.096, allocations: 0.8024 MB / 0.9313 GB, free: 151.8 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008792/1.105, allocations: 6.715 MB / 0.9379 GB, free: 145 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00101/1.106, allocations: 1.8 MB / 0.9396 GB, free: 143.2 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.002237/1.108, allocations: 0.6292 MB / 0.9402 GB, free: 142.6 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006702/1.109, allocations: 235.4 kB / 0.9405 GB, free: 142.4 MB / 0.6231 GB Notification: Performance of SimCode: time 8.71e-07/1.109, allocations: 7.938 kB / 0.9405 GB, free: 142.4 MB / 0.6231 GB Notification: Performance of Templates: time 0.0749/1.184, allocations: 60.28 MB / 0.9993 GB, free: 82.5 MB / 0.6231 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