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.001759/0.001759, allocations: 106.6 kB / 16.41 MB, free: 6.504 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.001922/0.001922, allocations: 191.8 kB / 17.34 MB, free: 5.762 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.491/1.491, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7668/0.7668, allocations: 97.64 MB / 388.8 MB, free: 1.438 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002468/0.002468, allocations: 84.95 kB / 0.5268 GB, free: 38.86 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1032, allocations: 69.24 MB / 0.5944 GB, free: 0.5742 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Topology.Tests.TestJunction): time 0.5386/0.6418, allocations: 236.6 MB / 0.8255 GB, free: 264 kB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.03835/0.6802, allocations: 36.71 MB / 0.8613 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003367/0.6836, allocations: 114.7 kB / 0.8614 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.00525/0.6888, allocations: 1.846 MB / 0.8632 GB, free: 9.828 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.009567/0.6984, allocations: 3.122 MB / 0.8663 GB, free: 8.098 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.008738/0.7071, allocations: 2.736 MB / 0.869 GB, free: 6.441 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.007757/0.7149, allocations: 5.08 MB / 0.8739 GB, free: 3.562 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001821/0.7167, allocations: 0.7034 MB / 0.8746 GB, free: 2.801 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004895/0.7216, allocations: 2.21 MB / 0.8768 GB, free: 0.582 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00498/0.7266, allocations: 2.675 MB / 0.8794 GB, free: 13.89 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.001197/0.7278, allocations: 304 kB / 0.8797 GB, free: 13.6 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0114/0.7392, allocations: 4.504 MB / 0.8841 GB, free: 9.09 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.001281/0.7404, allocations: 0.7705 MB / 0.8848 GB, free: 8.316 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.003554/0.744, allocations: 1.726 MB / 0.8865 GB, free: 6.582 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.01376/0.7578, allocations: 5.64 MB / 0.892 GB, free: 0.9219 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.7578, allocations: 0 / 0.892 GB, free: 0.9219 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.944e-06/0.7578, allocations: 0 / 0.892 GB, free: 0.9219 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 0.0001322/0.7579, allocations: 4 kB / 0.892 GB, free: 0.918 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.009925/0.7678, allocations: 4.164 MB / 0.8961 GB, free: 12.67 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.7679, allocations: 8.031 kB / 0.8961 GB, free: 12.66 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008627/0.7687, allocations: 369.7 kB / 0.8964 GB, free: 12.3 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00426/0.773, allocations: 2.077 MB / 0.8985 GB, free: 10.15 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001502/0.7731, allocations: 168.5 kB / 0.8986 GB, free: 9.984 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004827/0.7736, allocations: 239.9 kB / 0.8989 GB, free: 9.75 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00518/0.7788, allocations: 2.817 MB / 0.9016 GB, free: 6.848 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.27e-05/0.7788, allocations: 0 / 0.9016 GB, free: 6.848 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002183/0.7791, allocations: 92 kB / 0.9017 GB, free: 6.758 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.413e-05/0.7791, allocations: 61 kB / 0.9018 GB, free: 6.699 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004905/0.784, allocations: 2.808 MB / 0.9045 GB, free: 3.898 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0182/0.8022, allocations: 12.05 MB / 0.9163 GB, free: 6.797 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004231/0.8065, allocations: 2.105 MB / 0.9183 GB, free: 4.656 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002155/0.8086, allocations: 1.183 MB / 0.9195 GB, free: 3.469 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01346/0.8221, allocations: 8.725 MB / 0.928 GB, free: 9.707 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.723e-05/0.8221, allocations: 56.12 kB / 0.928 GB, free: 9.645 MB / 0.67 GB Notification: Performance of pre-optimization done (n=225): time 4.499e-06/0.8222, allocations: 0 / 0.928 GB, free: 9.645 MB / 0.67 GB Notification: Performance of matching and sorting (n=229): time 0.01957/0.8417, allocations: 9.478 MB / 0.9373 GB, free: 15.81 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001087/0.8418, allocations: 158.1 kB / 0.9374 GB, free: 15.62 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002863/0.8447, allocations: 1.854 MB / 0.9393 GB, free: 13.74 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0003404/0.845, allocations: 65.7 kB / 0.9393 GB, free: 13.67 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.001006/0.846, allocations: 1.153 MB / 0.9404 GB, free: 12.51 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009377/0.847, allocations: 0.8133 MB / 0.9412 GB, free: 11.69 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006785/0.8477, allocations: 371.7 kB / 0.9416 GB, free: 11.32 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001276/0.8478, allocations: 301.1 kB / 0.9419 GB, free: 11.02 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001686/0.8495, allocations: 0.8981 MB / 0.9428 GB, free: 10.12 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00206/0.8515, allocations: 1.2 MB / 0.9439 GB, free: 8.809 MB / 0.6856 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.05596/0.9075, allocations: 11.44 MB / 0.9551 GB, free: 13.2 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.054e-05/0.9075, allocations: 4 kB / 0.9551 GB, free: 13.2 MB / 0.7012 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.007359/0.9149, allocations: 3.247 MB / 0.9583 GB, free: 9.926 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.712e-05/0.9149, allocations: 8 kB / 0.9583 GB, free: 9.918 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.605e-05/0.9149, allocations: 8 kB / 0.9583 GB, free: 9.91 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002842/0.9177, allocations: 0.845 MB / 0.9591 GB, free: 9.055 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001604/0.9193, allocations: 380.4 kB / 0.9595 GB, free: 8.684 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01954/0.9389, allocations: 11.89 MB / 0.9711 GB, free: 12.25 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001875/0.9408, allocations: 67.97 kB / 0.9712 GB, free: 12.18 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000368/0.9411, allocations: 95.97 kB / 0.9713 GB, free: 12.09 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.001169/0.9423, allocations: 498.5 kB / 0.9717 GB, free: 11.59 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007347/0.943, allocations: 274.6 kB / 0.972 GB, free: 11.32 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008506/0.9515, allocations: 4.087 MB / 0.976 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.712e-05/0.9516, allocations: 27.94 kB / 0.976 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.384e-05/0.9516, allocations: 12 kB / 0.976 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.455e-05/0.9516, allocations: 15.95 kB / 0.976 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01336/0.965, allocations: 6.582 MB / 0.9825 GB, free: 484 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.572e-05/0.965, allocations: 4 kB / 0.9825 GB, free: 480 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001499/0.9665, allocations: 347.5 kB / 0.9828 GB, free: 132 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002613/0.9691, allocations: 0.702 MB / 0.9835 GB, free: 15.41 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002895/0.9694, allocations: 83.89 kB / 0.9836 GB, free: 15.33 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01423/0.9836, allocations: 10.48 MB / 0.9938 GB, free: 4.297 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.146e-06/0.9836, allocations: 7.938 kB / 0.9938 GB, free: 4.289 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009443/0.9931, allocations: 4.886 MB / 0.9986 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008363/0.9939, allocations: 343.1 kB / 0.9989 GB, free: 14.96 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004592/0.9944, allocations: 67.94 kB / 0.999 GB, free: 14.9 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001394/0.9958, allocations: 59.97 kB / 0.999 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004563/0.9962, allocations: 208.8 kB / 0.9992 GB, free: 14.64 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001981/0.9964, allocations: 87.95 kB / 0.9993 GB, free: 14.55 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.002128/0.9986, allocations: 1.341 MB / 1.001 GB, free: 13.2 MB / 0.7481 GB Notification: Performance of sort global known variables: time 7.1e-08/0.9986, allocations: 0 / 1.001 GB, free: 13.2 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.003843/1.002, allocations: 1.232 MB / 1.002 GB, free: 11.96 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.002432/1.005, allocations: 1.381 MB / 1.003 GB, free: 10.61 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.006465/1.011, allocations: 3.111 MB / 1.006 GB, free: 7.445 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 7.293e-06/1.011, allocations: 0 / 1.006 GB, free: 7.445 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.004302/1.016, allocations: 2.042 MB / 1.008 GB, free: 5.352 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004641/1.02, allocations: 0.8528 MB / 1.009 GB, free: 4.52 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01082/1.031, allocations: 5.647 MB / 1.015 GB, free: 14.79 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001699/1.033, allocations: 1.804 MB / 1.016 GB, free: 12.96 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.002271/1.035, allocations: 0.6294 MB / 1.017 GB, free: 12.36 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007423/1.036, allocations: 227.4 kB / 1.017 GB, free: 12.13 MB / 0.7637 GB Notification: Performance of SimCode: time 1.042e-06/1.036, allocations: 0 / 1.017 GB, free: 12.13 MB / 0.7637 GB Notification: Performance of Templates: time 0.3503/1.386, allocations: 63.14 MB / 1.079 GB, free: 309.6 MB / 0.7794 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches