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.001647/0.001647, allocations: 103.5 kB / 16.35 MB, free: 5.875 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.001866/0.001866, allocations: 191 kB / 17.29 MB, free: 5.516 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.304/1.304, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6528/0.6528, allocations: 89.5 MB / 380.6 MB, free: 8.66 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 71.89 kB / 459.7 MB, free: 10.56 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1132, allocations: 67.3 MB / 0.5146 GB, free: 7.176 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Topology.Tests.TestJunction): time 0.7114/0.8246, allocations: 235.5 MB / 0.7446 GB, free: 1.102 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.03334/0.858, allocations: 36.4 MB / 0.7801 GB, free: 1.02 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002423/0.8604, allocations: 44.44 kB / 0.7801 GB, free: 1.02 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.004842/0.8653, allocations: 1.812 MB / 0.7819 GB, free: 0.9648 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.008166/0.8735, allocations: 2.881 MB / 0.7847 GB, free: 0.8867 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.007825/0.8814, allocations: 2.722 MB / 0.7874 GB, free: 0.8242 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.007046/0.8884, allocations: 4.635 MB / 0.7919 GB, free: 0.8242 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001884/0.8903, allocations: 1.025 MB / 0.7929 GB, free: 16.62 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003899/0.8943, allocations: 1.945 MB / 0.7948 GB, free: 16.62 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004086/0.8984, allocations: 2.606 MB / 0.7974 GB, free: 16.5 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0005689/0.8989, allocations: 313.1 kB / 0.7977 GB, free: 16.5 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009927/0.9089, allocations: 4.499 MB / 0.8021 GB, free: 16.42 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0009026/0.9098, allocations: 0.7334 MB / 0.8028 GB, free: 16.32 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.00261/0.9124, allocations: 1.606 MB / 0.8043 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.009679/0.9221, allocations: 5.226 MB / 0.8094 GB, free: 15.22 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.9222, allocations: 0 / 0.8094 GB, free: 15.22 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.583e-06/0.9222, allocations: 0.9062 kB / 0.8094 GB, free: 15.22 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 6.241e-05/0.9222, allocations: 0 / 0.8094 GB, free: 15.22 MB / 0.5919 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.007386/0.9296, allocations: 3.636 MB / 0.813 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.9297, allocations: 9.625 kB / 0.813 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006182/0.9303, allocations: 293.3 kB / 0.8133 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002226/0.9325, allocations: 1.407 MB / 0.8147 GB, free: 13.08 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.217e-05/0.9326, allocations: 168 kB / 0.8148 GB, free: 13.07 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003396/0.933, allocations: 245.8 kB / 0.815 GB, free: 13.06 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004087/0.9371, allocations: 2.813 MB / 0.8178 GB, free: 12.41 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.379e-05/0.9371, allocations: 0 / 0.8178 GB, free: 12.41 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001848/0.9373, allocations: 90.78 kB / 0.8179 GB, free: 12.41 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.482e-05/0.9374, allocations: 71.11 kB / 0.818 GB, free: 12.4 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003841/0.9412, allocations: 2.804 MB / 0.8207 GB, free: 11.97 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01461/0.9559, allocations: 11.88 MB / 0.8323 GB, free: 3.867 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003574/0.9595, allocations: 2.289 MB / 0.8345 GB, free: 2.793 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001839/0.9613, allocations: 1.336 MB / 0.8358 GB, free: 1.609 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01119/0.9725, allocations: 8.73 MB / 0.8444 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.9e-05/0.9727, allocations: 70.58 kB / 0.8444 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=225): time 4.168e-06/0.9727, allocations: 0 / 0.8444 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of matching and sorting (n=229): time 0.01654/0.9892, allocations: 9.011 MB / 0.8532 GB, free: 14.56 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.421e-05/0.9893, allocations: 154.2 kB / 0.8534 GB, free: 14.38 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001951/0.9913, allocations: 1.432 MB / 0.8548 GB, free: 12.94 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0001988/0.9915, allocations: 69.7 kB / 0.8548 GB, free: 12.87 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006358/0.9922, allocations: 0.9309 MB / 0.8557 GB, free: 11.93 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005932/0.9928, allocations: 0.7681 MB / 0.8565 GB, free: 11.16 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005854/0.9934, allocations: 375.7 kB / 0.8569 GB, free: 10.79 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 9.141e-05/0.9934, allocations: 305.1 kB / 0.8571 GB, free: 10.49 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001468/0.9949, allocations: 0.8981 MB / 0.858 GB, free: 9.586 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001742/0.9967, allocations: 1.203 MB / 0.8592 GB, free: 8.277 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.05079/1.047, allocations: 11.44 MB / 0.8704 GB, free: 12.72 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.997e-06/1.047, allocations: 0 / 0.8704 GB, free: 12.72 MB / 0.6387 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.006607/1.054, allocations: 3.216 MB / 0.8735 GB, free: 9.559 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.568e-05/1.054, allocations: 8 kB / 0.8735 GB, free: 9.551 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.736e-05/1.054, allocations: 8 kB / 0.8735 GB, free: 9.543 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002714/1.057, allocations: 0.8308 MB / 0.8743 GB, free: 8.703 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001599/1.059, allocations: 372.1 kB / 0.8747 GB, free: 8.359 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01694/1.075, allocations: 11.92 MB / 0.8863 GB, free: 11.97 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001757/1.077, allocations: 68 kB / 0.8864 GB, free: 11.9 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002756/1.078, allocations: 91.97 kB / 0.8865 GB, free: 11.81 MB / 0.6544 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.0009638/1.079, allocations: 466.1 kB / 0.8869 GB, free: 11.37 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005651/1.079, allocations: 201.6 kB / 0.8871 GB, free: 11.17 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007412/1.087, allocations: 4.082 MB / 0.8911 GB, free: 7.184 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.36e-05/1.087, allocations: 28 kB / 0.8911 GB, free: 7.156 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.89e-05/1.087, allocations: 11.98 kB / 0.8912 GB, free: 7.145 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.834e-05/1.087, allocations: 15.95 kB / 0.8912 GB, free: 7.129 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01166/1.098, allocations: 6.44 MB / 0.8975 GB, free: 0.6875 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-05/1.098, allocations: 4 kB / 0.8975 GB, free: 0.6836 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001272/1.1, allocations: 348.2 kB / 0.8978 GB, free: 372 kB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002337/1.102, allocations: 0.7145 MB / 0.8985 GB, free: 15.64 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001776/1.102, allocations: 79.95 kB / 0.8986 GB, free: 15.56 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01158/1.114, allocations: 10.48 MB / 0.9088 GB, free: 4.609 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/1.114, allocations: 4 kB / 0.9088 GB, free: 4.605 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008314/1.122, allocations: 4.859 MB / 0.9136 GB, free: 15.71 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007365/1.123, allocations: 298.3 kB / 0.9138 GB, free: 15.4 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003656/1.123, allocations: 53.44 kB / 0.9139 GB, free: 15.35 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001264/1.125, allocations: 67.95 kB / 0.914 GB, free: 15.28 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003856/1.125, allocations: 202.1 kB / 0.9141 GB, free: 15.09 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002008/1.125, allocations: 87.95 kB / 0.9142 GB, free: 15 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.001515/1.127, allocations: 1.074 MB / 0.9153 GB, free: 13.93 MB / 0.6856 GB Notification: Performance of sort global known variables: time 8.726e-06/1.127, allocations: 0 / 0.9153 GB, free: 13.93 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.003466/1.13, allocations: 1.222 MB / 0.9165 GB, free: 12.71 MB / 0.6856 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.002066/1.132, allocations: 1.352 MB / 0.9178 GB, free: 11.48 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.005405/1.138, allocations: 3.236 MB / 0.921 GB, free: 8.242 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/1.138, allocations: 0 / 0.921 GB, free: 8.242 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.003423/1.141, allocations: 2.156 MB / 0.9231 GB, free: 6.078 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003543/1.145, allocations: 0.8364 MB / 0.9239 GB, free: 5.32 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00816/1.153, allocations: 5.02 MB / 0.9288 GB, free: 276 kB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001248/1.154, allocations: 1.653 MB / 0.9304 GB, free: 14.58 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001834/1.156, allocations: 0.5759 MB / 0.931 GB, free: 14.07 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005832/1.157, allocations: 207.4 kB / 0.9312 GB, free: 13.87 MB / 0.7012 GB Notification: Performance of SimCode: time 6.81e-07/1.157, allocations: 0 / 0.9312 GB, free: 13.87 MB / 0.7012 GB Notification: Performance of Templates: time 0.0909/1.247, allocations: 61.18 MB / 0.9909 GB, free: 1.281 MB / 0.7481 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches