Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_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_dev_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.001127/0.001127, 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.001197/0.001197, allocations: 197.8 kB / 16.14 MB, free: 6.723 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.374/1.374, 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.7007/0.7007, allocations: 93.72 MB / 383.7 MB, free: 7.156 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001523/0.001524, allocations: 80.06 kB / 462.7 MB, free: 22.23 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1143, allocations: 68.26 MB / 0.5185 GB, free: 7.477 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 0.9311/1.045, allocations: 366.4 MB / 0.8764 GB, free: 0.8828 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.03708/1.083, allocations: 39.72 MB / 0.9152 GB, free: 88 kB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002507/1.085, allocations: 93.03 kB / 0.9152 GB, free: 88 kB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.004036/1.089, allocations: 1.849 MB / 0.9171 GB, free: 76 kB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.018/1.107, allocations: 7.675 MB / 0.9245 GB, free: 15.77 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.00943/1.117, allocations: 3.748 MB / 0.9282 GB, free: 14.98 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.006321/1.123, allocations: 5.991 MB / 0.9341 GB, free: 13.77 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001391/1.124, allocations: 1.059 MB / 0.9351 GB, free: 13.39 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004799/1.129, allocations: 2.411 MB / 0.9374 GB, free: 12.79 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002744/1.132, allocations: 1.837 MB / 0.9392 GB, free: 12.19 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0004867/1.133, allocations: 167.7 kB / 0.9394 GB, free: 12.18 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03178/1.164, allocations: 18.76 MB / 0.9577 GB, free: 320 kB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.001453/1.166, allocations: 0.7806 MB / 0.9585 GB, free: 15.56 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.002374/1.168, allocations: 1.367 MB / 0.9598 GB, free: 14.21 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.02594/1.194, allocations: 10.54 MB / 0.9701 GB, free: 4.602 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/1.194, allocations: 0 / 0.9701 GB, free: 4.602 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.823e-06/1.194, allocations: 0 / 0.9701 GB, free: 4.602 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.985e-05/1.194, allocations: 0 / 0.9701 GB, free: 4.602 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.01104/1.205, allocations: 4.509 MB / 0.9745 GB, free: 100 kB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/1.205, allocations: 8.031 kB / 0.9745 GB, free: 92 kB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006862/1.206, allocations: 288.7 kB / 0.9748 GB, free: 15.8 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002478/1.209, allocations: 1.562 MB / 0.9763 GB, free: 14.28 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.784e-05/1.209, allocations: 145.2 kB / 0.9765 GB, free: 14.14 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003011/1.209, allocations: 194.3 kB / 0.9766 GB, free: 13.96 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00473/1.214, allocations: 3.091 MB / 0.9797 GB, free: 10.86 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.658e-05/1.214, allocations: 0 / 0.9797 GB, free: 10.86 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001797/1.214, allocations: 80.36 kB / 0.9797 GB, free: 10.79 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002257/1.214, allocations: 183.9 kB / 0.9799 GB, free: 10.61 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004859/1.219, allocations: 3.386 MB / 0.9832 GB, free: 7.23 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01559/1.235, allocations: 12.43 MB / 0.9954 GB, free: 9.723 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002695/1.237, allocations: 1.645 MB / 0.997 GB, free: 8.07 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001958/1.239, allocations: 1.426 MB / 0.9984 GB, free: 6.637 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002674/1.242, allocations: 3.845 MB / 1.002 GB, free: 1.977 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.755e-05/1.242, allocations: 59.19 kB / 1.002 GB, free: 1.914 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=196): time 5.059e-06/1.242, allocations: 0 / 1.002 GB, free: 1.914 MB / 0.6856 GB Notification: Performance of matching and sorting (n=200): time 0.0148/1.257, allocations: 8.545 MB / 1.011 GB, free: 9.168 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.496e-05/1.257, allocations: 103.1 kB / 1.011 GB, free: 9.047 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001829/1.259, allocations: 1.46 MB / 1.012 GB, free: 7.586 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0001753/1.259, allocations: 60.28 kB / 1.012 GB, free: 7.523 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006332/1.26, allocations: 0.911 MB / 1.013 GB, free: 6.602 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005451/1.26, allocations: 0.6671 MB / 1.014 GB, free: 5.941 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005681/1.261, allocations: 351.5 kB / 1.014 GB, free: 5.598 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 9.866e-05/1.261, allocations: 301.1 kB / 1.014 GB, free: 5.301 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001544/1.262, allocations: 1.031 MB / 1.015 GB, free: 4.27 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001747/1.264, allocations: 1.159 MB / 1.016 GB, free: 3.105 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003533/1.268, allocations: 2.355 MB / 1.019 GB, free: 0.7461 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/1.268, allocations: 0 / 1.019 GB, free: 0.7461 MB / 0.7012 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.005345/1.273, allocations: 3.071 MB / 1.022 GB, free: 13.68 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.444e-05/1.273, allocations: 8 kB / 1.022 GB, free: 13.68 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/1.273, allocations: 4 kB / 1.022 GB, free: 13.67 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001478/1.275, allocations: 471.3 kB / 1.022 GB, free: 13.21 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001279/1.276, allocations: 335 kB / 1.022 GB, free: 12.89 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007364/1.283, allocations: 5.799 MB / 1.028 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001549/1.285, allocations: 147.6 kB / 1.028 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003145/1.285, allocations: 119.9 kB / 1.028 GB, free: 6.605 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.001033/1.286, allocations: 0.5129 MB / 1.029 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005222/1.287, allocations: 201.5 kB / 1.029 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007737/1.295, allocations: 4.668 MB / 1.034 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.273e-05/1.295, allocations: 20 kB / 1.034 GB, free: 1.195 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.321e-05/1.295, allocations: 12 kB / 1.034 GB, free: 1.184 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.11e-05/1.295, allocations: 7.969 kB / 1.034 GB, free: 1.176 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01133/1.306, allocations: 6.305 MB / 1.04 GB, free: 10.87 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.258e-05/1.306, allocations: 4 kB / 1.04 GB, free: 10.87 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001177/1.307, allocations: 306.1 kB / 1.04 GB, free: 10.58 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001646/1.309, allocations: 0.4936 MB / 1.041 GB, free: 10.09 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002118/1.309, allocations: 79.94 kB / 1.041 GB, free: 10.01 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007723/1.317, allocations: 5.806 MB / 1.046 GB, free: 3.969 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/1.317, allocations: 10.72 kB / 1.046 GB, free: 3.961 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008545/1.325, allocations: 4.781 MB / 1.051 GB, free: 15.17 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006906/1.326, allocations: 286.4 kB / 1.051 GB, free: 14.87 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004908/1.327, allocations: 49.88 kB / 1.051 GB, free: 14.82 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001373/1.328, allocations: 131.7 kB / 1.051 GB, free: 14.7 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003616/1.328, allocations: 170.1 kB / 1.052 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002605/1.329, allocations: 111.9 kB / 1.052 GB, free: 14.43 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.00174/1.33, allocations: 1.123 MB / 1.053 GB, free: 13.31 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.61e-07/1.33, allocations: 0 / 1.053 GB, free: 13.31 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.004576/1.335, allocations: 1.652 MB / 1.054 GB, free: 11.66 MB / 0.7481 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.005295/1.34, allocations: 1.992 MB / 1.056 GB, free: 9.824 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.005782/1.346, allocations: 3.109 MB / 1.059 GB, free: 6.711 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/1.346, allocations: 0 / 1.059 GB, free: 6.711 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.003662/1.35, allocations: 1.912 MB / 1.061 GB, free: 4.809 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00433/1.354, allocations: 0.7624 MB / 1.062 GB, free: 4.059 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009242/1.363, allocations: 5.958 MB / 1.068 GB, free: 14.07 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001518/1.365, allocations: 1.762 MB / 1.07 GB, free: 12.27 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.002819/1.368, allocations: 1.295 MB / 1.071 GB, free: 10.99 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008332/1.369, allocations: 239.3 kB / 1.071 GB, free: 10.76 MB / 0.7637 GB Notification: Performance of SimCode: time 1.052e-06/1.369, allocations: 0 / 1.071 GB, free: 10.76 MB / 0.7637 GB Notification: Performance of Templates: time 0.3936/1.762, allocations: 68.18 MB / 1.138 GB, free: 297.1 MB / 0.795 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunctionNM.makefile (rm -f ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunctionNM.sim & ./ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunctionNM -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunctionNM_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Topology.Tests.TestJunctionNM_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunctionNM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches