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/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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.008135/0.008135, allocations: 100.9 kB / 15.73 MB, free: 6.055 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.002012/0.002012, allocations: 192.4 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.368/1.368, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.7012/0.7012, allocations: 89.46 MB / 380 MB, free: 8.656 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002203/0.002203, allocations: 75.88 kB / 0.514 GB, free: 7.113 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.344/0.3462, allocations: 67.29 MB / 0.5797 GB, free: 15.54 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Topology.Tests.TestJunction): time 0.5786/0.9248, allocations: 235.5 MB / 0.8096 GB, free: 268 kB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.03649/0.9613, allocations: 36.42 MB / 0.8452 GB, free: 8.879 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003837/0.9652, allocations: 43.44 kB / 0.8452 GB, free: 8.879 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.00558/0.9708, allocations: 1.81 MB / 0.847 GB, free: 8.164 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.009584/0.9805, allocations: 2.883 MB / 0.8498 GB, free: 6.633 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.009107/0.9896, allocations: 2.725 MB / 0.8525 GB, free: 4.363 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.007376/0.997, allocations: 4.624 MB / 0.857 GB, free: 0.7461 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002198/0.9992, allocations: 1.03 MB / 0.858 GB, free: 15.67 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004629/1.004, allocations: 1.949 MB / 0.8599 GB, free: 13.84 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005375/1.009, allocations: 2.598 MB / 0.8624 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.001295/1.011, allocations: 315.3 kB / 0.8627 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01298/1.024, allocations: 4.493 MB / 0.8671 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.001467/1.025, allocations: 0.7436 MB / 0.8678 GB, free: 5.773 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.004163/1.029, allocations: 1.61 MB / 0.8694 GB, free: 4.156 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.01397/1.043, allocations: 5.24 MB / 0.8745 GB, free: 14.9 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 6.792e-06/1.043, allocations: 7.938 kB / 0.8745 GB, free: 14.89 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.653e-06/1.043, allocations: 3.938 kB / 0.8745 GB, free: 14.89 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 0.000156/1.043, allocations: 0 / 0.8745 GB, free: 14.89 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.0114/1.055, allocations: 3.718 MB / 0.8782 GB, free: 11.09 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 5.477e-05/1.055, allocations: 12.03 kB / 0.8782 GB, free: 11.08 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007832/1.056, allocations: 308.7 kB / 0.8785 GB, free: 10.77 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009279/1.057, allocations: 315 kB / 0.8788 GB, free: 10.46 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002677/1.059, allocations: 1.406 MB / 0.8801 GB, free: 9.004 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001442/1.059, allocations: 168.8 kB / 0.8803 GB, free: 8.836 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003677/1.06, allocations: 252.4 kB / 0.8805 GB, free: 8.59 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004663/1.065, allocations: 2.81 MB / 0.8833 GB, free: 5.695 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.417e-05/1.065, allocations: 3.938 kB / 0.8833 GB, free: 5.691 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002046/1.065, allocations: 96 kB / 0.8834 GB, free: 5.598 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.571e-05/1.065, allocations: 68.97 kB / 0.8834 GB, free: 5.531 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004409/1.069, allocations: 2.804 MB / 0.8862 GB, free: 2.727 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.015/1.084, allocations: 11.9 MB / 0.8978 GB, free: 5.762 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003818/1.088, allocations: 2.299 MB / 0.9 GB, free: 3.43 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001926/1.09, allocations: 1.349 MB / 0.9014 GB, free: 2.07 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01112/1.101, allocations: 8.722 MB / 0.9099 GB, free: 8.316 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.551e-05/1.101, allocations: 67.81 kB / 0.9099 GB, free: 8.242 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=225): time 4.067e-06/1.101, allocations: 0 / 0.9099 GB, free: 8.242 MB / 0.6544 GB Notification: Performance of matching and sorting (n=229): time 0.01755/1.119, allocations: 9.141 MB / 0.9189 GB, free: 14.74 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000106/1.119, allocations: 154.2 kB / 0.919 GB, free: 14.56 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002258/1.121, allocations: 1.43 MB / 0.9204 GB, free: 13.12 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001428/1.121, allocations: 65.7 kB / 0.9205 GB, free: 13.05 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.000797/1.122, allocations: 0.9502 MB / 0.9214 GB, free: 12.09 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007191/1.123, allocations: 0.8094 MB / 0.9222 GB, free: 11.27 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006486/1.124, allocations: 379.7 kB / 0.9226 GB, free: 10.89 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001899/1.124, allocations: 309 kB / 0.9229 GB, free: 10.59 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001627/1.125, allocations: 0.8981 MB / 0.9237 GB, free: 9.688 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001949/1.127, allocations: 1.196 MB / 0.9249 GB, free: 8.387 MB / 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.0505/1.178, allocations: 11.44 MB / 0.9361 GB, free: 12.77 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.697e-05/1.178, allocations: 4 kB / 0.9361 GB, free: 12.77 MB / 0.6856 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.007215/1.185, allocations: 3.223 MB / 0.9392 GB, free: 9.52 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 3.075e-05/1.185, allocations: 10.66 kB / 0.9392 GB, free: 9.512 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.65e-05/1.185, allocations: 7.938 kB / 0.9392 GB, free: 9.504 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00282/1.188, allocations: 0.8351 MB / 0.9401 GB, free: 8.656 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00142/1.19, allocations: 371.4 kB / 0.9404 GB, free: 8.293 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01848/1.208, allocations: 11.93 MB / 0.9521 GB, free: 11.82 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001712/1.21, allocations: 68 kB / 0.9521 GB, free: 11.76 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004865/1.21, allocations: 91.97 kB / 0.9522 GB, free: 11.67 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.00136/1.212, allocations: 465.3 kB / 0.9527 GB, free: 11.2 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008011/1.212, allocations: 222.6 kB / 0.9529 GB, free: 10.98 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008424/1.221, allocations: 4.075 MB / 0.9568 GB, free: 6.906 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.909e-05/1.221, allocations: 24 kB / 0.9569 GB, free: 6.883 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.072e-05/1.221, allocations: 16 kB / 0.9569 GB, free: 6.867 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.942e-05/1.221, allocations: 11.95 kB / 0.9569 GB, free: 6.855 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01207/1.233, allocations: 6.459 MB / 0.9632 GB, free: 276 kB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.411e-05/1.233, allocations: 4 kB / 0.9632 GB, free: 272 kB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001284/1.234, allocations: 351.5 kB / 0.9635 GB, free: 15.92 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002454/1.237, allocations: 0.7099 MB / 0.9642 GB, free: 15.2 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002174/1.237, allocations: 83.95 kB / 0.9643 GB, free: 15.12 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01317/1.25, allocations: 10.49 MB / 0.9746 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.474e-06/1.25, allocations: 7.938 kB / 0.9746 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009379/1.26, allocations: 4.871 MB / 0.9793 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007165/1.26, allocations: 303.5 kB / 0.9796 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005899/1.261, allocations: 56 kB / 0.9797 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001471/1.263, allocations: 67.95 kB / 0.9797 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004459/1.263, allocations: 200.9 kB / 0.9799 GB, free: 14.48 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002383/1.263, allocations: 91.95 kB / 0.98 GB, free: 14.39 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001886/1.265, allocations: 1.074 MB / 0.9811 GB, free: 13.33 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.6e-07/1.265, allocations: 0 / 0.9811 GB, free: 13.33 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.003851/1.269, allocations: 1.229 MB / 0.9823 GB, free: 12.1 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.01142/1.28, allocations: 6.686 MB / 0.9888 GB, free: 5.344 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.006206/1.287, allocations: 3.231 MB / 0.9919 GB, free: 2.066 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.142e-05/1.287, allocations: 0 / 0.9919 GB, free: 2.066 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.003926/1.291, allocations: 2.167 MB / 0.9941 GB, free: 15.85 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004586/1.295, allocations: 0.8312 MB / 0.9949 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03953/1.335, allocations: 20.23 MB / 1.015 GB, free: 10.25 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002381/1.337, allocations: 1.659 MB / 1.016 GB, free: 8.551 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.002594/1.34, allocations: 0.5757 MB / 1.017 GB, free: 8.016 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001838/1.342, allocations: 1.011 MB / 1.018 GB, free: 7.004 MB / 0.7637 GB Notification: Performance of SimCode: time 1.623e-06/1.342, allocations: 0 / 1.018 GB, free: 7.004 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4314/1.773, allocations: 83.33 MB / 1.099 GB, free: 268.2 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.82/16.59, allocations: 7.25 kB / 1.099 GB, free: 268.2 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