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.001337/0.001337, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001306/0.001306, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.26/1.26, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7013/0.7013, allocations: 91.18 MB / 382.2 MB, free: 7.543 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001659/0.001659, allocations: 83.88 kB / 461 MB, free: 9.039 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1316, allocations: 67.67 MB / 0.5163 GB, free: 5.285 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 0.7899/0.9216, allocations: 362.1 MB / 0.8699 GB, free: 10.67 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.03772/0.9594, allocations: 38.61 MB / 0.9076 GB, free: 15.46 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002224/0.9616, allocations: 68.59 kB / 0.9076 GB, free: 15.42 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.004868/0.9665, allocations: 1.985 MB / 0.9096 GB, free: 13.87 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.0218/0.9884, allocations: 8.65 MB / 0.918 GB, free: 6.023 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.01123/0.9997, allocations: 4.216 MB / 0.9221 GB, free: 1.797 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.005181/1.005, allocations: 3.898 MB / 0.9259 GB, free: 13.89 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001848/1.007, allocations: 1.182 MB / 0.9271 GB, free: 12.7 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004981/1.012, allocations: 2.534 MB / 0.9296 GB, free: 10.15 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002959/1.015, allocations: 1.763 MB / 0.9313 GB, free: 8.383 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.000779/1.016, allocations: 244 kB / 0.9315 GB, free: 8.145 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02875/1.044, allocations: 16.47 MB / 0.9476 GB, free: 7.637 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.001361/1.046, allocations: 0.8488 MB / 0.9484 GB, free: 6.789 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.002635/1.048, allocations: 1.438 MB / 0.9498 GB, free: 5.344 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.02422/1.073, allocations: 9.883 MB / 0.9595 GB, free: 11.43 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/1.073, allocations: 0 / 0.9595 GB, free: 11.43 MB / 0.67 GB Notification: Performance of FrontEnd: time 3.667e-06/1.073, allocations: 3.984 kB / 0.9595 GB, free: 11.43 MB / 0.67 GB Notification: Performance of Transformations before backend: time 6.72e-05/1.073, allocations: 4 kB / 0.9595 GB, free: 11.43 MB / 0.67 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.01024/1.083, allocations: 4.478 MB / 0.9639 GB, free: 6.883 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/1.083, allocations: 8.031 kB / 0.9639 GB, free: 6.875 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005921/1.084, allocations: 292.5 kB / 0.9642 GB, free: 6.586 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002271/1.086, allocations: 1.518 MB / 0.9657 GB, free: 5.016 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.17e-05/1.086, allocations: 143.7 kB / 0.9658 GB, free: 4.875 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002807/1.086, allocations: 199.9 kB / 0.966 GB, free: 4.68 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004224/1.091, allocations: 3.097 MB / 0.969 GB, free: 1.555 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.709e-05/1.091, allocations: 0 / 0.969 GB, free: 1.555 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001582/1.091, allocations: 71.98 kB / 0.9691 GB, free: 1.484 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002155/1.091, allocations: 179.9 kB / 0.9692 GB, free: 1.309 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004298/1.095, allocations: 3.393 MB / 0.9726 GB, free: 13.91 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01346/1.109, allocations: 12.49 MB / 0.9848 GB, free: 160 kB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002434/1.111, allocations: 1.651 MB / 0.9864 GB, free: 14.49 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001709/1.113, allocations: 1.424 MB / 0.9878 GB, free: 13.07 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002433/1.115, allocations: 3.847 MB / 0.9915 GB, free: 8.387 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.129e-05/1.115, allocations: 52.56 kB / 0.9916 GB, free: 8.328 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=196): time 4.679e-06/1.115, allocations: 0 / 0.9916 GB, free: 8.328 MB / 0.7012 GB Notification: Performance of matching and sorting (n=200): time 0.01329/1.129, allocations: 8.537 MB / 0.9999 GB, free: 15.54 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.553e-05/1.129, allocations: 103.1 kB / 1 GB, free: 15.41 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001655/1.13, allocations: 1.418 MB / 1.001 GB, free: 13.99 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0001505/1.131, allocations: 57.7 kB / 1.001 GB, free: 13.93 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.000554/1.131, allocations: 0.8912 MB / 1.002 GB, free: 13.03 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004941/1.132, allocations: 0.6776 MB / 1.003 GB, free: 12.34 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005089/1.132, allocations: 339.5 kB / 1.003 GB, free: 12.01 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.053e-05/1.132, allocations: 301.1 kB / 1.004 GB, free: 11.71 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001388/1.134, allocations: 1.038 MB / 1.005 GB, free: 10.67 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001542/1.135, allocations: 1.151 MB / 1.006 GB, free: 9.516 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003148/1.138, allocations: 2.351 MB / 1.008 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/1.138, allocations: 4 kB / 1.008 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.004791/1.143, allocations: 3.073 MB / 1.011 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.235e-05/1.143, allocations: 4 kB / 1.011 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/1.143, allocations: 4 kB / 1.011 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001361/1.145, allocations: 482.9 kB / 1.011 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001144/1.146, allocations: 331.5 kB / 1.012 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.203/1.349, allocations: 6.343 MB / 1.018 GB, free: 307.2 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001239/1.35, allocations: 46.45 kB / 1.018 GB, free: 307.2 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002534/1.35, allocations: 122.9 kB / 1.018 GB, free: 307.2 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.0008376/1.351, allocations: 0.5225 MB / 1.019 GB, free: 307.1 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004468/1.352, allocations: 198.9 kB / 1.019 GB, free: 307.1 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006251/1.358, allocations: 4.657 MB / 1.023 GB, free: 306.9 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.606e-05/1.358, allocations: 18.97 kB / 1.023 GB, free: 306.9 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.362e-05/1.358, allocations: 6.906 kB / 1.023 GB, free: 306.9 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.942e-05/1.358, allocations: 12.28 kB / 1.023 GB, free: 306.9 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007982/1.366, allocations: 6.293 MB / 1.03 GB, free: 306.3 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.676e-06/1.366, allocations: 3.719 kB / 1.03 GB, free: 306.3 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009407/1.367, allocations: 301.1 kB / 1.03 GB, free: 306.3 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001179/1.368, allocations: 0.4934 MB / 1.03 GB, free: 306.3 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001565/1.368, allocations: 84.55 kB / 1.03 GB, free: 306.3 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005986/1.374, allocations: 6.36 MB / 1.037 GB, free: 302.7 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/1.374, allocations: 3.656 kB / 1.037 GB, free: 302.7 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006438/1.381, allocations: 4.788 MB / 1.041 GB, free: 300.7 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005215/1.381, allocations: 269.8 kB / 1.042 GB, free: 300.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003276/1.382, allocations: 42.75 kB / 1.042 GB, free: 300.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008657/1.383, allocations: 47.75 kB / 1.042 GB, free: 300.5 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003387/1.383, allocations: 171.4 kB / 1.042 GB, free: 300.4 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002151/1.383, allocations: 109.9 kB / 1.042 GB, free: 300.4 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.001427/1.385, allocations: 1.105 MB / 1.043 GB, free: 300 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/1.385, allocations: 0 / 1.043 GB, free: 300 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0044/1.389, allocations: 1.652 MB / 1.045 GB, free: 299.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.004177/1.393, allocations: 1.987 MB / 1.047 GB, free: 299.5 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.006126/1.399, allocations: 3.556 MB / 1.05 GB, free: 298.2 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 9.067e-06/1.399, allocations: 2.469 kB / 1.05 GB, free: 298.2 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.002786/1.402, allocations: 1.913 MB / 1.052 GB, free: 297.4 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003448/1.406, allocations: 0.8135 MB / 1.053 GB, free: 297.2 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00752/1.413, allocations: 5.122 MB / 1.058 GB, free: 295 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001273/1.414, allocations: 1.755 MB / 1.059 GB, free: 294.2 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009983/1.415, allocations: 270.2 kB / 1.06 GB, free: 294.2 MB / 0.7169 GB Notification: Performance of SimCode: time 6.51e-07/1.415, allocations: 0 / 1.06 GB, free: 294.2 MB / 0.7169 GB Notification: Performance of Templates: time 0.07054/1.486, allocations: 76.79 MB / 1.135 GB, free: 233.9 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 -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