Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction.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.Undirected.Topology.Tests.TestJunction,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_Topology_Tests_TestJunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Topology.Tests.TestJunction,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_Topology_Tests_TestJunction",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.009178/0.009177, allocations: 99.58 kB / 15.73 MB, free: 6.039 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.00197/0.00197, allocations: 192.1 kB / 16.67 MB, free: 5.961 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.608/1.608, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8816/0.8816, allocations: 93.69 MB / 384.2 MB, free: 5.27 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002441/0.002442, allocations: 83.86 kB / 0.52 GB, free: 1.082 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4189/0.4214, allocations: 68.26 MB / 0.5866 GB, free: 10.23 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Topology.Tests.TestJunction): time 0.7385/1.16, allocations: 236 MB / 0.8171 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.05347/1.213, allocations: 36.67 MB / 0.8529 GB, free: 15.96 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005125/1.219, allocations: 112.8 kB / 0.853 GB, free: 15.89 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.006748/1.225, allocations: 1.844 MB / 0.8548 GB, free: 14.53 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.01347/1.239, allocations: 3.057 MB / 0.8578 GB, free: 12.31 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0133/1.252, allocations: 2.729 MB / 0.8605 GB, free: 9.957 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.01276/1.265, allocations: 5.076 MB / 0.8654 GB, free: 5.266 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003103/1.268, allocations: 1.105 MB / 0.8665 GB, free: 4.113 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006958/1.275, allocations: 2.152 MB / 0.8686 GB, free: 1.953 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006295/1.282, allocations: 2.667 MB / 0.8712 GB, free: 15.28 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.001712/1.283, allocations: 308 kB / 0.8715 GB, free: 14.98 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0154/1.299, allocations: 4.492 MB / 0.8759 GB, free: 10.48 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.001537/1.3, allocations: 0.7628 MB / 0.8766 GB, free: 9.711 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.004516/1.305, allocations: 1.722 MB / 0.8783 GB, free: 7.98 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.01703/1.322, allocations: 5.637 MB / 0.8838 GB, free: 2.324 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/1.322, allocations: 4 kB / 0.8838 GB, free: 2.32 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.623e-06/1.322, allocations: 0 / 0.8838 GB, free: 2.32 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 0.0001397/1.322, allocations: 0 / 0.8838 GB, free: 2.32 MB / 0.6231 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 572 * Number of variables: 572 Notification: Performance of Generate backend data structure: time 0.01122/1.333, allocations: 4.167 MB / 0.8879 GB, free: 14.07 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 9.925e-05/1.333, allocations: 12.03 kB / 0.8879 GB, free: 14.06 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004343/1.334, allocations: 312.5 kB / 0.8882 GB, free: 13.75 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009309/1.335, allocations: 369.7 kB / 0.8886 GB, free: 13.38 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004345/1.339, allocations: 2.077 MB / 0.8906 GB, free: 11.23 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002054/1.339, allocations: 168.5 kB / 0.8908 GB, free: 11.07 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003689/1.34, allocations: 243.9 kB / 0.891 GB, free: 10.83 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005185/1.345, allocations: 2.813 MB / 0.8937 GB, free: 7.93 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.41e-05/1.345, allocations: 4 kB / 0.8937 GB, free: 7.926 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002036/1.345, allocations: 92 kB / 0.8938 GB, free: 7.836 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.487e-05/1.345, allocations: 65 kB / 0.8939 GB, free: 7.773 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00488/1.35, allocations: 2.8 MB / 0.8966 GB, free: 4.973 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01824/1.369, allocations: 12.04 MB / 0.9084 GB, free: 7.871 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004388/1.373, allocations: 2.305 MB / 0.9106 GB, free: 5.531 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002206/1.375, allocations: 1.337 MB / 0.9119 GB, free: 4.188 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01333/1.389, allocations: 8.714 MB / 0.9205 GB, free: 10.43 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.608e-05/1.389, allocations: 68.05 kB / 0.9205 GB, free: 10.36 MB / 0.67 GB Notification: Performance of pre-optimization done (n=225): time 4.167e-06/1.389, allocations: 0 / 0.9205 GB, free: 10.36 MB / 0.67 GB Notification: Performance of matching and sorting (n=229): time 0.02029/1.409, allocations: 9.502 MB / 0.9298 GB, free: 0.5 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001379/1.409, allocations: 162 kB / 0.93 GB, free: 312 kB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003122/1.412, allocations: 1.846 MB / 0.9318 GB, free: 14.43 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 0.0002183/1.413, allocations: 61.7 kB / 0.9318 GB, free: 14.37 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.001196/1.414, allocations: 1.165 MB / 0.933 GB, free: 13.19 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009558/1.415, allocations: 0.8094 MB / 0.9337 GB, free: 12.38 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006465/1.415, allocations: 375.7 kB / 0.9341 GB, free: 12 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001563/1.416, allocations: 301.1 kB / 0.9344 GB, free: 11.7 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001741/1.417, allocations: 0.8943 MB / 0.9353 GB, free: 10.8 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002344/1.42, allocations: 1.204 MB / 0.9364 GB, free: 9.492 MB / 0.6856 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: flowResistance4.m_flow = flowResistance4.m_flow_0 (flowResistance7.m_flow_0 - flowResistance5.m_flow_0 = flowResistance4.m_flow_0) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: flowResistance10.m_flow = flowResistance10.m_flow_0 (flowResistance6.m_flow_0 - flowResistance11.m_flow_0 = flowResistance10.m_flow_0) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: flowResistance8.m_flow = flowResistance8.m_flow_0 (flowResistance3.m_flow_0 - flowResistance9.m_flow_0 = flowResistance8.m_flow_0) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: flowResistance.m_flow = flowResistance.m_flow_0 (flowResistance2.m_flow_0 - flowResistance1.m_flow_0 = flowResistance.m_flow_0) Notification: Performance of analyzeInitialSystem (initialization): time 0.05394/1.474, allocations: 11.43 MB / 0.9476 GB, free: 13.89 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.589e-05/1.474, allocations: 4 kB / 0.9476 GB, free: 13.89 MB / 0.7012 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.007452/1.481, allocations: 3.278 MB / 0.9508 GB, free: 10.58 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.744e-05/1.481, allocations: 8 kB / 0.9508 GB, free: 10.57 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.719e-05/1.481, allocations: 8 kB / 0.9508 GB, free: 10.57 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00284/1.484, allocations: 0.8465 MB / 0.9516 GB, free: 9.707 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001472/1.485, allocations: 375.5 kB / 0.952 GB, free: 9.34 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02041/1.506, allocations: 11.91 MB / 0.9636 GB, free: 12.89 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002297/1.508, allocations: 72 kB / 0.9637 GB, free: 12.82 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006274/1.509, allocations: 95.97 kB / 0.9638 GB, free: 12.73 MB / 0.7169 GB Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization system: flowResistance4.m_flow = flowResistance4.m_flow_0 flowResistance10.m_flow = flowResistance10.m_flow_0 flowResistance8.m_flow = flowResistance8.m_flow_0 flowResistance.m_flow = flowResistance.m_flow_0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (199): * Single equations (assignments): 195 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,9,77.8%), (3,22,77.8%), (3,19,77.8%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001891/1.511, allocations: 489.4 kB / 0.9643 GB, free: 12.24 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001132/1.512, allocations: 278.2 kB / 0.9645 GB, free: 11.96 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009038/1.521, allocations: 4.118 MB / 0.9685 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.554e-05/1.521, allocations: 27.94 kB / 0.9686 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.113e-05/1.521, allocations: 12 kB / 0.9686 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-05/1.521, allocations: 11.95 kB / 0.9686 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01387/1.535, allocations: 6.597 MB / 0.975 GB, free: 1.074 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.741e-05/1.535, allocations: 4 kB / 0.975 GB, free: 1.07 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001415/1.536, allocations: 347.5 kB / 0.9754 GB, free: 0.7305 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002756/1.539, allocations: 0.7085 MB / 0.9761 GB, free: 12 kB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002573/1.539, allocations: 83.95 kB / 0.9761 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01508/1.555, allocations: 10.47 MB / 0.9864 GB, free: 4.891 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.917e-06/1.555, allocations: 4 kB / 0.9864 GB, free: 4.887 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01023/1.565, allocations: 4.921 MB / 0.9912 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009993/1.566, allocations: 343.2 kB / 0.9915 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006086/1.567, allocations: 52 kB / 0.9916 GB, free: 15.47 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00137/1.568, allocations: 75.95 kB / 0.9916 GB, free: 15.4 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004672/1.568, allocations: 204.8 kB / 0.9918 GB, free: 15.2 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003449/1.569, allocations: 83.95 kB / 0.9919 GB, free: 15.12 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.002139/1.571, allocations: 1.341 MB / 0.9932 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.144e-06/1.571, allocations: 0 / 0.9932 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.004351/1.575, allocations: 1.248 MB / 0.9944 GB, free: 12.52 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 8 (flowResistance1.inlet.m_flow,flowResistance2.inlet.m_flow,flowResistance9.inlet.m_flow,flowResistance3.inlet.m_flow,flowResistance11.inlet.m_flow,flowResistance6.inlet.m_flow,flowResistance5.inlet.m_flow,flowResistance7.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 (188): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,8,100.0%), (3,19,77.8%), (3,22,77.8%), (3,9,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01223/1.588, allocations: 6.736 MB / 1.001 GB, free: 5.719 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.006862/1.594, allocations: 3.25 MB / 1.004 GB, free: 2.43 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 9.467e-06/1.594, allocations: 0 / 1.004 GB, free: 2.43 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.004587/1.599, allocations: 2.159 MB / 1.006 GB, free: 224 kB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005562/1.605, allocations: 0.8704 MB / 1.007 GB, free: 15.37 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.469/2.074, allocations: 22.03 MB / 1.029 GB, free: 315.1 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002746/2.076, allocations: 1.805 MB / 1.03 GB, free: 314.4 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.002903/2.079, allocations: 0.6407 MB / 1.031 GB, free: 314.4 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001646/2.081, allocations: 1.228 MB / 1.032 GB, free: 313.9 MB / 0.7637 GB Notification: Performance of SimCode: time 1.232e-06/2.081, allocations: 0 / 1.032 GB, free: 313.9 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1653/2.246, allocations: 88.86 MB / 1.119 GB, free: 238.9 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.57/19.82, allocations: 11.86 kB / 1.119 GB, free: 238.9 MB / 0.7637 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction_res.csv --start-time 0 --stop-time 10 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 ThermofluidStream_dev_ThermofluidStream_Undirected_Topology_Tests_TestJunction.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Topology.Tests.TestJunction_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches