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.001122/0.001126, 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.001164/0.001164, allocations: 194.2 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.376/1.376, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6954/0.6954, allocations: 91.2 MB / 381.6 MB, free: 9.426 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001459, allocations: 77.84 kB / 460.4 MB, free: 23.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1142, allocations: 67.69 MB / 0.5157 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 1.025/1.139, allocations: 362.1 MB / 0.8693 GB, free: 0.5508 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.04292/1.182, allocations: 38.63 MB / 0.907 GB, free: 100 kB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003437/1.186, allocations: 70.88 kB / 0.9071 GB, free: 100 kB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.00541/1.191, allocations: 1.975 MB / 0.909 GB, free: 88 kB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.0259/1.217, allocations: 8.649 MB / 0.9175 GB, free: 15.78 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.01104/1.228, allocations: 4.224 MB / 0.9216 GB, free: 15.59 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.005813/1.234, allocations: 3.898 MB / 0.9254 GB, free: 15.32 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002266/1.236, allocations: 1.187 MB / 0.9266 GB, free: 14.95 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00659/1.243, allocations: 2.522 MB / 0.929 GB, free: 14.35 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003522/1.246, allocations: 1.77 MB / 0.9307 GB, free: 13.78 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.001035/1.247, allocations: 243.1 kB / 0.931 GB, free: 13.78 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03388/1.281, allocations: 16.48 MB / 0.9471 GB, free: 6.074 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.001563/1.283, allocations: 0.8484 MB / 0.9479 GB, free: 5.531 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.003257/1.286, allocations: 1.434 MB / 0.9493 GB, free: 4.539 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.02494/1.311, allocations: 9.882 MB / 0.9589 GB, free: 11.73 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/1.311, allocations: 0 / 0.9589 GB, free: 11.73 MB / 0.6544 GB Notification: Performance of FrontEnd: time 3.717e-06/1.311, allocations: 0 / 0.9589 GB, free: 11.73 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 0.0001252/1.311, allocations: 6.938 kB / 0.959 GB, free: 11.72 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.01157/1.323, allocations: 4.481 MB / 0.9633 GB, free: 7.242 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/1.323, allocations: 8.031 kB / 0.9633 GB, free: 7.234 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006554/1.324, allocations: 287 kB / 0.9636 GB, free: 6.953 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009808/1.325, allocations: 288.5 kB / 0.9639 GB, free: 6.668 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003337/1.328, allocations: 1.527 MB / 0.9654 GB, free: 5.18 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001301/1.328, allocations: 142.5 kB / 0.9655 GB, free: 5.047 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004697/1.329, allocations: 195.7 kB / 0.9657 GB, free: 4.859 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005922/1.335, allocations: 3.09 MB / 0.9687 GB, free: 1.762 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.187e-05/1.335, allocations: 3.938 kB / 0.9687 GB, free: 1.758 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002874/1.335, allocations: 78.25 kB / 0.9688 GB, free: 1.688 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002884/1.335, allocations: 183.9 kB / 0.969 GB, free: 1.508 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00552/1.341, allocations: 3.386 MB / 0.9723 GB, free: 14.13 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01869/1.36, allocations: 12.49 MB / 0.9845 GB, free: 0.5586 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002964/1.363, allocations: 1.651 MB / 0.9861 GB, free: 14.9 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00204/1.365, allocations: 1.422 MB / 0.9875 GB, free: 13.48 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00272/1.367, allocations: 3.849 MB / 0.9912 GB, free: 8.82 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.048e-05/1.367, allocations: 51.47 kB / 0.9913 GB, free: 8.766 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=196): time 6.583e-06/1.367, allocations: 0 / 0.9913 GB, free: 8.766 MB / 0.6856 GB Notification: Performance of matching and sorting (n=200): time 0.01567/1.383, allocations: 8.531 MB / 0.9996 GB, free: 24 kB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.221e-05/1.383, allocations: 102.1 kB / 0.9997 GB, free: 15.91 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002053/1.385, allocations: 1.426 MB / 1.001 GB, free: 14.48 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0002015/1.385, allocations: 57.7 kB / 1.001 GB, free: 14.42 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006638/1.386, allocations: 0.8873 MB / 1.002 GB, free: 13.52 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.000668/1.387, allocations: 0.6754 MB / 1.003 GB, free: 12.85 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000645/1.387, allocations: 340.5 kB / 1.003 GB, free: 12.52 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001045/1.388, allocations: 305.1 kB / 1.003 GB, free: 12.22 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001609/1.389, allocations: 1.035 MB / 1.004 GB, free: 11.18 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001771/1.391, allocations: 1.155 MB / 1.005 GB, free: 10.02 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003562/1.395, allocations: 2.351 MB / 1.008 GB, free: 7.664 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.346e-06/1.395, allocations: 0 / 1.008 GB, free: 7.664 MB / 0.7012 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.005506/1.4, allocations: 3.072 MB / 1.011 GB, free: 4.605 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.15e-05/1.4, allocations: 4 kB / 1.011 GB, free: 4.602 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/1.4, allocations: 0 / 1.011 GB, free: 4.602 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001453/1.402, allocations: 480.5 kB / 1.011 GB, free: 4.129 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001229/1.403, allocations: 339.3 kB / 1.012 GB, free: 3.812 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007797/1.411, allocations: 6.353 MB / 1.018 GB, free: 13.22 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001408/1.412, allocations: 44.05 kB / 1.018 GB, free: 13.18 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004799/1.413, allocations: 119.5 kB / 1.018 GB, free: 13.06 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.00125/1.414, allocations: 0.5182 MB / 1.018 GB, free: 12.55 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008424/1.415, allocations: 205.4 kB / 1.019 GB, free: 12.35 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00842/1.423, allocations: 4.649 MB / 1.023 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.636e-05/1.423, allocations: 23.94 kB / 1.023 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.503e-05/1.423, allocations: 11.94 kB / 1.023 GB, free: 7.641 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.441e-05/1.423, allocations: 11.95 kB / 1.023 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01111/1.434, allocations: 6.296 MB / 1.029 GB, free: 1.344 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.308e-05/1.434, allocations: 4 kB / 1.029 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001093/1.436, allocations: 310.4 kB / 1.03 GB, free: 1.051 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001482/1.437, allocations: 500 kB / 1.03 GB, free: 0.5586 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002517/1.437, allocations: 79.94 kB / 1.03 GB, free: 492 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007646/1.445, allocations: 6.36 MB / 1.036 GB, free: 9.883 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.099e-06/1.445, allocations: 4 kB / 1.036 GB, free: 9.879 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007966/1.453, allocations: 4.786 MB / 1.041 GB, free: 5.078 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006993/1.454, allocations: 270.5 kB / 1.041 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005255/1.454, allocations: 50.59 kB / 1.041 GB, free: 4.746 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001144/1.455, allocations: 43.98 kB / 1.041 GB, free: 4.703 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000362/1.456, allocations: 169 kB / 1.042 GB, free: 4.543 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002916/1.456, allocations: 115.9 kB / 1.042 GB, free: 4.43 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.00173/1.458, allocations: 1.099 MB / 1.043 GB, free: 3.34 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/1.458, allocations: 0 / 1.043 GB, free: 3.34 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.005186/1.463, allocations: 1.65 MB / 1.044 GB, free: 1.691 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.0137/1.477, allocations: 7.332 MB / 1.052 GB, free: 10.5 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.006902/1.484, allocations: 3.551 MB / 1.055 GB, free: 6.949 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/1.484, allocations: 4 kB / 1.055 GB, free: 6.945 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.003617/1.487, allocations: 1.915 MB / 1.057 GB, free: 5.039 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004012/1.491, allocations: 0.8109 MB / 1.058 GB, free: 4.25 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03396/1.525, allocations: 22.02 MB / 1.079 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001802/1.527, allocations: 1.754 MB / 1.081 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.002909/1.53, allocations: 1.284 MB / 1.082 GB, free: 9.98 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001548/1.532, allocations: 1.042 MB / 1.083 GB, free: 8.941 MB / 0.7794 GB Notification: Performance of SimCode: time 6.42e-07/1.532, allocations: 0 / 1.083 GB, free: 8.941 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4103/1.942, allocations: 91.64 MB / 1.173 GB, free: 396.5 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.88/14.82, allocations: 7.875 kB / 1.173 GB, free: 396.5 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 & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM_res.csv --start-time 0 --stop-time 1 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ThermofluidStream_ThermofluidStream_Topology_Tests_TestJunctionNM.fmu > ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM_res.csv","/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