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.0009122/0.000912, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001085/0.001085, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.492/1.492, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8281/0.8281, allocations: 89.64 MB / 380.7 MB, free: 11.42 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003906/0.0003908, allocations: 13.48 kB / 460 MB, free: 24.39 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.1401, allocations: 68.83 MB / 0.5165 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 1.156/1.297, allocations: 332.8 MB / 0.8414 GB, free: 7.816 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.03966/1.336, allocations: 35.81 MB / 0.8764 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002918/1.339, allocations: 31.06 kB / 0.8764 GB, free: 7.418 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.004697/1.344, allocations: 1.271 MB / 0.8777 GB, free: 7.41 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.02342/1.367, allocations: 6.55 MB / 0.8841 GB, free: 7.188 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.01027/1.378, allocations: 2.951 MB / 0.887 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.00681/1.385, allocations: 4.76 MB / 0.8916 GB, free: 7.074 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001962/1.387, allocations: 0.8861 MB / 0.8925 GB, free: 22.88 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005419/1.392, allocations: 2.046 MB / 0.8945 GB, free: 22.6 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003374/1.395, allocations: 1.552 MB / 0.896 GB, free: 22.32 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0005486/1.396, allocations: 94.44 kB / 0.8961 GB, free: 22.32 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03079/1.427, allocations: 13.09 MB / 0.9089 GB, free: 19.06 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.001708/1.429, allocations: 0.662 MB / 0.9095 GB, free: 18.85 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.001845/1.43, allocations: 0.4897 MB / 0.91 GB, free: 18.81 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.01703/1.447, allocations: 6.303 MB / 0.9161 GB, free: 16.37 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/1.448, allocations: 0 / 0.9161 GB, free: 16.37 MB / 0.6231 GB Notification: Performance of FrontEnd: time 2.354e-06/1.448, allocations: 0 / 0.9161 GB, free: 16.37 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 8.694e-05/1.448, allocations: 0 / 0.9161 GB, free: 16.37 MB / 0.6231 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.01146/1.459, allocations: 3.8 MB / 0.9198 GB, free: 13.62 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/1.459, allocations: 8.031 kB / 0.9199 GB, free: 13.61 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009605/1.46, allocations: 253 kB / 0.9201 GB, free: 13.36 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002394/1.463, allocations: 1.166 MB / 0.9212 GB, free: 12.49 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.221e-05/1.463, allocations: 141.9 kB / 0.9214 GB, free: 12.41 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003072/1.463, allocations: 204.3 kB / 0.9216 GB, free: 12.28 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004662/1.468, allocations: 3.075 MB / 0.9246 GB, free: 10.21 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.785e-05/1.468, allocations: 0 / 0.9246 GB, free: 10.21 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001633/1.468, allocations: 77.89 kB / 0.9246 GB, free: 10.19 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002323/1.468, allocations: 184.6 kB / 0.9248 GB, free: 10.04 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004742/1.473, allocations: 3.37 MB / 0.9281 GB, free: 7.793 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01588/1.489, allocations: 12.35 MB / 0.9402 GB, free: 12.56 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002642/1.491, allocations: 1.648 MB / 0.9418 GB, free: 11.55 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001956/1.493, allocations: 1.42 MB / 0.9432 GB, free: 10.68 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003079/1.497, allocations: 3.846 MB / 0.9469 GB, free: 6.102 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.738e-05/1.497, allocations: 52.44 kB / 0.947 GB, free: 6.055 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=196): time 6.853e-06/1.497, allocations: 0 / 0.947 GB, free: 6.055 MB / 0.6387 GB Notification: Performance of matching and sorting (n=200): time 0.01679/1.513, allocations: 8.374 MB / 0.9551 GB, free: 15.88 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.067e-05/1.514, allocations: 103.1 kB / 0.9552 GB, free: 15.75 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002125/1.516, allocations: 1.154 MB / 0.9564 GB, free: 14.91 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0002192/1.516, allocations: 58.83 kB / 0.9564 GB, free: 14.87 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006261/1.517, allocations: 0.764 MB / 0.9572 GB, free: 14.4 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007764/1.517, allocations: 0.6706 MB / 0.9578 GB, free: 13.82 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001729/1.518, allocations: 41.84 kB / 0.9579 GB, free: 13.81 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001956/1.518, allocations: 366.9 kB / 0.9582 GB, free: 13.47 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001676/1.519, allocations: 1.024 MB / 0.9592 GB, free: 12.84 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001724/1.521, allocations: 1.147 MB / 0.9603 GB, free: 12.11 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001898/1.523, allocations: 1.17 MB / 0.9615 GB, free: 11.44 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.191e-05/1.523, allocations: 3.953 kB / 0.9615 GB, free: 11.44 MB / 0.6544 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.005451/1.529, allocations: 3.018 MB / 0.9644 GB, free: 9.43 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.262e-05/1.529, allocations: 11.94 kB / 0.9644 GB, free: 9.418 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.316e-05/1.529, allocations: 0 / 0.9644 GB, free: 9.418 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001533/1.53, allocations: 478.2 kB / 0.9649 GB, free: 9.043 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001193/1.531, allocations: 337 kB / 0.9652 GB, free: 8.75 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007694/1.539, allocations: 5.807 MB / 0.9709 GB, free: 4.152 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001929/1.541, allocations: 142.6 kB / 0.971 GB, free: 4.035 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005719/1.542, allocations: 116.3 kB / 0.9711 GB, free: 3.945 MB / 0.6544 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,68.0%) 16,(5,68.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00143/1.543, allocations: 0.5038 MB / 0.9716 GB, free: 3.633 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006234/1.544, allocations: 169.9 kB / 0.9718 GB, free: 3.465 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008228/1.552, allocations: 4.635 MB / 0.9763 GB, free: 148 kB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-05/1.552, allocations: 24 kB / 0.9763 GB, free: 124 kB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.516e-05/1.552, allocations: 8 kB / 0.9764 GB, free: 116 kB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.558e-05/1.552, allocations: 11.95 kB / 0.9764 GB, free: 104 kB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01107/1.563, allocations: 6.198 MB / 0.9824 GB, free: 11.95 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.895e-05/1.563, allocations: 7.984 kB / 0.9824 GB, free: 11.94 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001142/1.564, allocations: 304.6 kB / 0.9827 GB, free: 11.67 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001478/1.566, allocations: 496.5 kB / 0.9832 GB, free: 11.27 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002231/1.566, allocations: 83.78 kB / 0.9833 GB, free: 11.22 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007505/1.574, allocations: 5.823 MB / 0.989 GB, free: 6.605 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.55e-06/1.574, allocations: 4 kB / 0.989 GB, free: 6.602 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008168/1.582, allocations: 4.734 MB / 0.9936 GB, free: 3.484 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008853/1.583, allocations: 275 kB / 0.9938 GB, free: 3.227 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005969/1.583, allocations: 41.78 kB / 0.9939 GB, free: 3.215 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001539/1.585, allocations: 149.2 kB / 0.994 GB, free: 3.094 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003574/1.585, allocations: 166.4 kB / 0.9942 GB, free: 2.953 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003054/1.586, allocations: 111.9 kB / 0.9943 GB, free: 2.863 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.001602/1.587, allocations: 0.9165 MB / 0.9952 GB, free: 2.219 MB / 0.67 GB Notification: Performance of sort global known variables: time 2.71e-07/1.587, allocations: 0 / 0.9952 GB, free: 2.219 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.006355/1.594, allocations: 1.635 MB / 0.9968 GB, free: 0.7852 MB / 0.67 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,68.0%) 16,(5,68.0%) 16} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00576/1.599, allocations: 1.984 MB / 0.9987 GB, free: 15.02 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.006129/1.606, allocations: 3.091 MB / 1.002 GB, free: 12.88 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 7.183e-06/1.606, allocations: 0 / 1.002 GB, free: 12.88 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.003476/1.609, allocations: 1.913 MB / 1.004 GB, free: 11.51 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004371/1.613, allocations: 0.7121 MB / 1.004 GB, free: 10.96 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009387/1.623, allocations: 5.518 MB / 1.01 GB, free: 6.012 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001621/1.625, allocations: 1.662 MB / 1.011 GB, free: 4.336 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.003222/1.628, allocations: 1.241 MB / 1.013 GB, free: 3.105 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008721/1.629, allocations: 215.3 kB / 1.013 GB, free: 2.895 MB / 0.6856 GB Notification: Performance of SimCode: time 1.723e-06/1.629, allocations: 4 kB / 1.013 GB, free: 2.891 MB / 0.6856 GB Notification: Performance of Templates: time 0.102/1.731, allocations: 65.3 MB / 1.077 GB, free: 2.098 MB / 0.7481 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