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.001277/0.001277, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 193.8 kB / 16.53 MB, free: 6.664 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.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6694/0.6694, allocations: 91.2 MB / 381.6 MB, free: 9.375 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001458, allocations: 79.97 kB / 460.3 MB, free: 23.21 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1175, allocations: 67.7 MB / 0.5156 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 1.001/1.118, allocations: 362.1 MB / 0.8692 GB, free: 0.543 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.0353/1.154, allocations: 38.63 MB / 0.9069 GB, free: 80 kB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002094/1.156, allocations: 72.06 kB / 0.907 GB, free: 80 kB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.004564/1.16, allocations: 1.978 MB / 0.9089 GB, free: 68 kB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.02166/1.182, allocations: 8.649 MB / 0.9174 GB, free: 15.76 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.01159/1.194, allocations: 4.214 MB / 0.9215 GB, free: 15.58 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.009384/1.203, allocations: 3.901 MB / 0.9253 GB, free: 15.29 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001974/1.205, allocations: 1.186 MB / 0.9264 GB, free: 14.93 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006113/1.211, allocations: 2.535 MB / 0.9289 GB, free: 14.32 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002708/1.214, allocations: 1.764 MB / 0.9306 GB, free: 13.76 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0003941/1.214, allocations: 243.7 kB / 0.9309 GB, free: 13.76 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03156/1.246, allocations: 16.47 MB / 0.947 GB, free: 6.027 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.001524/1.247, allocations: 0.8593 MB / 0.9478 GB, free: 5.477 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.002401/1.25, allocations: 1.431 MB / 0.9492 GB, free: 4.48 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.02907/1.279, allocations: 9.893 MB / 0.9589 GB, free: 11.67 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 8.175e-06/1.279, allocations: 0 / 0.9589 GB, free: 11.67 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.074e-06/1.279, allocations: 0 / 0.9589 GB, free: 11.67 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.757e-05/1.279, allocations: 0 / 0.9589 GB, free: 11.67 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.01086/1.29, allocations: 4.477 MB / 0.9632 GB, free: 7.191 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/1.29, allocations: 12.03 kB / 0.9632 GB, free: 7.18 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006134/1.291, allocations: 286.4 kB / 0.9635 GB, free: 6.898 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002351/1.293, allocations: 1.527 MB / 0.965 GB, free: 5.41 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.341e-05/1.293, allocations: 141.5 kB / 0.9651 GB, free: 5.277 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002906/1.293, allocations: 201.5 kB / 0.9653 GB, free: 5.086 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004246/1.298, allocations: 3.09 MB / 0.9683 GB, free: 1.988 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.478e-05/1.298, allocations: 0 / 0.9683 GB, free: 1.988 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001728/1.298, allocations: 74.41 kB / 0.9684 GB, free: 1.922 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002133/1.298, allocations: 183.9 kB / 0.9686 GB, free: 1.742 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004457/1.302, allocations: 3.387 MB / 0.9719 GB, free: 14.36 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01452/1.317, allocations: 12.49 MB / 0.9841 GB, free: 0.793 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002769/1.32, allocations: 1.646 MB / 0.9857 GB, free: 15.15 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001853/1.322, allocations: 1.43 MB / 0.9871 GB, free: 13.72 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002601/1.324, allocations: 3.844 MB / 0.9909 GB, free: 9.062 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.384e-05/1.324, allocations: 59.75 kB / 0.9909 GB, free: 9 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=196): time 5.49e-06/1.324, allocations: 0 / 0.9909 GB, free: 9 MB / 0.6856 GB Notification: Performance of matching and sorting (n=200): time 0.01401/1.338, allocations: 8.524 MB / 0.9992 GB, free: 272 kB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.533e-05/1.338, allocations: 101.1 kB / 0.9993 GB, free: 156 kB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001741/1.34, allocations: 1.427 MB / 1.001 GB, free: 14.72 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.000148/1.34, allocations: 61.53 kB / 1.001 GB, free: 14.66 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005713/1.341, allocations: 0.8912 MB / 1.002 GB, free: 13.76 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005052/1.341, allocations: 0.6739 MB / 1.002 GB, free: 13.09 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005238/1.342, allocations: 348.9 kB / 1.003 GB, free: 12.75 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 9.29e-05/1.342, allocations: 305.1 kB / 1.003 GB, free: 12.45 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001462/1.344, allocations: 1.031 MB / 1.004 GB, free: 11.42 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001638/1.345, allocations: 1.159 MB / 1.005 GB, free: 10.25 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003351/1.349, allocations: 2.35 MB / 1.007 GB, free: 7.895 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/1.349, allocations: 0 / 1.007 GB, free: 7.895 MB / 0.7012 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.005297/1.354, allocations: 3.069 MB / 1.01 GB, free: 4.84 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.508e-05/1.354, allocations: 8 kB / 1.01 GB, free: 4.832 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/1.354, allocations: 0 / 1.01 GB, free: 4.832 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001492/1.355, allocations: 479.6 kB / 1.011 GB, free: 4.363 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001191/1.357, allocations: 332.3 kB / 1.011 GB, free: 4.051 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007668/1.364, allocations: 6.357 MB / 1.017 GB, free: 13.45 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001264/1.366, allocations: 46 kB / 1.017 GB, free: 13.41 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000308/1.366, allocations: 115.9 kB / 1.018 GB, free: 13.29 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.001029/1.367, allocations: 0.5247 MB / 1.018 GB, free: 12.78 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006138/1.368, allocations: 197.6 kB / 1.018 GB, free: 12.58 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007253/1.375, allocations: 4.653 MB / 1.023 GB, free: 7.906 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.267e-05/1.375, allocations: 24 kB / 1.023 GB, free: 7.883 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.189e-05/1.375, allocations: 4 kB / 1.023 GB, free: 7.879 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.302e-05/1.375, allocations: 15.89 kB / 1.023 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01003/1.385, allocations: 6.3 MB / 1.029 GB, free: 1.574 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.436e-06/1.385, allocations: 0 / 1.029 GB, free: 1.574 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001051/1.386, allocations: 303.3 kB / 1.029 GB, free: 1.293 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001397/1.388, allocations: 0.4922 MB / 1.03 GB, free: 0.7969 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001602/1.388, allocations: 87.84 kB / 1.03 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00729/1.395, allocations: 6.356 MB / 1.036 GB, free: 10.12 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/1.395, allocations: 9.969 kB / 1.036 GB, free: 10.11 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00731/1.402, allocations: 4.777 MB / 1.041 GB, free: 5.316 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006482/1.403, allocations: 274.5 kB / 1.041 GB, free: 5.027 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005101/1.404, allocations: 48.17 kB / 1.041 GB, free: 4.98 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001114/1.405, allocations: 51.42 kB / 1.041 GB, free: 4.934 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000337/1.405, allocations: 165 kB / 1.041 GB, free: 4.773 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000252/1.405, allocations: 111.9 kB / 1.041 GB, free: 4.664 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001598/1.407, allocations: 1.099 MB / 1.042 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.71e-07/1.407, allocations: 0 / 1.042 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.004465/1.411, allocations: 1.653 MB / 1.044 GB, free: 1.922 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.004699/1.416, allocations: 1.998 MB / 1.046 GB, free: 76 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.006345/1.422, allocations: 3.553 MB / 1.049 GB, free: 12.53 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/1.422, allocations: 4 kB / 1.049 GB, free: 12.53 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.003015/1.425, allocations: 1.915 MB / 1.051 GB, free: 10.63 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003843/1.429, allocations: 0.8021 MB / 1.052 GB, free: 9.848 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008598/1.438, allocations: 5.032 MB / 1.057 GB, free: 4.789 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001645/1.44, allocations: 1.754 MB / 1.059 GB, free: 2.996 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.00314/1.443, allocations: 1.282 MB / 1.06 GB, free: 1.73 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009352/1.444, allocations: 243.3 kB / 1.06 GB, free: 1.496 MB / 0.7481 GB Notification: Performance of SimCode: time 6.82e-07/1.444, allocations: 0 / 1.06 GB, free: 1.496 MB / 0.7481 GB Notification: Performance of Templates: time 0.3558/1.8, allocations: 69.68 MB / 1.128 GB, free: 413.6 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches