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.004877/0.004877, allocations: 101.7 kB / 15.88 MB, free: 5.867 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.001217/0.001217, allocations: 193.3 kB / 16.79 MB, free: 5.809 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.347/1.347, allocations: 222.9 MB / 240.5 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6306/0.6306, allocations: 89.51 MB / 380.1 MB, free: 11.22 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001703/0.001703, allocations: 76.12 kB / 458.2 MB, free: 23.89 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1082, allocations: 67.3 MB / 0.5132 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 0.9531/1.061, allocations: 365.9 MB / 0.8705 GB, free: 0.9023 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.03724/1.099, allocations: 39.5 MB / 0.9091 GB, free: 244 kB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002413/1.101, allocations: 29.12 kB / 0.9091 GB, free: 244 kB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.004611/1.106, allocations: 1.828 MB / 0.9109 GB, free: 236 kB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.01957/1.125, allocations: 7.575 MB / 0.9183 GB, free: 15.99 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.009862/1.135, allocations: 3.756 MB / 0.922 GB, free: 15.81 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.006609/1.142, allocations: 5.695 MB / 0.9275 GB, free: 14.95 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001406/1.143, allocations: 1.031 MB / 0.9285 GB, free: 14.59 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005105/1.148, allocations: 2.265 MB / 0.9307 GB, free: 14.04 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002952/1.151, allocations: 1.79 MB / 0.9325 GB, free: 13.48 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0004717/1.152, allocations: 166.7 kB / 0.9327 GB, free: 13.48 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03108/1.183, allocations: 18.75 MB / 0.951 GB, free: 4.375 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.001473/1.184, allocations: 0.7573 MB / 0.9517 GB, free: 3.848 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.002526/1.187, allocations: 1.282 MB / 0.953 GB, free: 2.918 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.01529/1.202, allocations: 6.832 MB / 0.9596 GB, free: 13.32 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/1.202, allocations: 0 / 0.9596 GB, free: 13.32 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.984e-06/1.202, allocations: 4 kB / 0.9596 GB, free: 13.32 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 9.481e-05/1.202, allocations: 0 / 0.9596 GB, free: 13.32 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.01121/1.214, allocations: 4.214 MB / 0.9637 GB, free: 9.449 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/1.214, allocations: 8.031 kB / 0.9638 GB, free: 9.441 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006565/1.214, allocations: 255.1 kB / 0.964 GB, free: 9.191 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001944/1.216, allocations: 1.211 MB / 0.9652 GB, free: 7.996 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.667e-05/1.216, allocations: 145 kB / 0.9653 GB, free: 7.859 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003035/1.217, allocations: 198.5 kB / 0.9655 GB, free: 7.672 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004636/1.221, allocations: 3.094 MB / 0.9685 GB, free: 4.57 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.511e-05/1.221, allocations: 0 / 0.9685 GB, free: 4.57 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001732/1.222, allocations: 77.86 kB / 0.9686 GB, free: 4.5 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002383/1.222, allocations: 185.8 kB / 0.9688 GB, free: 4.32 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004748/1.227, allocations: 3.381 MB / 0.9721 GB, free: 0.9453 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01524/1.242, allocations: 12.34 MB / 0.9841 GB, free: 3.543 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002684/1.245, allocations: 1.651 MB / 0.9857 GB, free: 1.891 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001886/1.247, allocations: 1.418 MB / 0.9871 GB, free: 472 kB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002754/1.249, allocations: 3.846 MB / 0.9909 GB, free: 11.8 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.052e-05/1.249, allocations: 60.55 kB / 0.9909 GB, free: 11.73 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=196): time 4.718e-06/1.249, allocations: 0 / 0.9909 GB, free: 11.73 MB / 0.6856 GB Notification: Performance of matching and sorting (n=200): time 0.01492/1.264, allocations: 8.396 MB / 0.9991 GB, free: 3.133 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.614e-05/1.264, allocations: 103.1 kB / 0.9992 GB, free: 3.016 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001644/1.266, allocations: 1.167 MB / 1 GB, free: 1.84 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0002351/1.266, allocations: 60.28 kB / 1 GB, free: 1.777 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005065/1.267, allocations: 0.7601 MB / 1.001 GB, free: 1.008 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005929/1.267, allocations: 0.6763 MB / 1.002 GB, free: 348 kB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005328/1.268, allocations: 344.7 kB / 1.002 GB, free: 4 kB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001059/1.268, allocations: 309.1 kB / 1.002 GB, free: 15.7 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001525/1.27, allocations: 1.031 MB / 1.003 GB, free: 14.67 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001783/1.271, allocations: 1.155 MB / 1.005 GB, free: 13.5 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003545/1.275, allocations: 2.347 MB / 1.007 GB, free: 11.16 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.132e-06/1.275, allocations: 0 / 1.007 GB, free: 11.16 MB / 0.7012 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.005625/1.281, allocations: 3.04 MB / 1.01 GB, free: 8.129 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.728e-05/1.281, allocations: 11.94 kB / 1.01 GB, free: 8.117 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/1.281, allocations: 0 / 1.01 GB, free: 8.117 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001525/1.282, allocations: 483 kB / 1.01 GB, free: 7.645 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001313/1.284, allocations: 330.6 kB / 1.011 GB, free: 7.336 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007252/1.291, allocations: 5.8 MB / 1.016 GB, free: 1.297 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001743/1.293, allocations: 149.6 kB / 1.016 GB, free: 1.152 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003425/1.293, allocations: 122.8 kB / 1.017 GB, free: 1.035 MB / 0.7012 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.001012/1.294, allocations: 0.491 MB / 1.017 GB, free: 0.5508 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005104/1.294, allocations: 177.9 kB / 1.017 GB, free: 384 kB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007408/1.302, allocations: 4.627 MB / 1.022 GB, free: 11.73 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.7e-05/1.302, allocations: 20 kB / 1.022 GB, free: 11.71 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.351e-05/1.302, allocations: 4 kB / 1.022 GB, free: 11.71 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.206e-05/1.302, allocations: 15.95 kB / 1.022 GB, free: 11.7 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0116/1.314, allocations: 6.218 MB / 1.028 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-05/1.314, allocations: 0 / 1.028 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001136/1.315, allocations: 303.1 kB / 1.028 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00152/1.316, allocations: 0.4906 MB / 1.029 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001855/1.317, allocations: 79.94 kB / 1.029 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007232/1.324, allocations: 5.822 MB / 1.034 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/1.324, allocations: 0 / 1.034 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007638/1.331, allocations: 4.758 MB / 1.039 GB, free: 9.797 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006307/1.332, allocations: 243 kB / 1.039 GB, free: 9.539 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003493/1.332, allocations: 53.59 kB / 1.039 GB, free: 9.492 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001199/1.334, allocations: 143.6 kB / 1.039 GB, free: 9.352 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000336/1.334, allocations: 165.4 kB / 1.04 GB, free: 9.191 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003097/1.334, allocations: 107.9 kB / 1.04 GB, free: 9.086 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001277/1.336, allocations: 0.9393 MB / 1.041 GB, free: 8.145 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/1.336, allocations: 0 / 1.041 GB, free: 8.145 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.00451/1.34, allocations: 1.646 MB / 1.042 GB, free: 6.5 MB / 0.7325 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.004709/1.345, allocations: 1.998 MB / 1.044 GB, free: 4.652 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.005352/1.35, allocations: 3.095 MB / 1.047 GB, free: 1.555 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/1.35, allocations: 0 / 1.047 GB, free: 1.555 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.003225/1.354, allocations: 1.926 MB / 1.049 GB, free: 15.64 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003632/1.357, allocations: 0.7258 MB / 1.05 GB, free: 14.93 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008792/1.366, allocations: 5.632 MB / 1.055 GB, free: 9.262 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001255/1.367, allocations: 1.654 MB / 1.057 GB, free: 7.574 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001101/1.368, allocations: 251.3 kB / 1.057 GB, free: 7.328 MB / 0.7481 GB Notification: Performance of SimCode: time 1.052e-06/1.368, allocations: 0 / 1.057 GB, free: 7.328 MB / 0.7481 GB Notification: Performance of Templates: time 0.3092/1.678, allocations: 72.24 MB / 1.128 GB, free: 413.2 MB / 0.8106 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