Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_ThermofluidStream_Topology_Tests_TestJunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunction,fileNamePrefix="ThermofluidStream_dev_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.001533/0.001533, 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.001556/0.001556, allocations: 195.5 kB / 16.53 MB, free: 6.391 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.415/1.415, allocations: 222.9 MB / 240.2 MB, free: 4.266 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7015/0.7015, allocations: 93.72 MB / 384.1 MB, free: 6.977 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002313/0.002313, allocations: 86.61 kB / 463.5 MB, free: 21.95 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1181, allocations: 68.26 MB / 0.5193 GB, free: 6.906 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.3831/0.5012, allocations: 144.5 MB / 0.6604 GB, free: 2.086 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.005202/0.5064, allocations: 4.579 MB / 0.6649 GB, free: 14.37 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003065/0.5068, allocations: 26.88 kB / 0.6649 GB, free: 14.36 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006083/0.5074, allocations: 207.5 kB / 0.6651 GB, free: 14.19 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000714/0.5081, allocations: 314 kB / 0.6654 GB, free: 13.93 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001005/0.5092, allocations: 431.8 kB / 0.6658 GB, free: 13.61 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007159/0.5099, allocations: 0.7294 MB / 0.6665 GB, free: 13.18 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002183/0.5101, allocations: 124 kB / 0.6667 GB, free: 13.12 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007/0.5108, allocations: 385.7 kB / 0.667 GB, free: 12.89 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004363/0.5113, allocations: 325.3 kB / 0.6673 GB, free: 12.7 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.293e-05/0.5113, allocations: 32.5 kB / 0.6674 GB, free: 12.7 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000808/0.5122, allocations: 464 kB / 0.6678 GB, free: 12.49 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001049/0.5123, allocations: 96.81 kB / 0.6679 GB, free: 12.42 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000205/0.5125, allocations: 220.2 kB / 0.6681 GB, free: 12.27 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007278/0.5132, allocations: 0.6173 MB / 0.6687 GB, free: 11.88 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.5132, allocations: 0 / 0.6687 GB, free: 11.88 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.5132, allocations: 0 / 0.6687 GB, free: 11.88 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.25e-05/0.5133, allocations: 0 / 0.6687 GB, free: 11.88 MB / 494.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.001507/0.5148, allocations: 0.8174 MB / 0.6695 GB, free: 11.21 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.5148, allocations: 14.19 kB / 0.6695 GB, free: 11.2 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.465e-05/0.5149, allocations: 68.23 kB / 0.6696 GB, free: 11.14 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.68e-05/0.515, allocations: 47.25 kB / 0.6696 GB, free: 11.11 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005838/0.5156, allocations: 445.5 kB / 0.6701 GB, free: 10.73 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.404e-05/0.5156, allocations: 20.67 kB / 0.6701 GB, free: 10.72 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.676e-05/0.5157, allocations: 30.69 kB / 0.6701 GB, free: 10.71 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006139/0.5163, allocations: 441.8 kB / 0.6705 GB, free: 10.42 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.5163, allocations: 4 kB / 0.6705 GB, free: 10.42 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.473e-05/0.5164, allocations: 10.53 kB / 0.6705 GB, free: 10.41 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.822e-05/0.5164, allocations: 16.67 kB / 0.6706 GB, free: 10.41 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006578/0.5171, allocations: 484.8 kB / 0.671 GB, free: 10.16 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001999/0.5191, allocations: 1.446 MB / 0.6724 GB, free: 8.965 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004217/0.5195, allocations: 250.3 kB / 0.6727 GB, free: 8.824 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00029/0.5198, allocations: 211.6 kB / 0.6729 GB, free: 8.715 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003107/0.5201, allocations: 337.1 kB / 0.6732 GB, free: 8.324 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.449e-05/0.5202, allocations: 32.66 kB / 0.6732 GB, free: 8.285 MB / 494.1 MB Notification: Performance of pre-optimization done (n=32): time 1.663e-06/0.5202, allocations: 0 / 0.6732 GB, free: 8.285 MB / 494.1 MB Notification: Performance of matching and sorting (n=33): time 0.002558/0.5227, allocations: 1.534 MB / 0.6747 GB, free: 7.156 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.345e-05/0.5228, allocations: 60.31 kB / 0.6748 GB, free: 7.09 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003971/0.5232, allocations: 396.5 kB / 0.6752 GB, free: 6.855 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.288e-05/0.5232, allocations: 29.7 kB / 0.6752 GB, free: 6.82 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001577/0.5234, allocations: 200.4 kB / 0.6754 GB, free: 6.641 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000109/0.5235, allocations: 121.7 kB / 0.6755 GB, free: 6.535 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/0.5236, allocations: 60.02 kB / 0.6756 GB, free: 6.492 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001792/0.5238, allocations: 363.5 kB / 0.6759 GB, free: 6.141 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000232/0.5241, allocations: 143.5 kB / 0.676 GB, free: 6.066 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002322/0.5243, allocations: 157.1 kB / 0.6762 GB, free: 5.984 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005083/0.5248, allocations: 337 kB / 0.6765 GB, free: 5.809 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.5248, allocations: 0 / 0.6765 GB, free: 5.809 MB / 494.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008446/0.5257, allocations: 0.5187 MB / 0.677 GB, free: 5.516 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.5257, allocations: 9.281 kB / 0.677 GB, free: 5.512 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.5257, allocations: 0 / 0.677 GB, free: 5.512 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003511/0.5261, allocations: 119 kB / 0.6771 GB, free: 5.453 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002653/0.5263, allocations: 61.66 kB / 0.6772 GB, free: 5.43 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002517/0.5289, allocations: 2.323 MB / 0.6795 GB, free: 3.375 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001874/0.5291, allocations: 13.88 kB / 0.6795 GB, free: 3.363 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.935e-05/0.5291, allocations: 16.2 kB / 0.6795 GB, free: 3.355 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.0001896/0.5293, allocations: 171.8 kB / 0.6797 GB, free: 3.203 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.903e-05/0.5294, allocations: 49.97 kB / 0.6797 GB, free: 3.176 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001055/0.5305, allocations: 0.6613 MB / 0.6804 GB, free: 2.707 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/0.5305, allocations: 10.02 kB / 0.6804 GB, free: 2.699 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.5305, allocations: 2.438 kB / 0.6804 GB, free: 2.699 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.676e-06/0.5305, allocations: 0 / 0.6804 GB, free: 2.699 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00045/0.5309, allocations: 438 kB / 0.6808 GB, free: 2.328 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.531, allocations: 3.938 kB / 0.6808 GB, free: 2.324 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001819/0.5311, allocations: 35.67 kB / 0.6808 GB, free: 2.309 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003102/0.5315, allocations: 127.8 kB / 0.6809 GB, free: 2.242 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.812e-05/0.5315, allocations: 16.86 kB / 0.681 GB, free: 2.23 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002457/0.534, allocations: 2.333 MB / 0.6832 GB, free: 164 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.534, allocations: 0 / 0.6832 GB, free: 164 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00101/0.535, allocations: 0.651 MB / 0.6839 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.197e-05/0.5351, allocations: 110.7 kB / 0.684 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.621e-05/0.5352, allocations: 4 kB / 0.684 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001747/0.5354, allocations: 7.219 kB / 0.684 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.182e-05/0.5354, allocations: 25.33 kB / 0.684 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.143e-05/0.5355, allocations: 14.3 kB / 0.684 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003217/0.5358, allocations: 328 kB / 0.6843 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5358, allocations: 0 / 0.6843 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004621/0.5363, allocations: 104.8 kB / 0.6844 GB, free: 15.4 MB / 0.4981 GB 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.001403/0.5377, allocations: 1.261 MB / 0.6857 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009178/0.5386, allocations: 0.5375 MB / 0.6862 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.5386, allocations: 0 / 0.6862 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005889/0.5392, allocations: 367.2 kB / 0.6865 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005735/0.5398, allocations: 111.5 kB / 0.6867 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005434/0.5452, allocations: 4.207 MB / 0.6908 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004393/0.5457, allocations: 0.8269 MB / 0.6916 GB, free: 9.535 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002735/0.546, allocations: 100 kB / 0.6917 GB, free: 9.438 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000218/0.5462, allocations: 155.4 kB / 0.6918 GB, free: 9.285 MB / 0.4981 GB Notification: Performance of SimCode: time 4.91e-07/0.5462, allocations: 0 / 0.6918 GB, free: 9.285 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03937/0.5856, allocations: 11.76 MB / 0.7033 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.519/10.1, allocations: 13.86 kB / 0.7033 GB, free: 13.66 MB / 0.5137 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Topology_Tests_TestJunction_fmu --startTime=0 --stopTime=1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Topology_Tests_TestJunction.fmu > ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.Topology.Tests.TestJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches