Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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_ThermofluidStream_Undirected_Topology_Tests_TestJunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Topology.Tests.TestJunction,fileNamePrefix="ThermofluidStream_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.006674/0.006674, allocations: 103.1 kB / 15.74 MB, free: 6.059 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.001818/0.001818, allocations: 190.9 kB / 16.67 MB, free: 5.969 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.386/1.386, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8379/0.8379, allocations: 91.19 MB / 381.7 MB, free: 7.484 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002659/0.002659, allocations: 83.88 kB / 0.5164 GB, free: 4.562 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4009/0.4035, allocations: 67.67 MB / 0.5825 GB, free: 13.6 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Topology.Tests.TestJunction): time 0.6322/1.036, allocations: 235.9 MB / 0.8129 GB, free: 120 kB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0409/1.077, allocations: 36.62 MB / 0.8487 GB, free: 5.602 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006049/1.083, allocations: 100.8 kB / 0.8488 GB, free: 5.543 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.007858/1.091, allocations: 1.839 MB / 0.8505 GB, free: 4.176 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.01066/1.101, allocations: 3.052 MB / 0.8535 GB, free: 1.953 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.00977/1.111, allocations: 2.732 MB / 0.8562 GB, free: 15.6 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.009152/1.12, allocations: 4.947 MB / 0.861 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002827/1.123, allocations: 1.088 MB / 0.8621 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005666/1.129, allocations: 2.137 MB / 0.8642 GB, free: 8.133 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005558/1.135, allocations: 2.659 MB / 0.8668 GB, free: 5.465 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.001726/1.136, allocations: 304 kB / 0.8671 GB, free: 5.168 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01179/1.148, allocations: 4.492 MB / 0.8715 GB, free: 0.668 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.001357/1.15, allocations: 0.7667 MB / 0.8722 GB, free: 15.9 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.003808/1.153, allocations: 1.71 MB / 0.8739 GB, free: 14.18 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.01398/1.167, allocations: 5.594 MB / 0.8793 GB, free: 8.566 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 5.401e-06/1.168, allocations: 4 kB / 0.8793 GB, free: 8.562 MB / 0.6231 GB Notification: Performance of FrontEnd: time 3.397e-06/1.168, allocations: 0 / 0.8793 GB, free: 8.562 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 0.0001587/1.168, allocations: 3.938 kB / 0.8793 GB, free: 8.559 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.009833/1.178, allocations: 4.105 MB / 0.8833 GB, free: 4.375 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 5.912e-05/1.178, allocations: 11.97 kB / 0.8834 GB, free: 4.363 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006361/1.178, allocations: 320.5 kB / 0.8837 GB, free: 4.039 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000965/1.179, allocations: 361.8 kB / 0.884 GB, free: 3.684 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004183/1.183, allocations: 2.009 MB / 0.886 GB, free: 1.602 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001364/1.184, allocations: 164.5 kB / 0.8861 GB, free: 1.438 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005555/1.184, allocations: 239.9 kB / 0.8864 GB, free: 1.203 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005559/1.19, allocations: 2.813 MB / 0.8891 GB, free: 14.3 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.633e-05/1.19, allocations: 0 / 0.8891 GB, free: 14.3 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001923/1.19, allocations: 95.98 kB / 0.8892 GB, free: 14.21 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.092e-05/1.19, allocations: 68.98 kB / 0.8893 GB, free: 14.14 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004502/1.195, allocations: 2.808 MB / 0.892 GB, free: 11.33 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01899/1.214, allocations: 12.01 MB / 0.9037 GB, free: 14.25 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004349/1.218, allocations: 2.301 MB / 0.906 GB, free: 11.93 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002096/1.22, allocations: 1.343 MB / 0.9073 GB, free: 10.57 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01269/1.233, allocations: 8.725 MB / 0.9158 GB, free: 0.8125 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.57e-05/1.233, allocations: 60.12 kB / 0.9159 GB, free: 0.7461 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=225): time 4.889e-06/1.233, allocations: 0 / 0.9159 GB, free: 0.7461 MB / 0.6544 GB Notification: Performance of matching and sorting (n=229): time 0.02085/1.254, allocations: 9.459 MB / 0.9251 GB, free: 6.926 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001256/1.254, allocations: 162 kB / 0.9253 GB, free: 6.734 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003783/1.258, allocations: 1.795 MB / 0.927 GB, free: 4.91 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0005568/1.258, allocations: 61.7 kB / 0.9271 GB, free: 4.844 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009335/1.259, allocations: 1.137 MB / 0.9282 GB, free: 3.695 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.001156/1.26, allocations: 0.8056 MB / 0.929 GB, free: 2.883 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001088/1.262, allocations: 371.7 kB / 0.9293 GB, free: 2.512 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001014/1.262, allocations: 301.1 kB / 0.9296 GB, free: 2.215 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001624/1.263, allocations: 0.8981 MB / 0.9305 GB, free: 1.312 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001958/1.265, allocations: 1.204 MB / 0.9317 GB, free: 16 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.05011/1.315, allocations: 11.42 MB / 0.9428 GB, free: 4.406 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.246e-05/1.315, allocations: 7.938 kB / 0.9428 GB, free: 4.398 MB / 0.6856 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.008064/1.324, allocations: 3.275 MB / 0.946 GB, free: 1.098 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 5.017e-05/1.324, allocations: 11.12 kB / 0.946 GB, free: 1.09 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.126e-05/1.324, allocations: 8 kB / 0.946 GB, free: 1.082 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002991/1.327, allocations: 0.8458 MB / 0.9469 GB, free: 232 kB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001594/1.328, allocations: 367.5 kB / 0.9472 GB, free: 15.87 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01924/1.348, allocations: 11.91 MB / 0.9589 GB, free: 3.402 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002318/1.35, allocations: 72 kB / 0.9589 GB, free: 3.332 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006504/1.351, allocations: 91.97 kB / 0.959 GB, free: 3.242 MB / 0.7012 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.001833/1.352, allocations: 489.3 kB / 0.9595 GB, free: 2.754 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001094/1.354, allocations: 266.2 kB / 0.9597 GB, free: 2.492 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00868/1.362, allocations: 4.106 MB / 0.9637 GB, free: 14.39 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.309e-05/1.362, allocations: 35.92 kB / 0.9638 GB, free: 14.35 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.215e-05/1.362, allocations: 16 kB / 0.9638 GB, free: 14.34 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.102e-05/1.362, allocations: 15.95 kB / 0.9638 GB, free: 14.32 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01335/1.376, allocations: 6.576 MB / 0.9702 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.414e-05/1.376, allocations: 4 kB / 0.9702 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001358/1.377, allocations: 347.5 kB / 0.9706 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002519/1.38, allocations: 0.7057 MB / 0.9713 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002626/1.38, allocations: 79.95 kB / 0.9713 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01257/1.393, allocations: 10.47 MB / 0.9816 GB, free: 11.45 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.023e-06/1.393, allocations: 11.94 kB / 0.9816 GB, free: 11.44 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0093/1.402, allocations: 4.909 MB / 0.9864 GB, free: 6.445 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008976/1.403, allocations: 339.1 kB / 0.9867 GB, free: 6.094 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006388/1.403, allocations: 59.98 kB / 0.9867 GB, free: 6.035 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001696/1.405, allocations: 59.97 kB / 0.9868 GB, free: 5.977 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004651/1.406, allocations: 204.9 kB / 0.987 GB, free: 5.773 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000246/1.406, allocations: 91.89 kB / 0.9871 GB, free: 5.684 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.002322/1.408, allocations: 1.308 MB / 0.9884 GB, free: 4.363 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.81e-07/1.408, allocations: 0 / 0.9884 GB, free: 4.363 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.004516/1.413, allocations: 1.232 MB / 0.9896 GB, free: 3.129 MB / 0.7325 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.01145/1.424, allocations: 6.744 MB / 0.9962 GB, free: 12.32 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.006201/1.431, allocations: 3.25 MB / 0.9993 GB, free: 9.027 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 6.742e-06/1.431, allocations: 0 / 0.9993 GB, free: 9.027 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.004053/1.435, allocations: 2.152 MB / 1.001 GB, free: 6.824 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00574/1.44, allocations: 0.8489 MB / 1.002 GB, free: 5.996 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3268/1.767, allocations: 21.81 MB / 1.024 GB, free: 321.1 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002601/1.77, allocations: 1.786 MB / 1.025 GB, free: 320.4 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.002882/1.773, allocations: 0.6242 MB / 1.026 GB, free: 320.3 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002065/1.775, allocations: 1.202 MB / 1.027 GB, free: 320.3 MB / 0.7637 GB Notification: Performance of SimCode: time 6.01e-07/1.775, allocations: 0.875 kB / 1.027 GB, free: 320.3 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1327/1.908, allocations: 88.18 MB / 1.113 GB, free: 249.7 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.73/18.64, allocations: 11.92 kB / 1.113 GB, free: 249.7 MB / 0.7637 GB (rm -f ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestJunction.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestJunction.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestJunction.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestJunction.sim & python3 -m fmpy simulate --output-file ThermofluidStream_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_ThermofluidStream_Undirected_Topology_Tests_TestJunction.fmu > ThermofluidStream_ThermofluidStream.Undirected.Topology.Tests.TestJunction.pipe 2>&1) diffSimulationResults("ThermofluidStream_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_ThermofluidStream.Undirected.Topology.Tests.TestJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches