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.00233/0.00233, allocations: 108 kB / 15.6 MB, free: 132 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.003287/0.003288, allocations: 196.1 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.047/2.047, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 1.237/1.237, allocations: 93.71 MB / 384.1 MB, free: 6.945 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002864/0.002865, allocations: 85.95 kB / 463.5 MB, free: 21.89 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1619/0.1648, allocations: 68.26 MB / 0.5193 GB, free: 6.859 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Topology.Tests.TestJunction): time 0.4226/0.5875, allocations: 236 MB / 0.7498 GB, free: 14.63 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.041/0.6285, allocations: 36.66 MB / 0.7856 GB, free: 9.855 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002067/0.6306, allocations: 111.3 kB / 0.7857 GB, free: 9.746 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.004205/0.6348, allocations: 1.845 MB / 0.7875 GB, free: 7.891 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.007011/0.6419, allocations: 3.052 MB / 0.7905 GB, free: 4.82 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.005979/0.6479, allocations: 2.729 MB / 0.7931 GB, free: 2.082 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.005258/0.6531, allocations: 5.072 MB / 0.7981 GB, free: 12.99 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001312/0.6545, allocations: 1.086 MB / 0.7992 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00256/0.657, allocations: 2.144 MB / 0.8012 GB, free: 9.703 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00309/0.6601, allocations: 2.675 MB / 0.8039 GB, free: 7.02 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0004227/0.6606, allocations: 304 kB / 0.8042 GB, free: 6.723 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008252/0.6688, allocations: 4.485 MB / 0.8085 GB, free: 2.23 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0006494/0.6695, allocations: 0.7628 MB / 0.8093 GB, free: 1.465 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.001578/0.6711, allocations: 1.738 MB / 0.811 GB, free: 15.71 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.006694/0.6778, allocations: 5.492 MB / 0.8163 GB, free: 10.21 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.6778, allocations: 0 / 0.8163 GB, free: 10.21 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.102e-06/0.6778, allocations: 0 / 0.8163 GB, free: 10.21 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 2.339e-05/0.6778, allocations: 0 / 0.8163 GB, free: 10.21 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.006956/0.6848, allocations: 4.057 MB / 0.8203 GB, free: 6.082 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.6848, allocations: 8.031 kB / 0.8203 GB, free: 6.074 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003686/0.6852, allocations: 316.5 kB / 0.8206 GB, free: 5.754 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005597/0.6858, allocations: 351.7 kB / 0.8209 GB, free: 5.406 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002789/0.6886, allocations: 1.899 MB / 0.8228 GB, free: 3.434 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001299/0.6887, allocations: 168.5 kB / 0.823 GB, free: 3.266 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003188/0.689, allocations: 235.8 kB / 0.8232 GB, free: 3.035 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004063/0.6931, allocations: 2.813 MB / 0.8259 GB, free: 140 kB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.531e-05/0.6931, allocations: 4 kB / 0.8259 GB, free: 136 kB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001811/0.6933, allocations: 88 kB / 0.826 GB, free: 48 kB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.167/0.8604, allocations: 63.3 kB / 0.8261 GB, free: 238.3 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004532/0.8649, allocations: 2.809 MB / 0.8288 GB, free: 237.9 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01096/0.8759, allocations: 12.09 MB / 0.8406 GB, free: 229.4 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00286/0.8788, allocations: 2.298 MB / 0.8429 GB, free: 228.4 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001439/0.8802, allocations: 1.33 MB / 0.8442 GB, free: 227.9 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007092/0.8873, allocations: 8.723 MB / 0.8527 GB, free: 220.6 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.415e-05/0.8874, allocations: 66.2 kB / 0.8528 GB, free: 220.5 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=225): time 3.126e-06/0.8874, allocations: 0 / 0.8528 GB, free: 220.5 MB / 0.6231 GB Notification: Performance of matching and sorting (n=229): time 0.02803/0.9154, allocations: 9.385 MB / 0.8619 GB, free: 214.8 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001737/0.9157, allocations: 155.1 kB / 0.8621 GB, free: 214.7 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004605/0.9203, allocations: 1.851 MB / 0.8639 GB, free: 213.7 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0005702/0.9209, allocations: 62.98 kB / 0.8639 GB, free: 213.6 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.001295/0.9222, allocations: 1.134 MB / 0.865 GB, free: 212.6 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009141/0.9231, allocations: 0.7678 MB / 0.8658 GB, free: 212 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009081/0.9241, allocations: 382.4 kB / 0.8662 GB, free: 211.7 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001017/0.9242, allocations: 302.9 kB / 0.8664 GB, free: 211.4 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00213/0.9263, allocations: 0.9003 MB / 0.8673 GB, free: 211 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002823/0.9292, allocations: 1.196 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.05364/0.9828, allocations: 11.47 MB / 0.8797 GB, free: 204.5 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.135e-05/0.9829, allocations: 7.094 kB / 0.8797 GB, free: 204.5 MB / 0.6231 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.01017/0.9931, allocations: 3.264 MB / 0.8829 GB, free: 202.4 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 5.747e-05/0.9932, allocations: 11.19 kB / 0.8829 GB, free: 202.4 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.743e-05/0.9933, allocations: 8 kB / 0.8829 GB, free: 202.4 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003188/0.9964, allocations: 0.853 MB / 0.8837 GB, free: 201.5 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001649/0.9981, allocations: 367.4 kB / 0.8841 GB, free: 201.2 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01834/1.017, allocations: 11.93 MB / 0.8957 GB, free: 188.7 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004089/1.021, allocations: 67.95 kB / 0.8958 GB, free: 188.6 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00104/1.022, allocations: 99.95 kB / 0.8959 GB, free: 188.5 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.002304/1.024, allocations: 489.3 kB / 0.8964 GB, free: 188 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001428/1.026, allocations: 252.8 kB / 0.8966 GB, free: 187.8 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007782/1.033, allocations: 4.127 MB / 0.9006 GB, free: 183.7 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.115e-05/1.033, allocations: 27.94 kB / 0.9007 GB, free: 183.6 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.739e-05/1.033, allocations: 12 kB / 0.9007 GB, free: 183.6 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.716e-05/1.033, allocations: 11.95 kB / 0.9007 GB, free: 183.6 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01347/1.047, allocations: 6.606 MB / 0.9071 GB, free: 176.9 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.696e-05/1.047, allocations: 4 kB / 0.9071 GB, free: 176.9 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001256/1.048, allocations: 347.5 kB / 0.9075 GB, free: 176.6 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002446/1.051, allocations: 0.729 MB / 0.9082 GB, free: 175.9 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002024/1.051, allocations: 79.95 kB / 0.9083 GB, free: 175.8 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01149/1.062, allocations: 10.47 MB / 0.9185 GB, free: 164.8 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.702e-06/1.063, allocations: 4 kB / 0.9185 GB, free: 164.8 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009987/1.073, allocations: 4.906 MB / 0.9233 GB, free: 159.8 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001778/1.074, allocations: 333.6 kB / 0.9236 GB, free: 159.4 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005067/1.075, allocations: 55.94 kB / 0.9236 GB, free: 159.4 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001442/1.076, allocations: 63.97 kB / 0.9237 GB, free: 159.3 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005551/1.077, allocations: 209.3 kB / 0.9239 GB, free: 159.1 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002105/1.077, allocations: 79.97 kB / 0.924 GB, free: 159 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.002071/1.079, allocations: 1.345 MB / 0.9253 GB, free: 157.7 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.262e-06/1.079, allocations: 0 / 0.9253 GB, free: 157.7 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.005592/1.085, allocations: 1.229 MB / 0.9265 GB, free: 156.5 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.01093/1.096, allocations: 6.718 MB / 0.9331 GB, free: 149.9 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.007578/1.103, allocations: 3.5 MB / 0.9365 GB, free: 146.4 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.915e-05/1.103, allocations: 4 kB / 0.9365 GB, free: 146.3 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.004157/1.108, allocations: 2.154 MB / 0.9386 GB, free: 144.1 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005831/1.114, allocations: 0.8548 MB / 0.9394 GB, free: 143.3 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04839/1.162, allocations: 25.48 MB / 0.9643 GB, free: 115.9 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001974/1.164, allocations: 1.81 MB / 0.9661 GB, free: 114 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.003259/1.167, allocations: 0.6311 MB / 0.9667 GB, free: 113.4 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001849/1.169, allocations: 1.233 MB / 0.9679 GB, free: 112.2 MB / 0.6231 GB Notification: Performance of SimCode: time 2.374e-06/1.169, allocations: 4 kB / 0.9679 GB, free: 112.2 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.162/5.331, allocations: 87.77 MB / 1.054 GB, free: 24.81 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.47/25.8, allocations: 4 kB / 1.054 GB, free: 24.81 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Undirected.Topology.Tests.TestJunction_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Undirected_Topology_Tests_TestJunction_fmu --startTime=0 --stopTime=10 --timeout=1200 --tolerance=1e-06 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.mat","/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