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.002048/0.002048, 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.00211/0.00211, allocations: 195.1 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.703/1.703, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 1.007/1.007, allocations: 93.72 MB / 384.1 MB, free: 7.004 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003929/0.003929, allocations: 82.42 kB / 463.5 MB, free: 21.95 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2161/0.2201, allocations: 68.26 MB / 0.5193 GB, free: 6.914 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Topology.Tests.TestJunction): time 0.884/1.104, allocations: 236 MB / 0.7498 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.05911/1.163, allocations: 36.66 MB / 0.7856 GB, free: 9.977 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006073/1.169, allocations: 111.3 kB / 0.7857 GB, free: 9.867 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.008421/1.178, allocations: 1.841 MB / 0.7875 GB, free: 8.016 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.01546/1.194, allocations: 3.06 MB / 0.7905 GB, free: 4.938 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.01238/1.206, allocations: 2.733 MB / 0.7931 GB, free: 2.199 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.01118/1.217, allocations: 5.057 MB / 0.7981 GB, free: 13.12 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00288/1.22, allocations: 1.103 MB / 0.7992 GB, free: 11.97 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006592/1.227, allocations: 2.144 MB / 0.8013 GB, free: 9.816 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006983/1.234, allocations: 2.659 MB / 0.8039 GB, free: 7.148 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.001606/1.236, allocations: 316 kB / 0.8042 GB, free: 6.84 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0188/1.254, allocations: 4.485 MB / 0.8085 GB, free: 2.348 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.00296/1.257, allocations: 0.7628 MB / 0.8093 GB, free: 1.582 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.00485/1.262, allocations: 1.722 MB / 0.811 GB, free: 15.85 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.02005/1.282, allocations: 5.508 MB / 0.8163 GB, free: 10.33 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 1.108e-05/1.282, allocations: 0 / 0.8163 GB, free: 10.33 MB / 0.6231 GB Notification: Performance of FrontEnd: time 2.885e-06/1.282, allocations: 0 / 0.8163 GB, free: 10.33 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 0.0001362/1.283, allocations: 0 / 0.8163 GB, free: 10.33 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.01202/1.295, allocations: 4.053 MB / 0.8203 GB, free: 6.203 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/1.295, allocations: 8.031 kB / 0.8203 GB, free: 6.195 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005777/1.295, allocations: 312.5 kB / 0.8206 GB, free: 5.879 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009024/1.296, allocations: 347.8 kB / 0.8209 GB, free: 5.535 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003844/1.3, allocations: 1.907 MB / 0.8228 GB, free: 3.555 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001564/1.3, allocations: 172.4 kB / 0.823 GB, free: 3.383 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003701/1.301, allocations: 239.8 kB / 0.8232 GB, free: 3.148 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0055/1.306, allocations: 2.813 MB / 0.8259 GB, free: 256 kB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.762e-05/1.306, allocations: 3.938 kB / 0.8259 GB, free: 252 kB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002031/1.306, allocations: 92 kB / 0.826 GB, free: 160 kB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-05/1.306, allocations: 61 kB / 0.8261 GB, free: 100 kB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4561/1.763, allocations: 2.799 MB / 0.8288 GB, free: 237.9 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01852/1.781, allocations: 12.1 MB / 0.8406 GB, free: 229.4 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004377/1.786, allocations: 2.299 MB / 0.8429 GB, free: 228.4 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001947/1.788, allocations: 1.328 MB / 0.8442 GB, free: 227.9 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01106/1.799, allocations: 8.722 MB / 0.8527 GB, free: 220.6 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.277e-05/1.799, allocations: 65.42 kB / 0.8528 GB, free: 220.5 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=225): time 6.252e-06/1.799, allocations: 0 / 0.8528 GB, free: 220.5 MB / 0.6231 GB Notification: Performance of matching and sorting (n=229): time 0.02112/1.82, allocations: 9.381 MB / 0.8619 GB, free: 214.9 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/1.82, allocations: 156.5 kB / 0.8621 GB, free: 214.7 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003253/1.823, allocations: 1.848 MB / 0.8639 GB, free: 213.7 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0003864/1.824, allocations: 65.95 kB / 0.8639 GB, free: 213.7 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.000762/1.824, allocations: 1.137 MB / 0.865 GB, free: 212.7 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008455/1.825, allocations: 0.7684 MB / 0.8658 GB, free: 212 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006425/1.826, allocations: 379.1 kB / 0.8662 GB, free: 211.8 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 8.106e-05/1.826, allocations: 302.2 kB / 0.8664 GB, free: 211.5 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001838/1.828, allocations: 0.8932 MB / 0.8673 GB, free: 211 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001984/1.83, allocations: 1.202 MB / 0.8685 GB, free: 210.2 MB / 0.6231 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.0485/1.878, allocations: 11.47 MB / 0.8797 GB, free: 204.5 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.235e-05/1.878, allocations: 0.6562 kB / 0.8797 GB, free: 204.5 MB / 0.6231 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.006554/1.885, allocations: 3.271 MB / 0.8829 GB, free: 202.6 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.616e-05/1.885, allocations: 11.94 kB / 0.8829 GB, free: 202.6 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.46e-05/1.885, allocations: 8 kB / 0.8829 GB, free: 202.6 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00235/1.887, allocations: 0.8498 MB / 0.8837 GB, free: 201.7 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001804/1.889, allocations: 375.4 kB / 0.8841 GB, free: 201.4 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01598/1.905, allocations: 11.91 MB / 0.8957 GB, free: 188.9 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002605/1.908, allocations: 63.97 kB / 0.8958 GB, free: 188.8 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003134/1.908, allocations: 91.97 kB / 0.8959 GB, free: 188.8 MB / 0.6231 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.00133/1.91, allocations: 0.4919 MB / 0.8964 GB, free: 188.2 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007418/1.91, allocations: 256.8 kB / 0.8966 GB, free: 188 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006716/1.917, allocations: 4.122 MB / 0.9006 GB, free: 183.9 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.707e-05/1.917, allocations: 28 kB / 0.9007 GB, free: 183.8 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.491e-05/1.917, allocations: 11.94 kB / 0.9007 GB, free: 183.8 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.447e-05/1.917, allocations: 15.95 kB / 0.9007 GB, free: 183.8 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01171/1.929, allocations: 6.605 MB / 0.9071 GB, free: 177.1 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.82e-05/1.929, allocations: 4.109 kB / 0.9071 GB, free: 177.1 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001184/1.93, allocations: 351.4 kB / 0.9075 GB, free: 176.8 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002064/1.932, allocations: 0.7213 MB / 0.9082 GB, free: 176.1 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000163/1.932, allocations: 79.95 kB / 0.9082 GB, free: 176 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01011/1.943, allocations: 10.47 MB / 0.9185 GB, free: 165 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.932e-06/1.943, allocations: 4 kB / 0.9185 GB, free: 165 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007915/1.95, allocations: 4.906 MB / 0.9233 GB, free: 160 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001147/1.952, allocations: 329.5 kB / 0.9236 GB, free: 159.6 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000701/1.952, allocations: 63.92 kB / 0.9236 GB, free: 159.6 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00133/1.954, allocations: 59.97 kB / 0.9237 GB, free: 159.5 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007257/1.954, allocations: 204.9 kB / 0.9239 GB, free: 159.3 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001783/1.955, allocations: 83.95 kB / 0.924 GB, free: 159.2 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001707/1.956, allocations: 1.341 MB / 0.9253 GB, free: 157.9 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.41e-07/1.956, allocations: 3.938 kB / 0.9253 GB, free: 157.9 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.004181/1.961, allocations: 1.227 MB / 0.9265 GB, free: 156.7 MB / 0.6231 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.008911/1.969, allocations: 6.722 MB / 0.9331 GB, free: 150.1 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.006716/1.976, allocations: 3.499 MB / 0.9365 GB, free: 146.6 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/1.976, allocations: 0 / 0.9365 GB, free: 146.6 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.003395/1.98, allocations: 2.152 MB / 0.9386 GB, free: 144.4 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004708/1.984, allocations: 0.8642 MB / 0.9394 GB, free: 143.5 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03635/2.021, allocations: 25.48 MB / 0.9643 GB, free: 116.1 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001312/2.022, allocations: 1.811 MB / 0.9661 GB, free: 114.2 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.002332/2.024, allocations: 0.6264 MB / 0.9667 GB, free: 113.6 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001298/2.026, allocations: 1.229 MB / 0.9679 GB, free: 112.4 MB / 0.6231 GB Notification: Performance of SimCode: time 1.173e-06/2.026, allocations: 3.938 kB / 0.9679 GB, free: 112.4 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1622/2.188, allocations: 87.78 MB / 1.054 GB, free: 25.01 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.99/17.18, allocations: 14.47 kB / 1.054 GB, free: 25 MB / 0.6231 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