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: "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunctionNM,fileNamePrefix="ThermofluidStream_ThermofluidStream_Topology_Tests_TestJunctionNM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunctionNM,fileNamePrefix="ThermofluidStream_ThermofluidStream_Topology_Tests_TestJunctionNM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001265/0.001265, 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.001261/0.001261, allocations: 198.3 kB / 16.14 MB, free: 6.66 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.219/1.219, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.5941/0.5941, allocations: 89.52 MB / 379.5 MB, free: 11.27 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 82.12 kB / 457.7 MB, free: 23.9 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1077, allocations: 67.31 MB / 0.5127 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 0.8468/0.9545, allocations: 365.9 MB / 0.87 GB, free: 0.8984 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.03282/0.9874, allocations: 39.51 MB / 0.9086 GB, free: 240 kB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002405/0.9898, allocations: 27.81 kB / 0.9086 GB, free: 240 kB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.003818/0.9937, allocations: 1.827 MB / 0.9104 GB, free: 232 kB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.01822/1.012, allocations: 7.572 MB / 0.9178 GB, free: 15.99 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.008642/1.021, allocations: 3.758 MB / 0.9214 GB, free: 15.81 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.005787/1.026, allocations: 5.685 MB / 0.927 GB, free: 14.95 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001185/1.028, allocations: 1.038 MB / 0.928 GB, free: 14.59 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004427/1.032, allocations: 2.266 MB / 0.9302 GB, free: 14.04 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001961/1.034, allocations: 1.782 MB / 0.9319 GB, free: 13.49 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0002553/1.034, allocations: 165.6 kB / 0.9321 GB, free: 13.49 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02853/1.063, allocations: 18.76 MB / 0.9504 GB, free: 4.398 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0009964/1.064, allocations: 0.7593 MB / 0.9512 GB, free: 3.867 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.00173/1.066, allocations: 1.285 MB / 0.9524 GB, free: 2.934 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.01908/1.085, allocations: 10.39 MB / 0.9626 GB, free: 10.61 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/1.085, allocations: 0 / 0.9626 GB, free: 10.61 MB / 0.6544 GB Notification: Performance of FrontEnd: time 8.91e-07/1.085, allocations: 4 kB / 0.9626 GB, free: 10.61 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.744e-05/1.085, allocations: 0 / 0.9626 GB, free: 10.61 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.007733/1.092, allocations: 4.208 MB / 0.9667 GB, free: 6.371 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/1.093, allocations: 8.031 kB / 0.9667 GB, free: 6.363 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000311/1.093, allocations: 284.5 kB / 0.967 GB, free: 6.082 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004284/1.093, allocations: 255.1 kB / 0.9672 GB, free: 5.832 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001534/1.095, allocations: 1.205 MB / 0.9684 GB, free: 4.645 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.291e-05/1.095, allocations: 145.1 kB / 0.9685 GB, free: 4.512 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002596/1.095, allocations: 205.2 kB / 0.9687 GB, free: 4.316 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003869/1.099, allocations: 3.087 MB / 0.9717 GB, free: 1.219 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.087e-05/1.099, allocations: 3.938 kB / 0.9717 GB, free: 1.215 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001531/1.099, allocations: 79.34 kB / 0.9718 GB, free: 1.145 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001942/1.099, allocations: 186.6 kB / 0.972 GB, free: 0.9648 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004093/1.104, allocations: 3.387 MB / 0.9753 GB, free: 13.58 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01159/1.115, allocations: 12.33 MB / 0.9873 GB, free: 196 kB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002251/1.117, allocations: 1.66 MB / 0.989 GB, free: 14.53 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001691/1.119, allocations: 1.418 MB / 0.9903 GB, free: 13.11 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002389/1.122, allocations: 3.853 MB / 0.9941 GB, free: 8.441 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.158e-05/1.122, allocations: 48.56 kB / 0.9941 GB, free: 8.387 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=196): time 3.727e-06/1.122, allocations: 4 kB / 0.9942 GB, free: 8.383 MB / 0.6856 GB Notification: Performance of matching and sorting (n=200): time 0.01226/1.134, allocations: 8.4 MB / 1.002 GB, free: 15.77 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.589e-05/1.134, allocations: 101.9 kB / 1.002 GB, free: 15.66 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001287/1.135, allocations: 1.163 MB / 1.004 GB, free: 14.49 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0001151/1.135, allocations: 60.91 kB / 1.004 GB, free: 14.43 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004424/1.136, allocations: 0.7641 MB / 1.004 GB, free: 13.65 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004375/1.136, allocations: 0.671 MB / 1.005 GB, free: 12.99 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005111/1.137, allocations: 346.9 kB / 1.005 GB, free: 12.65 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 7.796e-05/1.137, allocations: 305.1 kB / 1.006 GB, free: 12.35 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001354/1.138, allocations: 1.031 MB / 1.007 GB, free: 11.32 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001504/1.14, allocations: 1.155 MB / 1.008 GB, free: 10.15 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003069/1.143, allocations: 2.351 MB / 1.01 GB, free: 7.801 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/1.143, allocations: 0 / 1.01 GB, free: 7.801 MB / 0.7012 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.004387/1.147, allocations: 3.039 MB / 1.013 GB, free: 4.773 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/1.147, allocations: 11.98 kB / 1.013 GB, free: 4.762 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/1.147, allocations: 4 kB / 1.013 GB, free: 4.758 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001194/1.148, allocations: 468.3 kB / 1.014 GB, free: 4.297 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00106/1.149, allocations: 334.8 kB / 1.014 GB, free: 3.984 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006267/1.156, allocations: 5.812 MB / 1.02 GB, free: 13.94 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009274/1.157, allocations: 146.2 kB / 1.02 GB, free: 13.8 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002178/1.157, allocations: 115.9 kB / 1.02 GB, free: 13.68 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.000705/1.158, allocations: 0.5092 MB / 1.02 GB, free: 13.18 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003354/1.158, allocations: 165.9 kB / 1.02 GB, free: 13.02 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00645/1.164, allocations: 4.629 MB / 1.025 GB, free: 8.367 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.513e-05/1.164, allocations: 24 kB / 1.025 GB, free: 8.344 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/1.164, allocations: 4 kB / 1.025 GB, free: 8.34 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.576e-05/1.165, allocations: 7.969 kB / 1.025 GB, free: 8.332 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008473/1.173, allocations: 6.216 MB / 1.031 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.724e-06/1.173, allocations: 0 / 1.031 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000958/1.174, allocations: 307.6 kB / 1.031 GB, free: 1.832 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001197/1.175, allocations: 0.4964 MB / 1.032 GB, free: 1.332 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001461/1.175, allocations: 79.94 kB / 1.032 GB, free: 1.254 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00623/1.182, allocations: 5.833 MB / 1.038 GB, free: 11.19 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/1.182, allocations: 0 / 1.038 GB, free: 11.19 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006169/1.188, allocations: 4.755 MB / 1.042 GB, free: 6.426 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002728/1.188, allocations: 239 kB / 1.042 GB, free: 6.172 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002754/1.188, allocations: 50.69 kB / 1.043 GB, free: 6.125 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009962/1.189, allocations: 143.5 kB / 1.043 GB, free: 5.988 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002779/1.19, allocations: 165 kB / 1.043 GB, free: 5.828 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001886/1.19, allocations: 107.9 kB / 1.043 GB, free: 5.723 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001082/1.191, allocations: 0.9354 MB / 1.044 GB, free: 4.785 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/1.191, allocations: 4 kB / 1.044 GB, free: 4.781 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.003549/1.194, allocations: 1.646 MB / 1.045 GB, free: 3.137 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.01002/1.204, allocations: 7.304 MB / 1.053 GB, free: 11.96 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.004154/1.209, allocations: 3.091 MB / 1.056 GB, free: 8.875 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/1.209, allocations: 0 / 1.056 GB, free: 8.875 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.002616/1.211, allocations: 1.916 MB / 1.057 GB, free: 6.965 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00281/1.214, allocations: 0.7286 MB / 1.058 GB, free: 6.25 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02593/1.24, allocations: 21.21 MB / 1.079 GB, free: 200 kB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001133/1.241, allocations: 1.654 MB / 1.081 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.002133/1.243, allocations: 1.253 MB / 1.082 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001187/1.245, allocations: 0.9132 MB / 1.083 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of SimCode: time 3.91e-07/1.245, allocations: 0 / 1.083 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 6.521/7.766, allocations: 86.56 MB / 1.167 GB, free: 401.4 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001759/7.766, allocations: 275.7 kB / 1.167 GB, free: 401.1 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.448/12.21, allocations: 3.125 kB / 1.167 GB, free: 401.1 MB / 0.8106 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Topology_Tests_TestJunctionNM_fmu --startTime=0 --stopTime=1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Topology_Tests_TestJunctionNM.fmu > 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