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.001778/0.001778, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.002272/0.002272, allocations: 189.3 kB / 16.25 MB, free: 6.152 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.356/1.356, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6281/0.6281, allocations: 91.2 MB / 381.3 MB, free: 9.523 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 80.81 kB / 459.9 MB, free: 23.25 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1138, allocations: 67.69 MB / 0.5152 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.3925/0.5064, allocations: 142.8 MB / 0.6547 GB, free: 7.98 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.005052/0.5115, allocations: 4.568 MB / 0.6592 GB, free: 4.281 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004964/0.512, allocations: 23.44 kB / 0.6592 GB, free: 4.27 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007303/0.5128, allocations: 175.2 kB / 0.6594 GB, free: 4.129 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008573/0.5137, allocations: 260.4 kB / 0.6596 GB, free: 3.922 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001099/0.5148, allocations: 406.3 kB / 0.66 GB, free: 3.625 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008851/0.5157, allocations: 0.6606 MB / 0.6607 GB, free: 3.242 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002581/0.516, allocations: 119.6 kB / 0.6608 GB, free: 3.184 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000782/0.5168, allocations: 348.5 kB / 0.6611 GB, free: 2.977 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005037/0.5173, allocations: 339.5 kB / 0.6614 GB, free: 2.781 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 8.546e-05/0.5174, allocations: 32.75 kB / 0.6615 GB, free: 2.781 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008078/0.5182, allocations: 470.1 kB / 0.6619 GB, free: 2.566 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001109/0.5183, allocations: 94.45 kB / 0.662 GB, free: 2.496 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002269/0.5185, allocations: 204.1 kB / 0.6622 GB, free: 2.359 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008108/0.5194, allocations: 0.6039 MB / 0.6628 GB, free: 1.977 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.464e-06/0.5194, allocations: 0 / 0.6628 GB, free: 1.977 MB / 478.1 MB Notification: Performance of FrontEnd: time 9.71e-07/0.5194, allocations: 2.906 kB / 0.6628 GB, free: 1.977 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.152e-05/0.5194, allocations: 0 / 0.6628 GB, free: 1.977 MB / 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.001547/0.521, allocations: 0.7946 MB / 0.6636 GB, free: 1.32 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.521, allocations: 10.19 kB / 0.6636 GB, free: 1.32 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.831e-05/0.5211, allocations: 58.08 kB / 0.6636 GB, free: 1.262 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001052/0.5212, allocations: 50.62 kB / 0.6637 GB, free: 1.234 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005496/0.5218, allocations: 424.2 kB / 0.6641 GB, free: 0.8633 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.776e-05/0.5218, allocations: 18.34 kB / 0.6641 GB, free: 0.8555 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.182e-05/0.5219, allocations: 24 kB / 0.6641 GB, free: 0.8477 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006525/0.5225, allocations: 441.2 kB / 0.6645 GB, free: 0.5586 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.5225, allocations: 3.938 kB / 0.6645 GB, free: 0.5547 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.078e-05/0.5226, allocations: 11 kB / 0.6646 GB, free: 0.5469 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.972e-05/0.5226, allocations: 19.75 kB / 0.6646 GB, free: 0.543 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000672/0.5233, allocations: 483.5 kB / 0.665 GB, free: 308 kB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002144/0.5254, allocations: 1.431 MB / 0.6664 GB, free: 15.11 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004346/0.5259, allocations: 245.6 kB / 0.6667 GB, free: 14.98 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002919/0.5262, allocations: 205.7 kB / 0.6669 GB, free: 14.87 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002717/0.5265, allocations: 341.4 kB / 0.6672 GB, free: 14.48 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.004e-05/0.5265, allocations: 40.33 kB / 0.6672 GB, free: 14.43 MB / 494.1 MB Notification: Performance of pre-optimization done (n=32): time 2.074e-06/0.5265, allocations: 4 kB / 0.6672 GB, free: 14.43 MB / 494.1 MB Notification: Performance of matching and sorting (n=33): time 0.002591/0.5291, allocations: 1.521 MB / 0.6687 GB, free: 13.3 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.707e-05/0.5292, allocations: 56.41 kB / 0.6688 GB, free: 13.24 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000355/0.5295, allocations: 369.1 kB / 0.6691 GB, free: 13.02 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.407e-05/0.5296, allocations: 40.8 kB / 0.6692 GB, free: 12.97 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001188/0.5297, allocations: 189.9 kB / 0.6693 GB, free: 12.8 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.928e-05/0.5298, allocations: 118.9 kB / 0.6695 GB, free: 12.7 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/0.5299, allocations: 70.58 kB / 0.6695 GB, free: 12.64 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.5301, allocations: 353.1 kB / 0.6699 GB, free: 12.3 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002236/0.5303, allocations: 146.2 kB / 0.67 GB, free: 12.23 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002221/0.5305, allocations: 152.8 kB / 0.6701 GB, free: 12.15 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005129/0.531, allocations: 333 kB / 0.6705 GB, free: 11.98 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.5311, allocations: 6.469 kB / 0.6705 GB, free: 11.97 MB / 494.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008761/0.5319, allocations: 0.5126 MB / 0.671 GB, free: 11.68 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.532, allocations: 4.875 kB / 0.671 GB, free: 11.68 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.532, allocations: 0 / 0.671 GB, free: 11.68 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003621/0.5323, allocations: 119.6 kB / 0.6711 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002605/0.5326, allocations: 63.03 kB / 0.6711 GB, free: 11.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003036/0.5357, allocations: 2.323 MB / 0.6734 GB, free: 9.539 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003184/0.536, allocations: 14.19 kB / 0.6734 GB, free: 9.531 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.482e-05/0.5361, allocations: 15.64 kB / 0.6734 GB, free: 9.523 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.0002883/0.5364, allocations: 166 kB / 0.6736 GB, free: 9.375 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001209/0.5365, allocations: 43.78 kB / 0.6736 GB, free: 9.352 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001032/0.5375, allocations: 0.6516 MB / 0.6743 GB, free: 8.891 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.5376, allocations: 5.25 kB / 0.6743 GB, free: 8.891 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.5376, allocations: 3.984 kB / 0.6743 GB, free: 8.887 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.5376, allocations: 3.938 kB / 0.6743 GB, free: 8.883 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000452/0.538, allocations: 442.7 kB / 0.6747 GB, free: 8.504 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.5381, allocations: 7.875 kB / 0.6747 GB, free: 8.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001735/0.5382, allocations: 31.77 kB / 0.6748 GB, free: 8.488 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000305/0.5385, allocations: 124 kB / 0.6749 GB, free: 8.426 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.074e-05/0.5386, allocations: 18.61 kB / 0.6749 GB, free: 8.41 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00233/0.5409, allocations: 2.333 MB / 0.6772 GB, free: 6.344 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.5409, allocations: 2.625 kB / 0.6772 GB, free: 6.344 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009522/0.5419, allocations: 0.6505 MB / 0.6778 GB, free: 5.945 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.266e-05/0.542, allocations: 104.5 kB / 0.6779 GB, free: 5.832 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.798e-05/0.5421, allocations: 6.594 kB / 0.6779 GB, free: 5.828 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002032/0.5423, allocations: 16.78 kB / 0.6779 GB, free: 5.816 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.224e-05/0.5423, allocations: 15.66 kB / 0.6779 GB, free: 5.809 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.395e-05/0.5424, allocations: 16.81 kB / 0.678 GB, free: 5.797 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002748/0.5426, allocations: 299.8 kB / 0.6782 GB, free: 5.621 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5426, allocations: 0 / 0.6782 GB, free: 5.621 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0005219/0.5432, allocations: 113.3 kB / 0.6784 GB, free: 5.602 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.001457/0.5446, allocations: 1.261 MB / 0.6796 GB, free: 4.641 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0009133/0.5456, allocations: 0.5326 MB / 0.6801 GB, free: 4.309 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.5456, allocations: 4 kB / 0.6801 GB, free: 4.305 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005664/0.5462, allocations: 365.7 kB / 0.6805 GB, free: 4.055 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005643/0.5467, allocations: 105 kB / 0.6806 GB, free: 4.004 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00527/0.552, allocations: 4.158 MB / 0.6846 GB, free: 1.172 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003894/0.5524, allocations: 0.8231 MB / 0.6854 GB, free: 420 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0002382/0.5527, allocations: 99.69 kB / 0.6855 GB, free: 372 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000193/0.5529, allocations: 138.3 kB / 0.6856 GB, free: 256 kB / 494.1 MB Notification: Performance of SimCode: time 1.803e-06/0.5529, allocations: 0 / 0.6856 GB, free: 256 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5223/1.075, allocations: 11.39 MB / 0.6968 GB, free: 5.309 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002684/1.075, allocations: 221.5 kB / 0.697 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.286/3.362, allocations: 0 / 0.697 GB, free: 5.055 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