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.001083/0.001086, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.006421/0.006421, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.24/1.24, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.5875/0.5875, allocations: 89.65 MB / 381.1 MB, free: 11.34 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003719/0.000372, allocations: 8.969 kB / 460.7 MB, free: 24.1 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1099, allocations: 68.83 MB / 0.5172 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 0.8575/0.9675, allocations: 360.5 MB / 0.8692 GB, free: 1.203 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.03187/0.9994, allocations: 38.91 MB / 0.9072 GB, free: 0.6875 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002182/1.002, allocations: 27.78 kB / 0.9072 GB, free: 0.6875 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.004141/1.006, allocations: 1.837 MB / 0.909 GB, free: 0.668 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0191/1.025, allocations: 7.585 MB / 0.9164 GB, free: 15.14 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.01065/1.036, allocations: 3.749 MB / 0.9201 GB, free: 14.12 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.005997/1.042, allocations: 5.688 MB / 0.9256 GB, free: 13.04 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001465/1.043, allocations: 1.018 MB / 0.9266 GB, free: 12.68 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004406/1.047, allocations: 2.111 MB / 0.9287 GB, free: 12.33 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00247/1.05, allocations: 1.597 MB / 0.9302 GB, free: 12.05 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0004325/1.05, allocations: 93 kB / 0.9303 GB, free: 12.05 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03084/1.081, allocations: 18.68 MB / 0.9486 GB, free: 0.6719 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.001182/1.082, allocations: 0.6546 MB / 0.9492 GB, free: 52 kB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.002311/1.085, allocations: 1.187 MB / 0.9504 GB, free: 14.88 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.02568/1.111, allocations: 10.29 MB / 0.9604 GB, free: 5.508 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/1.111, allocations: 3 kB / 0.9604 GB, free: 5.508 MB / 0.6387 GB Notification: Performance of FrontEnd: time 2.234e-06/1.111, allocations: 0 / 0.9604 GB, free: 5.508 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.0001135/1.111, allocations: 0 / 0.9604 GB, free: 5.508 MB / 0.6387 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.009687/1.12, allocations: 3.775 MB / 0.9641 GB, free: 1.695 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/1.12, allocations: 12.03 kB / 0.9641 GB, free: 1.684 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006128/1.121, allocations: 281.5 kB / 0.9644 GB, free: 1.406 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000597/1.122, allocations: 252.9 kB / 0.9646 GB, free: 1.156 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001959/1.124, allocations: 1.211 MB / 0.9658 GB, free: 15.96 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.859e-05/1.124, allocations: 139.6 kB / 0.9659 GB, free: 15.83 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003354/1.124, allocations: 203 kB / 0.9661 GB, free: 15.64 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004532/1.129, allocations: 3.098 MB / 0.9692 GB, free: 12.54 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.721e-05/1.129, allocations: 0 / 0.9692 GB, free: 12.54 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001697/1.129, allocations: 79.05 kB / 0.9692 GB, free: 12.46 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002308/1.129, allocations: 191 kB / 0.9694 GB, free: 12.28 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004542/1.134, allocations: 3.38 MB / 0.9727 GB, free: 8.902 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01362/1.147, allocations: 12.36 MB / 0.9848 GB, free: 11.48 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002368/1.15, allocations: 1.647 MB / 0.9864 GB, free: 9.824 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001843/1.152, allocations: 1.426 MB / 0.9878 GB, free: 8.391 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002574/1.154, allocations: 3.85 MB / 0.9915 GB, free: 3.727 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.632e-05/1.154, allocations: 56.5 kB / 0.9916 GB, free: 3.664 MB / 0.67 GB Notification: Performance of pre-optimization done (n=196): time 5.671e-06/1.154, allocations: 0 / 0.9916 GB, free: 3.664 MB / 0.67 GB Notification: Performance of matching and sorting (n=200): time 0.01291/1.167, allocations: 8.398 MB / 0.9998 GB, free: 11.06 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.982e-05/1.167, allocations: 99.11 kB / 0.9999 GB, free: 10.94 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001437/1.169, allocations: 1.167 MB / 1.001 GB, free: 9.766 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0001334/1.169, allocations: 61.38 kB / 1.001 GB, free: 9.703 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004886/1.169, allocations: 0.7602 MB / 1.002 GB, free: 8.934 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004957/1.17, allocations: 0.6736 MB / 1.002 GB, free: 8.266 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002121/1.17, allocations: 137.2 kB / 1.003 GB, free: 8.129 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 8.98e-05/1.17, allocations: 305.1 kB / 1.003 GB, free: 7.828 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001454/1.172, allocations: 1.034 MB / 1.004 GB, free: 6.797 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001577/1.173, allocations: 1.151 MB / 1.005 GB, free: 5.641 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003205/1.176, allocations: 2.352 MB / 1.007 GB, free: 3.285 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/1.176, allocations: 0 / 1.007 GB, free: 3.285 MB / 0.6856 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.004675/1.181, allocations: 3.04 MB / 1.01 GB, free: 264 kB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/1.181, allocations: 4 kB / 1.01 GB, free: 260 kB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/1.181, allocations: 11.94 kB / 1.01 GB, free: 248 kB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001329/1.182, allocations: 470.9 kB / 1.011 GB, free: 15.78 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001119/1.184, allocations: 337.1 kB / 1.011 GB, free: 15.47 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006923/1.191, allocations: 5.824 MB / 1.017 GB, free: 9.406 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001355/1.192, allocations: 135.8 kB / 1.017 GB, free: 9.273 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002496/1.192, allocations: 127.4 kB / 1.017 GB, free: 9.152 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.0008836/1.193, allocations: 0.5022 MB / 1.018 GB, free: 8.66 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002985/1.193, allocations: 165.9 kB / 1.018 GB, free: 8.496 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007233/1.201, allocations: 4.635 MB / 1.022 GB, free: 3.836 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.572e-05/1.201, allocations: 20 kB / 1.022 GB, free: 3.816 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.214e-05/1.201, allocations: 12 kB / 1.022 GB, free: 3.805 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.022e-05/1.201, allocations: 15.91 kB / 1.022 GB, free: 3.789 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009554/1.21, allocations: 6.218 MB / 1.028 GB, free: 13.57 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.087e-05/1.21, allocations: 8.031 kB / 1.028 GB, free: 13.56 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001034/1.211, allocations: 302.3 kB / 1.029 GB, free: 13.28 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001379/1.213, allocations: 494.6 kB / 1.029 GB, free: 12.79 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001573/1.213, allocations: 79.78 kB / 1.029 GB, free: 12.72 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007088/1.22, allocations: 5.838 MB / 1.035 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/1.22, allocations: 4 kB / 1.035 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006753/1.227, allocations: 4.759 MB / 1.04 GB, free: 1.867 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005585/1.227, allocations: 286.8 kB / 1.04 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002615/1.228, allocations: 40 kB / 1.04 GB, free: 1.527 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001096/1.229, allocations: 135.7 kB / 1.04 GB, free: 1.395 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002979/1.229, allocations: 175.6 kB / 1.04 GB, free: 1.23 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002139/1.229, allocations: 108.2 kB / 1.04 GB, free: 1.125 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.001236/1.23, allocations: 0.9315 MB / 1.041 GB, free: 196 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/1.23, allocations: 0 / 1.041 GB, free: 196 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.004362/1.235, allocations: 1.649 MB / 1.043 GB, free: 14.54 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.01184/1.247, allocations: 7.333 MB / 1.05 GB, free: 7.34 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.004875/1.252, allocations: 3.106 MB / 1.053 GB, free: 4.234 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/1.252, allocations: 0 / 1.053 GB, free: 4.234 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.002941/1.255, allocations: 1.918 MB / 1.055 GB, free: 2.324 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00383/1.258, allocations: 0.7316 MB / 1.056 GB, free: 1.609 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02939/1.288, allocations: 21.36 MB / 1.076 GB, free: 11.39 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001202/1.289, allocations: 1.654 MB / 1.078 GB, free: 9.703 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.002447/1.292, allocations: 1.254 MB / 1.079 GB, free: 8.465 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001223/1.293, allocations: 0.9131 MB / 1.08 GB, free: 7.551 MB / 0.7637 GB Notification: Performance of SimCode: time 5.51e-07/1.293, allocations: 0 / 1.08 GB, free: 7.551 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.603/3.896, allocations: 85.64 MB / 1.164 GB, free: 322.5 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002046/3.896, allocations: 268.1 kB / 1.164 GB, free: 322.1 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.261/9.157, allocations: 0 / 1.164 GB, free: 322.1 MB / 0.7637 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