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.001762/0.001762, allocations: 104 kB / 15.61 MB, free: 148 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.002265/0.002266, allocations: 195.9 kB / 16.53 MB, free: 6.684 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.65/1.65, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8381/0.8381, allocations: 91.21 MB / 381.6 MB, free: 9.391 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001625/0.001625, allocations: 78.34 kB / 460.4 MB, free: 23.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2037/0.2053, allocations: 67.71 MB / 0.5157 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Topology.Tests.TestJunction): time 0.8029/1.008, allocations: 235.9 MB / 0.7462 GB, free: 3.414 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.05176/1.06, allocations: 36.57 MB / 0.7819 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004975/1.065, allocations: 103.4 kB / 0.782 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.007165/1.072, allocations: 1.841 MB / 0.7838 GB, free: 12.78 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.01276/1.085, allocations: 2.998 MB / 0.7867 GB, free: 9.762 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.01084/1.096, allocations: 2.728 MB / 0.7894 GB, free: 7.023 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.009834/1.106, allocations: 4.912 MB / 0.7942 GB, free: 2.086 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002622/1.109, allocations: 1.081 MB / 0.7952 GB, free: 0.9609 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005467/1.114, allocations: 2.086 MB / 0.7972 GB, free: 14.87 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00498/1.119, allocations: 2.659 MB / 0.7998 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.001137/1.12, allocations: 308 kB / 0.8001 GB, free: 11.9 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01305/1.133, allocations: 4.492 MB / 0.8045 GB, free: 7.398 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.001996/1.135, allocations: 0.755 MB / 0.8053 GB, free: 6.641 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.005232/1.141, allocations: 1.707 MB / 0.8069 GB, free: 4.926 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.02258/1.163, allocations: 5.473 MB / 0.8123 GB, free: 15.44 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/1.163, allocations: 0 / 0.8123 GB, free: 15.44 MB / 0.6231 GB Notification: Performance of FrontEnd: time 2.064e-06/1.163, allocations: 0 / 0.8123 GB, free: 15.44 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 0.0002338/1.164, allocations: 0 / 0.8123 GB, free: 15.44 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.01319/1.177, allocations: 3.998 MB / 0.8162 GB, free: 11.37 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 6.47e-05/1.177, allocations: 12.03 kB / 0.8162 GB, free: 11.36 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008812/1.178, allocations: 308.5 kB / 0.8165 GB, free: 11.04 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001353/1.179, allocations: 343.9 kB / 0.8168 GB, free: 10.7 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004461/1.184, allocations: 1.847 MB / 0.8186 GB, free: 8.781 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001708/1.184, allocations: 172.5 kB / 0.8188 GB, free: 8.609 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005026/1.184, allocations: 239.8 kB / 0.819 GB, free: 8.375 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005853/1.19, allocations: 2.813 MB / 0.8218 GB, free: 5.477 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.38e-05/1.19, allocations: 7.875 kB / 0.8218 GB, free: 5.469 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002383/1.19, allocations: 92 kB / 0.8219 GB, free: 5.379 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.77e-05/1.191, allocations: 61 kB / 0.8219 GB, free: 5.32 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00549/1.196, allocations: 2.804 MB / 0.8246 GB, free: 2.512 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5146/1.711, allocations: 12.08 MB / 0.8364 GB, free: 151.9 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00502/1.716, allocations: 2.29 MB / 0.8387 GB, free: 151.8 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002509/1.718, allocations: 1.333 MB / 0.84 GB, free: 151.7 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01352/1.732, allocations: 8.715 MB / 0.8485 GB, free: 145.9 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.9e-05/1.732, allocations: 65.78 kB / 0.8486 GB, free: 145.9 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=225): time 4.799e-06/1.732, allocations: 1.203 kB / 0.8486 GB, free: 145.9 MB / 0.6231 GB Notification: Performance of matching and sorting (n=229): time 0.02028/1.752, allocations: 9.338 MB / 0.8577 GB, free: 141.3 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.975e-05/1.752, allocations: 158.4 kB / 0.8578 GB, free: 141.2 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002621/1.755, allocations: 1.795 MB / 0.8596 GB, free: 140.5 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0001752/1.755, allocations: 60.89 kB / 0.8596 GB, free: 140.4 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007641/1.756, allocations: 1.114 MB / 0.8607 GB, free: 139.5 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005455/1.757, allocations: 0.7779 MB / 0.8615 GB, free: 138.9 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005354/1.757, allocations: 371 kB / 0.8618 GB, free: 138.8 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 5.093e-05/1.757, allocations: 301.8 kB / 0.8621 GB, free: 138.5 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00155/1.759, allocations: 0.8988 MB / 0.863 GB, free: 138.1 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002035/1.761, allocations: 1.201 MB / 0.8642 GB, free: 137.5 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.04997/1.811, allocations: 11.47 MB / 0.8754 GB, free: 132.6 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.869e-05/1.811, allocations: 3.719 kB / 0.8754 GB, free: 132.6 MB / 0.6231 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.008792/1.82, allocations: 3.253 MB / 0.8786 GB, free: 130.9 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 4.593e-05/1.82, allocations: 7.938 kB / 0.8786 GB, free: 130.9 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.312e-05/1.82, allocations: 8.906 kB / 0.8786 GB, free: 130.9 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003145/1.823, allocations: 0.8484 MB / 0.8794 GB, free: 130.5 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001594/1.824, allocations: 376.6 kB / 0.8798 GB, free: 130.5 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01556/1.84, allocations: 11.92 MB / 0.8914 GB, free: 120.9 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002481/1.843, allocations: 64.45 kB / 0.8915 GB, free: 120.9 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003215/1.843, allocations: 97.91 kB / 0.8916 GB, free: 120.9 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.00132/1.844, allocations: 495.3 kB / 0.892 GB, free: 120.5 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007053/1.845, allocations: 250.2 kB / 0.8923 GB, free: 120.4 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007333/1.852, allocations: 4.11 MB / 0.8963 GB, free: 116.7 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.047e-05/1.852, allocations: 28 kB / 0.8963 GB, free: 116.7 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.636e-05/1.852, allocations: 9.094 kB / 0.8963 GB, free: 116.7 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.403e-05/1.852, allocations: 15.95 kB / 0.8963 GB, free: 116.7 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01053/1.863, allocations: 6.587 MB / 0.9028 GB, free: 110.1 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.269e-05/1.863, allocations: 4.094 kB / 0.9028 GB, free: 110.1 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001195/1.864, allocations: 346.6 kB / 0.9031 GB, free: 109.8 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002325/1.867, allocations: 0.7309 MB / 0.9038 GB, free: 109.1 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001791/1.867, allocations: 79.95 kB / 0.9039 GB, free: 109 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01002/1.877, allocations: 10.46 MB / 0.9141 GB, free: 98.07 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/1.877, allocations: 9.969 kB / 0.9141 GB, free: 98.07 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00853/1.885, allocations: 4.904 MB / 0.9189 GB, free: 93.14 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001097/1.887, allocations: 321.7 kB / 0.9192 GB, free: 92.81 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005918/1.887, allocations: 59.91 kB / 0.9193 GB, free: 92.75 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001603/1.889, allocations: 67.89 kB / 0.9193 GB, free: 92.68 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004287/1.889, allocations: 206 kB / 0.9195 GB, free: 92.49 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001609/1.889, allocations: 83.95 kB / 0.9196 GB, free: 92.41 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001821/1.891, allocations: 1.308 MB / 0.9209 GB, free: 91.09 MB / 0.6231 GB Notification: Performance of sort global known variables: time 3.61e-07/1.891, allocations: 0 / 0.9209 GB, free: 91.09 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.004918/1.896, allocations: 1.224 MB / 0.9221 GB, free: 89.94 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.009815/1.906, allocations: 6.713 MB / 0.9286 GB, free: 83.47 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.006218/1.912, allocations: 3.491 MB / 0.932 GB, free: 80.02 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 9.788e-06/1.912, allocations: 2.531 kB / 0.9321 GB, free: 80.02 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.003265/1.915, allocations: 2.154 MB / 0.9342 GB, free: 77.86 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004354/1.92, allocations: 0.8575 MB / 0.935 GB, free: 77.03 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03532/1.955, allocations: 25.1 MB / 0.9595 GB, free: 50.16 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001404/1.957, allocations: 1.778 MB / 0.9612 GB, free: 48.36 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.002658/1.959, allocations: 0.6279 MB / 0.9619 GB, free: 47.77 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001557/1.961, allocations: 1.198 MB / 0.963 GB, free: 46.57 MB / 0.6231 GB Notification: Performance of SimCode: time 2.404e-06/1.961, allocations: 0 / 0.963 GB, free: 46.57 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1677/2.129, allocations: 87.13 MB / 1.048 GB, free: 8 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.34/16.47, allocations: 3.984 kB / 1.048 GB, free: 7.996 MB / 0.67 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