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/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.1-main/package.mo", uses=false) Using package ThermofluidStream with version 0.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/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_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_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.001634/0.001634, allocations: 182.2 kB / 15.98 MB, free: 5.77 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.448/1.448, allocations: 205.1 MB / 221.8 MB, free: 8.477 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.001234/0.001234, allocations: 94.28 kB / 269.2 MB, free: 8.441 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo): time 0.6804/0.6804, allocations: 91.23 MB / 407.8 MB, free: 2.535 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 63.84 kB / 483.5 MB, free: 6.594 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.2745, allocations: 64.97 MB / 0.5356 GB, free: 33.71 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.1279/0.4024, allocations: 142.6 MB / 0.6749 GB, free: 6.609 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.004288/0.4067, allocations: 4.538 MB / 0.6793 GB, free: 2.055 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000234/0.407, allocations: 7.938 kB / 0.6793 GB, free: 2.047 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0005574/0.4076, allocations: 167.2 kB / 0.6795 GB, free: 1.883 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.0005427/0.4081, allocations: 258.6 kB / 0.6797 GB, free: 1.629 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008328/0.409, allocations: 386.6 kB / 0.6801 GB, free: 1.25 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0006809/0.4097, allocations: 0.8337 MB / 0.6809 GB, free: 424 kB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001683/0.4099, allocations: 100.4 kB / 0.681 GB, free: 332 kB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004948/0.4104, allocations: 306.9 kB / 0.6813 GB, free: 24 kB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.2554/0.6657, allocations: 322.3 kB / 0.6816 GB, free: 2.324 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 8.617e-05/0.6658, allocations: 22.06 kB / 0.6816 GB, free: 2.324 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001017/0.6669, allocations: 0.5493 MB / 0.6822 GB, free: 2.324 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 8.207e-05/0.667, allocations: 89.39 kB / 0.6823 GB, free: 2.324 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0001909/0.6672, allocations: 173.2 kB / 0.6824 GB, free: 2.324 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0007713/0.6679, allocations: 0.5963 MB / 0.683 GB, free: 2.309 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.6679, allocations: 1.688 kB / 0.683 GB, free: 2.309 MB / 0.4948 GB Notification: Performance of FrontEnd: time 9.21e-07/0.668, allocations: 0.5 kB / 0.683 GB, free: 2.309 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 6.552e-06/0.668, allocations: 2.188 kB / 0.683 GB, free: 2.309 MB / 0.4948 GB 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.001648/0.6696, allocations: 0.7149 MB / 0.6837 GB, free: 17.84 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.6697, allocations: 10.06 kB / 0.6837 GB, free: 17.84 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.329e-05/0.6698, allocations: 32.44 kB / 0.6838 GB, free: 17.83 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003409/0.6701, allocations: 299.5 kB / 0.684 GB, free: 17.6 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.164e-05/0.6701, allocations: 20.53 kB / 0.6841 GB, free: 17.6 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.203e-05/0.6702, allocations: 26 kB / 0.6841 GB, free: 17.6 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007114/0.6709, allocations: 405.2 kB / 0.6845 GB, free: 17.55 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.6709, allocations: 0.7812 kB / 0.6845 GB, free: 17.55 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.192e-05/0.671, allocations: 12.72 kB / 0.6845 GB, free: 17.55 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-05/0.671, allocations: 18.62 kB / 0.6845 GB, free: 17.55 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008689/0.6719, allocations: 490.2 kB / 0.685 GB, free: 17.55 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002166/0.6741, allocations: 1.495 MB / 0.6864 GB, free: 16.72 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006611/0.6748, allocations: 441.4 kB / 0.6868 GB, free: 16.69 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000366/0.6751, allocations: 269.4 kB / 0.6871 GB, free: 16.68 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001238/0.6753, allocations: 97.81 kB / 0.6872 GB, free: 16.59 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.101e-05/0.6753, allocations: 36.52 kB / 0.6872 GB, free: 16.55 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=38): time 2.675e-06/0.6753, allocations: 2.953 kB / 0.6872 GB, free: 16.55 MB / 0.5105 GB Notification: Performance of matching and sorting (n=39): time 0.002877/0.6782, allocations: 1.798 MB / 0.689 GB, free: 15.93 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.82e-05/0.6782, allocations: 54.69 kB / 0.689 GB, free: 15.87 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002063/0.6784, allocations: 226.3 kB / 0.6893 GB, free: 15.77 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.263e-05/0.6785, allocations: 31.52 kB / 0.6893 GB, free: 15.73 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 8.38e-05/0.6786, allocations: 145.4 kB / 0.6894 GB, free: 15.64 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 9.287e-05/0.6787, allocations: 134.8 kB / 0.6896 GB, free: 15.55 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000123/0.6788, allocations: 71.47 kB / 0.6896 GB, free: 15.54 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001031/0.6789, allocations: 344.6 kB / 0.69 GB, free: 15.22 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002789/0.6792, allocations: 201.8 kB / 0.6901 GB, free: 15.22 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002979/0.6795, allocations: 204 kB / 0.6903 GB, free: 15.22 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005704/0.6801, allocations: 466.7 kB / 0.6908 GB, free: 15.21 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.6801, allocations: 2.906 kB / 0.6908 GB, free: 15.21 MB / 0.5105 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008374/0.6809, allocations: 0.63 MB / 0.6914 GB, free: 15.13 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.681, allocations: 6.125 kB / 0.6914 GB, free: 15.13 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.681, allocations: 0 / 0.6914 GB, free: 15.13 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000357/0.6813, allocations: 114 kB / 0.6915 GB, free: 15.12 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002469/0.6816, allocations: 53.42 kB / 0.6916 GB, free: 15.12 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002213/0.6838, allocations: 2.117 MB / 0.6936 GB, free: 13.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002327/0.6841, allocations: 19.55 kB / 0.6937 GB, free: 13.76 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.197e-05/0.6841, allocations: 14.91 kB / 0.6937 GB, free: 13.76 MB / 0.5105 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 (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.0001814/0.6843, allocations: 160.6 kB / 0.6938 GB, free: 13.65 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.043e-05/0.6844, allocations: 29.22 kB / 0.6939 GB, free: 13.63 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001292/0.6857, allocations: 0.6778 MB / 0.6945 GB, free: 13.56 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.83e-06/0.6857, allocations: 3.344 kB / 0.6945 GB, free: 13.56 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.6857, allocations: 5.094 kB / 0.6945 GB, free: 13.56 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.6857, allocations: 2.953 kB / 0.6945 GB, free: 13.56 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000658/0.6864, allocations: 476.4 kB / 0.695 GB, free: 13.37 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.6864, allocations: 0 / 0.695 GB, free: 13.37 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002293/0.6866, allocations: 49.36 kB / 0.695 GB, free: 13.36 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003183/0.687, allocations: 134.3 kB / 0.6952 GB, free: 13.35 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.24e-05/0.687, allocations: 18.78 kB / 0.6952 GB, free: 13.35 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002379/0.6894, allocations: 2.118 MB / 0.6972 GB, free: 11.99 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.6894, allocations: 0.5312 kB / 0.6972 GB, free: 11.99 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009084/0.6985, allocations: 6.781 MB / 0.7039 GB, free: 9.492 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 8.264e-05/0.6986, allocations: 107.5 kB / 0.704 GB, free: 9.379 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.62e-05/0.6987, allocations: 14.84 kB / 0.704 GB, free: 9.375 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002168/0.6989, allocations: 11.19 kB / 0.704 GB, free: 9.375 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001051/0.699, allocations: 36.58 kB / 0.704 GB, free: 9.371 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.597e-05/0.699, allocations: 15.16 kB / 0.704 GB, free: 9.371 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001484/0.6992, allocations: 160.8 kB / 0.7042 GB, free: 9.289 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6992, allocations: 0 / 0.7042 GB, free: 9.289 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001008/0.7002, allocations: 175.2 kB / 0.7044 GB, free: 9.289 MB / 0.5105 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 (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.0002974/0.7005, allocations: 199.1 kB / 0.7046 GB, free: 9.172 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001178/0.7017, allocations: 0.7622 MB / 0.7053 GB, free: 8.941 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.7017, allocations: 0 / 0.7053 GB, free: 8.941 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0007689/0.7025, allocations: 0.558 MB / 0.7058 GB, free: 8.707 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005668/0.7031, allocations: 88.33 kB / 0.7059 GB, free: 8.695 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002124/0.7052, allocations: 1.488 MB / 0.7074 GB, free: 7.906 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003566/0.7056, allocations: 0.8253 MB / 0.7082 GB, free: 7.199 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0002774/0.7059, allocations: 100.5 kB / 0.7083 GB, free: 7.184 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001093/0.706, allocations: 48 kB / 0.7083 GB, free: 7.172 MB / 0.5105 GB Notification: Performance of SimCode: time 2.6e-07/0.706, allocations: 0 / 0.7083 GB, free: 7.172 MB / 0.5105 GB Notification: Performance of Templates: time 0.01253/0.7185, allocations: 8.762 MB / 0.7169 GB, free: 6.5 MB / 0.5105 GB make -j1 -f ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.makefile (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 & ./ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > 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","../files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches