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.00751/0.00751, allocations: 100.8 kB / 15.73 MB, free: 6.016 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.001683/0.001683, allocations: 190.7 kB / 16.67 MB, free: 5.934 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.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7012/0.7012, allocations: 91.18 MB / 381.7 MB, free: 7.52 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001492, allocations: 80.14 kB / 0.5164 GB, free: 4.59 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3204/0.3219, allocations: 67.68 MB / 0.5825 GB, free: 13.6 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Topology.Tests.TestJunction): time 0.5781/0.9001, allocations: 235.9 MB / 0.8129 GB, free: 136 kB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.03952/0.9397, allocations: 36.6 MB / 0.8486 GB, free: 5.613 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004048/0.9438, allocations: 100.6 kB / 0.8487 GB, free: 5.555 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.006353/0.9502, allocations: 1.838 MB / 0.8505 GB, free: 4.188 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.01041/0.9607, allocations: 3.049 MB / 0.8535 GB, free: 1.969 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.008698/0.9694, allocations: 2.744 MB / 0.8562 GB, free: 15.61 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.008017/0.9775, allocations: 4.932 MB / 0.861 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002046/0.9795, allocations: 1.089 MB / 0.8621 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005047/0.9846, allocations: 2.148 MB / 0.8642 GB, free: 8.141 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006345/0.991, allocations: 2.655 MB / 0.8668 GB, free: 5.477 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.002314/0.9934, allocations: 304 kB / 0.8671 GB, free: 5.18 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01254/1.006, allocations: 4.496 MB / 0.8714 GB, free: 0.6758 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.001503/1.007, allocations: 0.7629 MB / 0.8722 GB, free: 15.91 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.004091/1.012, allocations: 1.714 MB / 0.8739 GB, free: 14.19 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.01556/1.027, allocations: 5.594 MB / 0.8793 GB, free: 8.574 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 8.456e-06/1.027, allocations: 4 kB / 0.8793 GB, free: 8.57 MB / 0.6231 GB Notification: Performance of FrontEnd: time 2.004e-06/1.027, allocations: 0 / 0.8793 GB, free: 8.57 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 0.0001351/1.027, allocations: 0 / 0.8793 GB, free: 8.57 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.01033/1.038, allocations: 4.109 MB / 0.8833 GB, free: 4.383 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/1.038, allocations: 12.03 kB / 0.8834 GB, free: 4.371 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003999/1.038, allocations: 312.5 kB / 0.8837 GB, free: 4.055 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00086/1.039, allocations: 365.7 kB / 0.884 GB, free: 3.695 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003876/1.043, allocations: 2.005 MB / 0.886 GB, free: 1.617 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001557/1.043, allocations: 168.5 kB / 0.8861 GB, free: 1.449 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004008/1.044, allocations: 239.9 kB / 0.8863 GB, free: 1.215 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004924/1.048, allocations: 2.813 MB / 0.8891 GB, free: 14.31 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.257e-05/1.049, allocations: 4 kB / 0.8891 GB, free: 14.31 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001766/1.049, allocations: 84 kB / 0.8892 GB, free: 14.23 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.161e-05/1.049, allocations: 72.98 kB / 0.8893 GB, free: 14.15 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004087/1.053, allocations: 2.8 MB / 0.892 GB, free: 11.35 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01599/1.069, allocations: 12.03 MB / 0.9037 GB, free: 14.26 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00377/1.073, allocations: 2.298 MB / 0.906 GB, free: 11.93 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001775/1.075, allocations: 1.332 MB / 0.9073 GB, free: 10.59 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01045/1.085, allocations: 8.733 MB / 0.9158 GB, free: 0.8242 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.427e-05/1.085, allocations: 60.12 kB / 0.9159 GB, free: 0.7578 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=225): time 6.152e-06/1.085, allocations: 4 kB / 0.9159 GB, free: 0.7539 MB / 0.6544 GB Notification: Performance of matching and sorting (n=229): time 0.01742/1.103, allocations: 9.455 MB / 0.9251 GB, free: 6.941 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/1.103, allocations: 162.1 kB / 0.9253 GB, free: 6.75 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002445/1.105, allocations: 1.791 MB / 0.927 GB, free: 4.93 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0003937/1.106, allocations: 65.7 kB / 0.9271 GB, free: 4.859 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007729/1.106, allocations: 1.137 MB / 0.9282 GB, free: 3.711 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007582/1.107, allocations: 0.8017 MB / 0.929 GB, free: 2.902 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005462/1.108, allocations: 371.7 kB / 0.9293 GB, free: 2.531 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 8.626e-05/1.108, allocations: 305.1 kB / 0.9296 GB, free: 2.23 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001467/1.109, allocations: 0.8981 MB / 0.9305 GB, free: 1.328 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001736/1.111, allocations: 1.2 MB / 0.9317 GB, free: 24 kB / 0.67 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.04997/1.161, allocations: 11.43 MB / 0.9428 GB, free: 4.418 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-05/1.161, allocations: 7.938 kB / 0.9428 GB, free: 4.41 MB / 0.6856 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.006716/1.168, allocations: 3.271 MB / 0.946 GB, free: 1.113 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 3.818e-05/1.168, allocations: 8 kB / 0.946 GB, free: 1.105 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.148e-05/1.168, allocations: 8 kB / 0.946 GB, free: 1.098 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002668/1.171, allocations: 0.8385 MB / 0.9469 GB, free: 252 kB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001543/1.172, allocations: 375.5 kB / 0.9472 GB, free: 15.88 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01677/1.189, allocations: 11.91 MB / 0.9588 GB, free: 3.422 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001843/1.191, allocations: 64.02 kB / 0.9589 GB, free: 3.359 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003005/1.191, allocations: 99.95 kB / 0.959 GB, free: 3.262 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.001067/1.192, allocations: 489.3 kB / 0.9595 GB, free: 2.773 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006194/1.193, allocations: 266.2 kB / 0.9597 GB, free: 2.512 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007054/1.2, allocations: 4.119 MB / 0.9637 GB, free: 14.39 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.251e-05/1.2, allocations: 31.88 kB / 0.9638 GB, free: 14.36 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.747e-05/1.2, allocations: 16 kB / 0.9638 GB, free: 14.34 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.402e-05/1.2, allocations: 12.23 kB / 0.9638 GB, free: 14.33 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0112/1.211, allocations: 6.584 MB / 0.9702 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.329e-05/1.211, allocations: 4 kB / 0.9702 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00136/1.213, allocations: 343.5 kB / 0.9706 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002409/1.215, allocations: 0.7018 MB / 0.9712 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002456/1.215, allocations: 79.95 kB / 0.9713 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01161/1.227, allocations: 10.48 MB / 0.9816 GB, free: 11.46 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/1.227, allocations: 4 kB / 0.9816 GB, free: 11.45 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008192/1.235, allocations: 4.917 MB / 0.9864 GB, free: 6.453 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009004/1.236, allocations: 343.1 kB / 0.9867 GB, free: 6.098 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003896/1.236, allocations: 56 kB / 0.9867 GB, free: 6.043 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001292/1.238, allocations: 67.95 kB / 0.9868 GB, free: 5.977 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003788/1.238, allocations: 200.9 kB / 0.987 GB, free: 5.777 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002115/1.238, allocations: 87.95 kB / 0.9871 GB, free: 5.691 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001762/1.24, allocations: 1.3 MB / 0.9883 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.91e-07/1.24, allocations: 4 kB / 0.9884 GB, free: 4.375 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.003651/1.244, allocations: 1.232 MB / 0.9896 GB, free: 3.141 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.0102/1.254, allocations: 6.744 MB / 0.9961 GB, free: 12.33 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.006424/1.26, allocations: 3.245 MB / 0.9993 GB, free: 9.039 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.107e-05/1.261, allocations: 0 / 0.9993 GB, free: 9.039 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.004394/1.265, allocations: 2.159 MB / 1.001 GB, free: 6.828 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0046/1.27, allocations: 0.8661 MB / 1.002 GB, free: 5.988 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3133/1.583, allocations: 21.8 MB / 1.024 GB, free: 321 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002089/1.585, allocations: 1.785 MB / 1.025 GB, free: 320.3 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.002432/1.587, allocations: 0.6211 MB / 1.026 GB, free: 320.2 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001786/1.589, allocations: 1.201 MB / 1.027 GB, free: 320.2 MB / 0.7637 GB Notification: Performance of SimCode: time 1.814e-06/1.589, allocations: 0 / 1.027 GB, free: 320.2 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.124/1.713, allocations: 88.18 MB / 1.113 GB, free: 249.6 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.34/19.05, allocations: 18.8 kB / 1.113 GB, free: 249.6 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