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.001431/0.00143, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001802/0.001802, allocations: 194 kB / 16.14 MB, free: 6.652 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.355/1.355, allocations: 222.9 MB / 239.8 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6925/0.6925, allocations: 91.2 MB / 381.2 MB, free: 9.582 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 75.92 kB / 459.6 MB, free: 23.39 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1288/0.1302, allocations: 67.69 MB / 0.515 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 1.024/1.154, allocations: 366.4 MB / 0.8728 GB, free: 0.9414 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.04169/1.196, allocations: 39.66 MB / 0.9115 GB, free: 232 kB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003955/1.2, allocations: 83.81 kB / 0.9116 GB, free: 232 kB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.00513/1.205, allocations: 1.851 MB / 0.9134 GB, free: 220 kB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.0231/1.228, allocations: 7.636 MB / 0.9208 GB, free: 15.95 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.01081/1.239, allocations: 3.752 MB / 0.9245 GB, free: 15.66 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.007058/1.246, allocations: 5.889 MB / 0.9302 GB, free: 14.46 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001984/1.248, allocations: 1.047 MB / 0.9313 GB, free: 14.11 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005745/1.254, allocations: 2.38 MB / 0.9336 GB, free: 13.51 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003257/1.257, allocations: 1.827 MB / 0.9354 GB, free: 12.92 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0008812/1.258, allocations: 166.1 kB / 0.9355 GB, free: 12.92 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03465/1.293, allocations: 18.75 MB / 0.9539 GB, free: 2.613 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.001611/1.294, allocations: 0.776 MB / 0.9546 GB, free: 2.066 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.003407/1.298, allocations: 1.362 MB / 0.9559 GB, free: 1.07 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.02755/1.325, allocations: 10.52 MB / 0.9662 GB, free: 7.789 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/1.325, allocations: 0 / 0.9662 GB, free: 7.789 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.223e-06/1.325, allocations: 0 / 0.9662 GB, free: 7.789 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 0.0001216/1.325, allocations: 3.938 kB / 0.9662 GB, free: 7.785 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.01143/1.337, allocations: 4.48 MB / 0.9706 GB, free: 3.309 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/1.337, allocations: 12.03 kB / 0.9706 GB, free: 3.297 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008631/1.338, allocations: 290.4 kB / 0.9709 GB, free: 3.012 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002823/1.341, allocations: 1.527 MB / 0.9724 GB, free: 1.523 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001195/1.341, allocations: 142.1 kB / 0.9725 GB, free: 1.391 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004207/1.341, allocations: 198.5 kB / 0.9727 GB, free: 1.203 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00541/1.347, allocations: 3.092 MB / 0.9757 GB, free: 14.1 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.237e-05/1.347, allocations: 4 kB / 0.9757 GB, free: 14.1 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001948/1.347, allocations: 78.08 kB / 0.9758 GB, free: 14.03 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002335/1.347, allocations: 183.9 kB / 0.976 GB, free: 13.85 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005021/1.352, allocations: 3.385 MB / 0.9793 GB, free: 10.47 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01587/1.368, allocations: 12.41 MB / 0.9914 GB, free: 12.98 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002727/1.371, allocations: 1.638 MB / 0.993 GB, free: 11.34 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002062/1.373, allocations: 1.426 MB / 0.9944 GB, free: 9.91 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002835/1.376, allocations: 3.847 MB / 0.9981 GB, free: 5.246 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.177e-05/1.376, allocations: 51.66 kB / 0.9982 GB, free: 5.191 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=196): time 4.719e-06/1.376, allocations: 0 / 0.9982 GB, free: 5.191 MB / 0.6856 GB Notification: Performance of matching and sorting (n=200): time 0.01629/1.392, allocations: 8.53 MB / 1.007 GB, free: 12.45 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.193e-05/1.392, allocations: 99.11 kB / 1.007 GB, free: 12.34 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002117/1.394, allocations: 1.426 MB / 1.008 GB, free: 10.91 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0001508/1.395, allocations: 60.67 kB / 1.008 GB, free: 10.84 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006607/1.395, allocations: 0.8873 MB / 1.009 GB, free: 9.945 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005493/1.396, allocations: 0.6776 MB / 1.01 GB, free: 9.273 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006042/1.396, allocations: 340.9 kB / 1.01 GB, free: 8.941 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 9.484e-05/1.396, allocations: 309.1 kB / 1.01 GB, free: 8.637 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001632/1.398, allocations: 1.031 MB / 1.011 GB, free: 7.605 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001898/1.4, allocations: 1.163 MB / 1.012 GB, free: 6.438 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003477/1.403, allocations: 2.351 MB / 1.015 GB, free: 4.086 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/1.404, allocations: 0 / 1.015 GB, free: 4.086 MB / 0.7012 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.005532/1.409, allocations: 3.069 MB / 1.018 GB, free: 1.027 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.625e-05/1.409, allocations: 4 kB / 1.018 GB, free: 1.023 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.262e-05/1.409, allocations: 0 / 1.018 GB, free: 1.023 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001589/1.411, allocations: 472.5 kB / 1.018 GB, free: 0.5586 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001227/1.412, allocations: 338.9 kB / 1.018 GB, free: 248 kB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007648/1.42, allocations: 5.792 MB / 1.024 GB, free: 10.22 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001795/1.421, allocations: 143.6 kB / 1.024 GB, free: 10.08 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005527/1.422, allocations: 115.9 kB / 1.024 GB, free: 9.965 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.00143/1.423, allocations: 0.5231 MB / 1.025 GB, free: 9.449 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008408/1.424, allocations: 201.5 kB / 1.025 GB, free: 9.25 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00853/1.433, allocations: 4.662 MB / 1.03 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.447e-05/1.433, allocations: 20 kB / 1.03 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.275e-05/1.433, allocations: 8 kB / 1.03 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.568e-05/1.433, allocations: 15.95 kB / 1.03 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01149/1.444, allocations: 6.297 MB / 1.036 GB, free: 14.24 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.2e-05/1.445, allocations: 4 kB / 1.036 GB, free: 14.23 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001113/1.446, allocations: 298.1 kB / 1.036 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001534/1.447, allocations: 0.4884 MB / 1.037 GB, free: 13.46 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002125/1.447, allocations: 82.91 kB / 1.037 GB, free: 13.39 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007165/1.455, allocations: 5.815 MB / 1.042 GB, free: 7.336 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/1.455, allocations: 4 kB / 1.042 GB, free: 7.332 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007792/1.462, allocations: 4.787 MB / 1.047 GB, free: 2.539 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007755/1.463, allocations: 270.5 kB / 1.047 GB, free: 2.254 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00053/1.464, allocations: 50.12 kB / 1.047 GB, free: 2.207 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001487/1.465, allocations: 135.6 kB / 1.047 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003533/1.466, allocations: 168.4 kB / 1.048 GB, free: 1.914 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002576/1.466, allocations: 111.9 kB / 1.048 GB, free: 1.805 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001801/1.468, allocations: 1.11 MB / 1.049 GB, free: 0.707 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.9e-07/1.468, allocations: 0 / 1.049 GB, free: 0.707 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.005241/1.473, allocations: 1.651 MB / 1.05 GB, free: 15.06 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.005526/1.478, allocations: 1.993 MB / 1.052 GB, free: 13.21 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.005425/1.484, allocations: 3.097 MB / 1.055 GB, free: 10.11 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/1.484, allocations: 4 kB / 1.055 GB, free: 10.11 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.003402/1.487, allocations: 1.92 MB / 1.057 GB, free: 8.191 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004088/1.491, allocations: 0.7533 MB / 1.058 GB, free: 7.449 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009708/1.501, allocations: 5.907 MB / 1.064 GB, free: 1.516 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001776/1.503, allocations: 1.766 MB / 1.065 GB, free: 15.71 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.002899/1.506, allocations: 1.292 MB / 1.067 GB, free: 14.44 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000859/1.507, allocations: 235.3 kB / 1.067 GB, free: 14.21 MB / 0.7637 GB Notification: Performance of SimCode: time 9.62e-07/1.507, allocations: 0 / 1.067 GB, free: 14.21 MB / 0.7637 GB Notification: Performance of Templates: time 0.3575/1.864, allocations: 68.1 MB / 1.133 GB, free: 391.1 MB / 0.795 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches