Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.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.Topology.Tests.TestJunctionNM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|junctionNM.splitterN.inlet.m_flow|junctionNM1.splitterN.inlet.m_flow|sink.inlet.m_flow|sink1.inlet.m_flow|sink3.inlet.m_flow|sink4.inlet.m_flow|source.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM") translateModel(ThermofluidStream.Topology.Tests.TestJunctionNM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|junctionNM.splitterN.inlet.m_flow|junctionNM1.splitterN.inlet.m_flow|sink.inlet.m_flow|sink1.inlet.m_flow|sink3.inlet.m_flow|sink4.inlet.m_flow|source.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001571/0.001571, allocations: 106.2 kB / 16.36 MB, free: 6.34 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.001742/0.001742, allocations: 198.2 kB / 17.3 MB, free: 5.879 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.285/1.285, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6448/0.6448, allocations: 89.49 MB / 380.6 MB, free: 8.648 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001496, allocations: 75.88 kB / 459.7 MB, free: 10.59 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1257, allocations: 67.31 MB / 0.5146 GB, free: 7.195 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 0.8235/0.9492, allocations: 361.7 MB / 0.8679 GB, free: 12.19 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.03566/0.9849, allocations: 38.49 MB / 0.9055 GB, free: 3.703 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001781/0.9868, allocations: 29.19 kB / 0.9055 GB, free: 3.684 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.004301/0.9911, allocations: 1.951 MB / 0.9074 GB, free: 2.145 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.02063/1.012, allocations: 8.572 MB / 0.9158 GB, free: 10.73 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.01039/1.022, allocations: 4.219 MB / 0.9199 GB, free: 6.504 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.00494/1.027, allocations: 3.688 MB / 0.9235 GB, free: 2.805 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001383/1.029, allocations: 1.163 MB / 0.9246 GB, free: 1.629 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00443/1.033, allocations: 2.422 MB / 0.927 GB, free: 15.2 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002041/1.035, allocations: 1.728 MB / 0.9287 GB, free: 13.46 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0003086/1.035, allocations: 244 kB / 0.9289 GB, free: 13.23 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03029/1.066, allocations: 16.51 MB / 0.945 GB, free: 12.68 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.001223/1.067, allocations: 0.8451 MB / 0.9459 GB, free: 11.84 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.001818/1.069, allocations: 1.357 MB / 0.9472 GB, free: 10.47 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.02495/1.094, allocations: 9.751 MB / 0.9567 GB, free: 0.6992 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/1.094, allocations: 0 / 0.9567 GB, free: 0.6992 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.563e-06/1.094, allocations: 3.938 kB / 0.9567 GB, free: 0.6953 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 4.155e-05/1.094, allocations: 0 / 0.9567 GB, free: 0.6953 MB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 506 * Number of variables: 506 Notification: Performance of Generate backend data structure: time 0.009712/1.104, allocations: 4.212 MB / 0.9608 GB, free: 12.42 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/1.104, allocations: 8.031 kB / 0.9608 GB, free: 12.41 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005475/1.104, allocations: 253 kB / 0.9611 GB, free: 12.16 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001966/1.106, allocations: 1.213 MB / 0.9623 GB, free: 10.89 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.913e-05/1.106, allocations: 143.7 kB / 0.9624 GB, free: 10.75 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002811/1.106, allocations: 202 kB / 0.9626 GB, free: 10.55 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004215/1.111, allocations: 3.081 MB / 0.9656 GB, free: 7.445 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.303e-05/1.111, allocations: 11.92 kB / 0.9656 GB, free: 7.434 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001619/1.111, allocations: 79.97 kB / 0.9657 GB, free: 7.355 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002174/1.111, allocations: 183.8 kB / 0.9659 GB, free: 7.176 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004377/1.116, allocations: 3.385 MB / 0.9692 GB, free: 3.789 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0137/1.129, allocations: 12.33 MB / 0.9812 GB, free: 6.203 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002478/1.132, allocations: 1.647 MB / 0.9828 GB, free: 4.539 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001772/1.134, allocations: 1.424 MB / 0.9842 GB, free: 3.109 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002544/1.136, allocations: 3.843 MB / 0.988 GB, free: 14.44 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.819e-05/1.136, allocations: 52.56 kB / 0.988 GB, free: 14.38 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=196): time 4.218e-06/1.136, allocations: 4 kB / 0.988 GB, free: 14.37 MB / 0.7012 GB Notification: Performance of matching and sorting (n=200): time 0.01358/1.15, allocations: 8.41 MB / 0.9962 GB, free: 5.711 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.938e-05/1.15, allocations: 95.11 kB / 0.9963 GB, free: 5.602 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001489/1.151, allocations: 1.163 MB / 0.9975 GB, free: 4.43 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0001879/1.152, allocations: 61.69 kB / 0.9975 GB, free: 4.363 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005063/1.152, allocations: 0.7602 MB / 0.9983 GB, free: 3.594 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005016/1.153, allocations: 0.6698 MB / 0.9989 GB, free: 2.914 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005346/1.153, allocations: 351.4 kB / 0.9993 GB, free: 2.566 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 8.648e-05/1.153, allocations: 301.1 kB / 0.9995 GB, free: 2.27 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001535/1.155, allocations: 1.035 MB / 1.001 GB, free: 1.234 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001699/1.156, allocations: 1.151 MB / 1.002 GB, free: 76 kB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003473/1.16, allocations: 2.348 MB / 1.004 GB, free: 13.72 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.598e-06/1.16, allocations: 0 / 1.004 GB, free: 13.72 MB / 0.7169 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.005109/1.165, allocations: 3.046 MB / 1.007 GB, free: 10.66 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.528e-05/1.165, allocations: 4 kB / 1.007 GB, free: 10.66 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/1.165, allocations: 3.938 kB / 1.007 GB, free: 10.65 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001389/1.167, allocations: 478 kB / 1.007 GB, free: 10.18 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001172/1.168, allocations: 335.5 kB / 1.008 GB, free: 9.855 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007175/1.175, allocations: 6.342 MB / 1.014 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001128/1.176, allocations: 56.03 kB / 1.014 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002655/1.176, allocations: 111.9 kB / 1.014 GB, free: 3.078 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (172): * Single equations (assignments): 160 * Array equations: 10 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,16,68.0%), (5,16,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008858/1.177, allocations: 0.5014 MB / 1.015 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004062/1.178, allocations: 173.9 kB / 1.015 GB, free: 2.395 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2083/1.386, allocations: 4.624 MB / 1.019 GB, free: 311.9 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.332e-05/1.386, allocations: 21 kB / 1.019 GB, free: 311.9 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.189e-05/1.386, allocations: 5.844 kB / 1.019 GB, free: 311.9 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.961e-05/1.386, allocations: 11.47 kB / 1.019 GB, free: 311.9 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008834/1.395, allocations: 6.194 MB / 1.025 GB, free: 311.4 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.396e-06/1.395, allocations: 0 / 1.025 GB, free: 311.4 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001012/1.396, allocations: 303.8 kB / 1.026 GB, free: 311.4 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001181/1.397, allocations: 0.4883 MB / 1.026 GB, free: 311.4 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001488/1.397, allocations: 80.98 kB / 1.026 GB, free: 311.4 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005894/1.403, allocations: 6.377 MB / 1.032 GB, free: 308.4 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/1.403, allocations: 4.75 kB / 1.032 GB, free: 308.4 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006247/1.409, allocations: 4.764 MB / 1.037 GB, free: 306.9 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004578/1.41, allocations: 246.2 kB / 1.037 GB, free: 306.8 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002845/1.41, allocations: 44.92 kB / 1.037 GB, free: 306.8 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008405/1.411, allocations: 43.78 kB / 1.037 GB, free: 306.7 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003422/1.411, allocations: 165.2 kB / 1.038 GB, free: 306.7 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002366/1.412, allocations: 114.9 kB / 1.038 GB, free: 306.7 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.001268/1.413, allocations: 0.9378 MB / 1.039 GB, free: 306.3 MB / 0.7169 GB Notification: Performance of sort global known variables: time 3.2e-07/1.413, allocations: 0 / 1.039 GB, free: 306.3 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.004661/1.418, allocations: 1.651 MB / 1.04 GB, free: 306.1 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (junctionNM1.junctionN.outlet.m_flow,flowResistance6.inlet.m_flow,flowResistance8.inlet.m_flow,flowResistance9.inlet.m_flow,junctionNM.junctionN.outlet.m_flow,flowResistance1.inlet.m_flow,flowResistance3.inlet.m_flow,flowResistance4.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 (160): * Single equations (assignments): 148 * Array equations: 10 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,16,68.0%), (5,16,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004585/1.422, allocations: 1.989 MB / 1.042 GB, free: 305.9 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.00491/1.427, allocations: 3.111 MB / 1.045 GB, free: 304.6 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 6.181e-06/1.427, allocations: 1.469 kB / 1.045 GB, free: 304.6 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.003318/1.431, allocations: 1.908 MB / 1.047 GB, free: 303.8 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003621/1.434, allocations: 0.7863 MB / 1.048 GB, free: 303.7 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007497/1.442, allocations: 4.642 MB / 1.052 GB, free: 301.7 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00159/1.443, allocations: 1.656 MB / 1.054 GB, free: 300.9 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.003042/1.446, allocations: 1.249 MB / 1.055 GB, free: 300.8 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00066/1.447, allocations: 216 kB / 1.055 GB, free: 300.8 MB / 0.7169 GB Notification: Performance of SimCode: time 1.433e-06/1.447, allocations: 0 / 1.055 GB, free: 300.8 MB / 0.7169 GB Notification: Performance of Templates: time 0.08173/1.529, allocations: 69.12 MB / 1.123 GB, free: 251.5 MB / 0.7169 GB make -j1 -f ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.makefile (rm -f ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe >> ../files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.sim & ./ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM -abortSlowSimulation -alarm=1200 -s cvode -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Topology.Tests.TestJunctionNM_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches