Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Topology.Tests.TestJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|junctionN.outlet.m_flow|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction") translateModel(ThermofluidStream.Topology.Tests.TestJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|junctionN.outlet.m_flow|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.004703/0.004703, allocations: 166.7 kB / 15.13 MB, free: 6.02 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.291/1.291, allocations: 205.4 MB / 221.3 MB, free: 13.8 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007405/0.0007406, allocations: 86.34 kB / 269.6 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.6561/0.6561, allocations: 90.61 MB / 408.5 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002753/0.0002753, allocations: 8 kB / 485.2 MB, free: 2.066 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2824/0.2827, allocations: 66.28 MB / 0.5386 GB, free: 45.43 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.1258/0.4085, allocations: 131.2 MB / 0.6667 GB, free: 8.441 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.004427/0.413, allocations: 4.203 MB / 0.6708 GB, free: 4.23 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003049/0.4133, allocations: 7.938 kB / 0.6708 GB, free: 4.223 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006154/0.4139, allocations: 155.1 kB / 0.671 GB, free: 4.07 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007311/0.4147, allocations: 294.3 kB / 0.6713 GB, free: 3.781 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009802/0.4157, allocations: 302.8 kB / 0.6716 GB, free: 3.484 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007571/0.4164, allocations: 0.6933 MB / 0.6722 GB, free: 2.789 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002043/0.4167, allocations: 80.08 kB / 0.6723 GB, free: 2.719 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006066/0.4173, allocations: 271 kB / 0.6726 GB, free: 2.453 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005149/0.4178, allocations: 311 kB / 0.6729 GB, free: 2.148 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 6.536e-05/0.4179, allocations: 16 kB / 0.6729 GB, free: 2.133 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009388/0.4188, allocations: 423.7 kB / 0.6733 GB, free: 1.719 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001066/0.4189, allocations: 79.72 kB / 0.6734 GB, free: 1.641 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001056/0.4191, allocations: 89.52 kB / 0.6734 GB, free: 1.547 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005265/0.4196, allocations: 371.1 kB / 0.6738 GB, free: 1.184 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.4196, allocations: 0 / 0.6738 GB, free: 1.184 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4196, allocations: 0 / 0.6738 GB, free: 1.184 MB / 490.7 MB Notification: Performance of Transformations before backend: time 9.367e-06/0.4196, allocations: 1.781 kB / 0.6738 GB, free: 1.184 MB / 490.7 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.001428/0.4211, allocations: 0.6669 MB / 0.6744 GB, free: 484 kB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.4211, allocations: 8.031 kB / 0.6745 GB, free: 476 kB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001028/0.4212, allocations: 31.62 kB / 0.6745 GB, free: 444 kB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003595/0.4216, allocations: 299.8 kB / 0.6748 GB, free: 104 kB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.392e-05/0.4216, allocations: 20.56 kB / 0.6748 GB, free: 84 kB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.077e-05/0.4217, allocations: 24 kB / 0.6748 GB, free: 60 kB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006704/0.4224, allocations: 392.8 kB / 0.6752 GB, free: 15.66 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.4224, allocations: 0 / 0.6752 GB, free: 15.66 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.595e-05/0.4224, allocations: 15.91 kB / 0.6752 GB, free: 15.65 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.724e-05/0.4225, allocations: 20.55 kB / 0.6752 GB, free: 15.63 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007102/0.4232, allocations: 485.9 kB / 0.6757 GB, free: 15.16 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002073/0.4253, allocations: 1.506 MB / 0.6772 GB, free: 13.5 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006609/0.4259, allocations: 430.3 kB / 0.6776 GB, free: 13.07 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003711/0.4263, allocations: 272.7 kB / 0.6778 GB, free: 12.8 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001294/0.4265, allocations: 101.1 kB / 0.6779 GB, free: 12.68 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.269e-05/0.4265, allocations: 34.56 kB / 0.678 GB, free: 12.64 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=38): time 2.044e-06/0.4265, allocations: 0 / 0.678 GB, free: 12.64 MB / 0.4948 GB Notification: Performance of matching and sorting (n=39): time 0.002914/0.4294, allocations: 1.793 MB / 0.6797 GB, free: 10.73 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.53e-05/0.4295, allocations: 57.38 kB / 0.6798 GB, free: 10.66 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001998/0.4297, allocations: 221 kB / 0.68 GB, free: 10.44 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.478e-05/0.4297, allocations: 33.7 kB / 0.68 GB, free: 10.4 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 7.832e-05/0.4298, allocations: 144.9 kB / 0.6801 GB, free: 10.26 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001087/0.4299, allocations: 134 kB / 0.6803 GB, free: 10.12 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.595e-05/0.43, allocations: 12 kB / 0.6803 GB, free: 10.11 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001156/0.4301, allocations: 342.8 kB / 0.6806 GB, free: 9.77 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003018/0.4304, allocations: 199.6 kB / 0.6808 GB, free: 9.574 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002936/0.4307, allocations: 207.9 kB / 0.681 GB, free: 9.371 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003391/0.431, allocations: 232 kB / 0.6812 GB, free: 9.145 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.431, allocations: 0 / 0.6812 GB, free: 9.145 MB / 0.4948 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001005/0.4321, allocations: 0.6225 MB / 0.6818 GB, free: 8.512 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.4321, allocations: 4 kB / 0.6818 GB, free: 8.508 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.4321, allocations: 3.938 kB / 0.6818 GB, free: 8.504 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003641/0.4325, allocations: 112.8 kB / 0.6819 GB, free: 8.391 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000265/0.4327, allocations: 59.88 kB / 0.682 GB, free: 8.332 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002331/0.4351, allocations: 2.114 MB / 0.6841 GB, free: 6.086 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002097/0.4353, allocations: 15.97 kB / 0.6841 GB, free: 6.07 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.493e-05/0.4353, allocations: 15.98 kB / 0.6841 GB, free: 6.055 MB / 0.4948 GB 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 (28): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001843/0.4355, allocations: 153.8 kB / 0.6842 GB, free: 5.895 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.29e-05/0.4356, allocations: 31.62 kB / 0.6843 GB, free: 5.863 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001121/0.4367, allocations: 0.6841 MB / 0.6849 GB, free: 5.176 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.4368, allocations: 4 kB / 0.6849 GB, free: 5.172 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.4368, allocations: 4 kB / 0.6849 GB, free: 5.168 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.4368, allocations: 0 / 0.6849 GB, free: 5.168 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005378/0.4373, allocations: 487.3 kB / 0.6854 GB, free: 4.645 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.145e-06/0.4373, allocations: 0 / 0.6854 GB, free: 4.645 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002298/0.4376, allocations: 47.89 kB / 0.6855 GB, free: 4.598 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003334/0.4379, allocations: 134 kB / 0.6856 GB, free: 4.465 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.719e-05/0.438, allocations: 15.97 kB / 0.6856 GB, free: 4.449 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00226/0.4402, allocations: 2.117 MB / 0.6877 GB, free: 2.199 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.4402, allocations: 0.9375 kB / 0.6877 GB, free: 2.199 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001396/0.4416, allocations: 1.008 MB / 0.6887 GB, free: 1.172 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 6.549e-05/0.4417, allocations: 96.83 kB / 0.6887 GB, free: 1.059 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.72e-05/0.4418, allocations: 9.938 kB / 0.6888 GB, free: 1.051 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002317/0.442, allocations: 19.89 kB / 0.6888 GB, free: 1.031 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.653e-05/0.4421, allocations: 31.95 kB / 0.6888 GB, free: 1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.35e-05/0.4421, allocations: 15.98 kB / 0.6888 GB, free: 0.9844 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0001382/0.4423, allocations: 156.5 kB / 0.689 GB, free: 0.832 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4423, allocations: 0 / 0.689 GB, free: 0.832 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0005114/0.4428, allocations: 131.9 kB / 0.6891 GB, free: 0.7031 MB / 0.4948 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 (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,62.5%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00026/0.4431, allocations: 180.7 kB / 0.6893 GB, free: 0.5195 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.001204/0.4443, allocations: 0.7719 MB / 0.69 GB, free: 15.71 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.4443, allocations: 7.938 kB / 0.69 GB, free: 15.71 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0007988/0.4451, allocations: 0.5566 MB / 0.6906 GB, free: 15.13 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005519/0.4457, allocations: 74.89 kB / 0.6906 GB, free: 15.06 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001497/0.4472, allocations: 1.032 MB / 0.6917 GB, free: 14.01 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003739/0.4476, allocations: 0.8075 MB / 0.6924 GB, free: 13.18 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0002609/0.4478, allocations: 85.8 kB / 0.6925 GB, free: 13.1 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.767e-05/0.4479, allocations: 39.41 kB / 0.6926 GB, free: 13.06 MB / 0.5105 GB Notification: Performance of SimCode: time 4.01e-07/0.4479, allocations: 0 / 0.6926 GB, free: 13.06 MB / 0.5105 GB Notification: Performance of Templates: time 0.01111/0.459, allocations: 6.617 MB / 0.699 GB, free: 6.555 MB / 0.5105 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Topology.Tests.TestJunction_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches