Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.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.Topology.Tests.TestJunction,fileNamePrefix="ThermofluidStream_ThermofluidStream_Topology_Tests_TestJunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunction,fileNamePrefix="ThermofluidStream_ThermofluidStream_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.001645/0.00165, 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.001893/0.001893, allocations: 194.7 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.328/1.328, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.646/0.646, allocations: 91.2 MB / 381.6 MB, free: 9.43 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 78.91 kB / 460.4 MB, free: 23.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1083, allocations: 67.7 MB / 0.5157 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.383/0.4913, allocations: 144.5 MB / 0.6568 GB, free: 6.316 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004795/0.4962, allocations: 4.539 MB / 0.6612 GB, free: 2.637 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002676/0.4964, allocations: 21.62 kB / 0.6613 GB, free: 2.629 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005924/0.4971, allocations: 193.5 kB / 0.6615 GB, free: 2.469 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005728/0.4977, allocations: 291.7 kB / 0.6617 GB, free: 2.23 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008847/0.4986, allocations: 426.5 kB / 0.6621 GB, free: 1.914 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005632/0.4991, allocations: 0.6686 MB / 0.6628 GB, free: 1.523 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001957/0.4993, allocations: 119.3 kB / 0.6629 GB, free: 1.465 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005568/0.4999, allocations: 356.5 kB / 0.6632 GB, free: 1.25 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003918/0.5003, allocations: 321.5 kB / 0.6636 GB, free: 1.07 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 4.689e-05/0.5004, allocations: 34.47 kB / 0.6636 GB, free: 1.066 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007381/0.5011, allocations: 456 kB / 0.664 GB, free: 0.8633 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001032/0.5012, allocations: 100.3 kB / 0.6641 GB, free: 0.7891 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001725/0.5014, allocations: 208.6 kB / 0.6643 GB, free: 0.6484 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006799/0.5021, allocations: 0.5963 MB / 0.6649 GB, free: 280 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.5021, allocations: 4 kB / 0.6649 GB, free: 276 kB / 478.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.5021, allocations: 4 kB / 0.6649 GB, free: 272 kB / 478.1 MB Notification: Performance of Transformations before backend: time 7.865e-06/0.5021, allocations: 0 / 0.6649 GB, free: 272 kB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.001431/0.5036, allocations: 0.7946 MB / 0.6657 GB, free: 15.61 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.5036, allocations: 10.16 kB / 0.6657 GB, free: 15.61 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.514e-05/0.5037, allocations: 60.86 kB / 0.6657 GB, free: 15.55 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.097e-05/0.5038, allocations: 46.72 kB / 0.6658 GB, free: 15.53 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005052/0.5043, allocations: 417.1 kB / 0.6662 GB, free: 15.16 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.032e-05/0.5043, allocations: 22.97 kB / 0.6662 GB, free: 15.15 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.396e-05/0.5044, allocations: 27.59 kB / 0.6662 GB, free: 15.14 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006095/0.505, allocations: 441.2 kB / 0.6667 GB, free: 14.85 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.505, allocations: 2.531 kB / 0.6667 GB, free: 14.85 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.51e-05/0.5051, allocations: 15.97 kB / 0.6667 GB, free: 14.83 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.653e-05/0.5051, allocations: 20.05 kB / 0.6667 GB, free: 14.83 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006633/0.5058, allocations: 479.7 kB / 0.6672 GB, free: 14.59 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001952/0.5077, allocations: 1.432 MB / 0.6686 GB, free: 13.4 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004319/0.5082, allocations: 248.2 kB / 0.6688 GB, free: 13.26 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002996/0.5085, allocations: 209.8 kB / 0.669 GB, free: 13.15 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002741/0.5088, allocations: 339.8 kB / 0.6693 GB, free: 12.76 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.547e-05/0.5088, allocations: 42.48 kB / 0.6694 GB, free: 12.71 MB / 494.1 MB Notification: Performance of pre-optimization done (n=32): time 1.443e-06/0.5088, allocations: 0 / 0.6694 GB, free: 12.71 MB / 494.1 MB Notification: Performance of matching and sorting (n=33): time 0.002514/0.5113, allocations: 1.519 MB / 0.6708 GB, free: 11.59 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.16e-05/0.5114, allocations: 53.69 kB / 0.6709 GB, free: 11.53 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003438/0.5117, allocations: 371.5 kB / 0.6712 GB, free: 11.3 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.638e-05/0.5118, allocations: 29.7 kB / 0.6713 GB, free: 11.27 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.5119, allocations: 190.4 kB / 0.6715 GB, free: 11.1 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001011/0.512, allocations: 121.2 kB / 0.6716 GB, free: 10.99 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.5121, allocations: 64.67 kB / 0.6716 GB, free: 10.95 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.5123, allocations: 356.4 kB / 0.672 GB, free: 10.6 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002335/0.5125, allocations: 146.3 kB / 0.6721 GB, free: 10.52 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002264/0.5127, allocations: 158.2 kB / 0.6723 GB, free: 10.44 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005015/0.5132, allocations: 332.1 kB / 0.6726 GB, free: 10.27 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.5133, allocations: 0 / 0.6726 GB, free: 10.27 MB / 494.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008313/0.5141, allocations: 0.5166 MB / 0.6731 GB, free: 9.977 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.5141, allocations: 4.844 kB / 0.6731 GB, free: 9.977 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.5141, allocations: 0 / 0.6731 GB, free: 9.977 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003456/0.5145, allocations: 124.3 kB / 0.6732 GB, free: 9.914 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002582/0.5147, allocations: 51.17 kB / 0.6733 GB, free: 9.898 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002472/0.5172, allocations: 2.336 MB / 0.6755 GB, free: 7.832 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001956/0.5174, allocations: 10.44 kB / 0.6755 GB, free: 7.824 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.64e-05/0.5175, allocations: 18.2 kB / 0.6756 GB, free: 7.816 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,9,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001872/0.5177, allocations: 171.6 kB / 0.6757 GB, free: 7.664 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.21e-05/0.5178, allocations: 39.59 kB / 0.6758 GB, free: 7.645 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001015/0.5188, allocations: 0.6599 MB / 0.6764 GB, free: 7.176 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.5188, allocations: 2.688 kB / 0.6764 GB, free: 7.176 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.5188, allocations: 2.234 kB / 0.6764 GB, free: 7.176 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.5188, allocations: 3.938 kB / 0.6764 GB, free: 7.172 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004316/0.5193, allocations: 432.7 kB / 0.6768 GB, free: 6.801 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.5193, allocations: 3.938 kB / 0.6768 GB, free: 6.797 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001803/0.5195, allocations: 39.8 kB / 0.6769 GB, free: 6.777 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003099/0.5198, allocations: 126 kB / 0.677 GB, free: 6.715 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.944e-05/0.5198, allocations: 9.953 kB / 0.677 GB, free: 6.707 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002502/0.5223, allocations: 2.34 MB / 0.6793 GB, free: 4.633 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.5223, allocations: 0 / 0.6793 GB, free: 4.633 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001012/0.5234, allocations: 0.6448 MB / 0.6799 GB, free: 4.242 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.073e-05/0.5235, allocations: 115 kB / 0.68 GB, free: 4.121 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.684e-05/0.5235, allocations: 6.406 kB / 0.68 GB, free: 4.117 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001758/0.5237, allocations: 14.44 kB / 0.68 GB, free: 4.105 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.522e-05/0.5238, allocations: 21.8 kB / 0.6801 GB, free: 4.094 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.352e-05/0.5238, allocations: 13.23 kB / 0.6801 GB, free: 4.086 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003005/0.5241, allocations: 293.8 kB / 0.6804 GB, free: 3.91 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5241, allocations: 0 / 0.6804 GB, free: 3.91 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000478/0.5246, allocations: 116.9 kB / 0.6805 GB, free: 3.887 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (source.outlet.m_flow,source1.outlet.m_flow,source2.outlet.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 (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,8,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00142/0.526, allocations: 1.262 MB / 0.6817 GB, free: 2.93 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0009514/0.527, allocations: 0.5399 MB / 0.6822 GB, free: 2.59 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.527, allocations: 0 / 0.6822 GB, free: 2.59 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005883/0.5276, allocations: 361.7 kB / 0.6826 GB, free: 2.344 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005809/0.5282, allocations: 105 kB / 0.6827 GB, free: 2.293 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005178/0.5334, allocations: 4.067 MB / 0.6866 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003603/0.5337, allocations: 0.825 MB / 0.6875 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002513/0.534, allocations: 91.91 kB / 0.6875 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001925/0.5342, allocations: 143.4 kB / 0.6877 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.5342, allocations: 0 / 0.6877 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03565/0.5699, allocations: 11.44 MB / 0.6988 GB, free: 3.293 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.516/10.09, allocations: 0 / 0.6988 GB, free: 3.293 MB / 0.4981 GB (rm -f ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.pipe >> ../files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Topology_Tests_TestJunction_fmu --startTime=0 --stopTime=1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Topology_Tests_TestJunction.fmu > ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Topology.Tests.TestJunction_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches