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.001497/0.001497, allocations: 115.6 kB / 16.37 MB, free: 6.004 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.001598/0.001598, allocations: 192.1 kB / 17.31 MB, free: 5.613 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.307/1.307, 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.6522/0.6522, allocations: 89.49 MB / 380.7 MB, free: 8.641 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 79.88 kB / 459.7 MB, free: 10.57 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.109, allocations: 67.31 MB / 0.5146 GB, free: 7.176 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 0.7706/0.8797, allocations: 361.7 MB / 0.8679 GB, free: 12.16 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.03893/0.9186, allocations: 38.5 MB / 0.9055 GB, free: 3.492 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001708/0.9204, allocations: 27.59 kB / 0.9055 GB, free: 3.473 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.004561/0.9249, allocations: 1.952 MB / 0.9074 GB, free: 1.934 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.02087/0.9459, allocations: 8.569 MB / 0.9158 GB, free: 10.49 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.01062/0.9565, allocations: 4.223 MB / 0.9199 GB, free: 6.258 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.005134/0.9617, allocations: 3.684 MB / 0.9235 GB, free: 2.562 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001417/0.9631, allocations: 1.163 MB / 0.9246 GB, free: 1.387 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004828/0.9679, allocations: 2.426 MB / 0.927 GB, free: 14.95 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002291/0.9702, allocations: 1.724 MB / 0.9287 GB, free: 13.22 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0003664/0.9706, allocations: 248 kB / 0.9289 GB, free: 12.98 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02895/0.9996, allocations: 16.52 MB / 0.9451 GB, free: 12.43 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.001198/1.001, allocations: 0.8451 MB / 0.9459 GB, free: 11.59 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.001897/1.003, allocations: 1.357 MB / 0.9472 GB, free: 10.22 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.02148/1.024, allocations: 9.743 MB / 0.9567 GB, free: 468 kB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/1.024, allocations: 0 / 0.9567 GB, free: 468 kB / 0.6544 GB Notification: Performance of FrontEnd: time 1.353e-06/1.024, allocations: 0 / 0.9567 GB, free: 468 kB / 0.6544 GB Notification: Performance of Transformations before backend: time 2.489e-05/1.024, allocations: 4 kB / 0.9567 GB, free: 464 kB / 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.008701/1.033, allocations: 4.212 MB / 0.9608 GB, free: 12.18 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/1.033, allocations: 12.03 kB / 0.9609 GB, free: 12.16 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004658/1.034, allocations: 253 kB / 0.9611 GB, free: 11.91 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001901/1.035, allocations: 1.205 MB / 0.9623 GB, free: 10.65 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.926e-05/1.036, allocations: 143.7 kB / 0.9624 GB, free: 10.51 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000291/1.036, allocations: 199.9 kB / 0.9626 GB, free: 10.32 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004181/1.04, allocations: 3.097 MB / 0.9656 GB, free: 7.191 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.65e-05/1.04, allocations: 0 / 0.9656 GB, free: 7.191 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001581/1.04, allocations: 75.98 kB / 0.9657 GB, free: 7.117 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002093/1.04, allocations: 183.9 kB / 0.9659 GB, free: 6.938 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004431/1.045, allocations: 3.389 MB / 0.9692 GB, free: 3.547 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01334/1.058, allocations: 12.33 MB / 0.9812 GB, free: 5.961 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00248/1.061, allocations: 1.658 MB / 0.9828 GB, free: 4.285 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001834/1.063, allocations: 1.422 MB / 0.9842 GB, free: 2.855 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00262/1.065, allocations: 3.847 MB / 0.988 GB, free: 14.18 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.569e-05/1.065, allocations: 52.56 kB / 0.988 GB, free: 14.12 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=196): time 4.168e-06/1.065, allocations: 0 / 0.988 GB, free: 14.12 MB / 0.7012 GB Notification: Performance of matching and sorting (n=200): time 0.01343/1.079, allocations: 8.404 MB / 0.9962 GB, free: 5.465 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.14e-05/1.079, allocations: 99.11 kB / 0.9963 GB, free: 5.352 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001509/1.08, allocations: 1.167 MB / 0.9975 GB, free: 4.176 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.00013/1.08, allocations: 57.7 kB / 0.9975 GB, free: 4.113 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004803/1.081, allocations: 0.7641 MB / 0.9983 GB, free: 3.34 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004975/1.081, allocations: 0.6698 MB / 0.9989 GB, free: 2.66 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005532/1.082, allocations: 347.4 kB / 0.9993 GB, free: 2.316 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001008/1.082, allocations: 301.1 kB / 0.9996 GB, free: 2.02 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001539/1.084, allocations: 1.038 MB / 1.001 GB, free: 0.9805 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001673/1.085, allocations: 1.151 MB / 1.002 GB, free: 15.82 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003406/1.089, allocations: 2.348 MB / 1.004 GB, free: 13.46 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/1.089, allocations: 0 / 1.004 GB, free: 13.46 MB / 0.7169 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.005025/1.094, allocations: 3.046 MB / 1.007 GB, free: 10.41 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/1.094, allocations: 4 kB / 1.007 GB, free: 10.4 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/1.094, allocations: 0 / 1.007 GB, free: 10.4 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001323/1.095, allocations: 479.4 kB / 1.007 GB, free: 9.934 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001193/1.096, allocations: 339.5 kB / 1.008 GB, free: 9.602 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007564/1.104, allocations: 6.335 MB / 1.014 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009341/1.105, allocations: 44.05 kB / 1.014 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002626/1.105, allocations: 115.9 kB / 1.014 GB, free: 2.836 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.0008657/1.106, allocations: 0.5148 MB / 1.015 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004028/1.106, allocations: 169.9 kB / 1.015 GB, free: 2.145 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2029/1.309, allocations: 4.62 MB / 1.019 GB, free: 311.4 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.876e-05/1.309, allocations: 19.06 kB / 1.019 GB, free: 311.4 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.769e-06/1.309, allocations: 7.75 kB / 1.019 GB, free: 311.4 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.869e-05/1.309, allocations: 9.609 kB / 1.019 GB, free: 311.4 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008786/1.318, allocations: 6.192 MB / 1.025 GB, free: 310.8 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.734e-06/1.318, allocations: 0.7188 kB / 1.025 GB, free: 310.8 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001017/1.319, allocations: 308.6 kB / 1.026 GB, free: 310.8 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001238/1.321, allocations: 497.8 kB / 1.026 GB, free: 310.8 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000157/1.321, allocations: 82.67 kB / 1.026 GB, free: 310.8 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006084/1.327, allocations: 6.374 MB / 1.032 GB, free: 307.8 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/1.327, allocations: 2.5 kB / 1.032 GB, free: 307.8 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006294/1.333, allocations: 4.762 MB / 1.037 GB, free: 306.6 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004249/1.334, allocations: 246.4 kB / 1.037 GB, free: 306.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002891/1.334, allocations: 44.56 kB / 1.037 GB, free: 306.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008701/1.335, allocations: 44.77 kB / 1.037 GB, free: 306.5 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003054/1.335, allocations: 167.2 kB / 1.038 GB, free: 306.5 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002139/1.335, allocations: 112.6 kB / 1.038 GB, free: 306.4 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.001158/1.336, allocations: 0.9446 MB / 1.039 GB, free: 306 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.5e-07/1.336, allocations: 0.5625 kB / 1.039 GB, free: 306 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.003771/1.34, allocations: 1.641 MB / 1.04 GB, free: 305.8 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.004094/1.344, allocations: 1.994 MB / 1.042 GB, free: 305.6 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.00455/1.349, allocations: 3.115 MB / 1.045 GB, free: 304.4 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/1.349, allocations: 0 / 1.045 GB, free: 304.4 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.002853/1.352, allocations: 1.907 MB / 1.047 GB, free: 303.5 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003252/1.355, allocations: 0.785 MB / 1.048 GB, free: 303.4 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006802/1.362, allocations: 4.645 MB / 1.052 GB, free: 301.5 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00128/1.363, allocations: 1.656 MB / 1.054 GB, free: 300.6 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.002739/1.366, allocations: 1.251 MB / 1.055 GB, free: 300.6 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000655/1.367, allocations: 216.7 kB / 1.055 GB, free: 300.5 MB / 0.7169 GB Notification: Performance of SimCode: time 7.32e-07/1.367, allocations: 5.719 kB / 1.055 GB, free: 300.5 MB / 0.7169 GB Notification: Performance of Templates: time 0.07733/1.444, allocations: 69.11 MB / 1.123 GB, free: 251.1 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 gbode -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