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.001508/0.001508, allocations: 177.1 kB / 15.78 MB, free: 6.352 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.178/2.178, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.0007943/0.000794, allocations: 94.34 kB / 270.3 MB, free: 13.36 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.8028/0.8028, allocations: 90.6 MB / 409.1 MB, free: 14.99 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004031/0.0004033, allocations: 8 kB / 485.9 MB, free: 2.086 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4199/0.4203, allocations: 66.27 MB / 0.5392 GB, free: 45.72 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.1673/0.5876, allocations: 131.2 MB / 0.6673 GB, free: 8.5 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.004855/0.5925, allocations: 4.195 MB / 0.6714 GB, free: 4.297 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003586/0.5929, allocations: 7.938 kB / 0.6715 GB, free: 4.289 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006453/0.5936, allocations: 159.1 kB / 0.6716 GB, free: 4.133 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007543/0.5944, allocations: 286.3 kB / 0.6719 GB, free: 3.852 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000931/0.5953, allocations: 315.3 kB / 0.6722 GB, free: 3.543 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007223/0.596, allocations: 0.7011 MB / 0.6729 GB, free: 2.84 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001783/0.5962, allocations: 72.09 kB / 0.6729 GB, free: 2.777 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000522/0.5968, allocations: 274.9 kB / 0.6732 GB, free: 2.508 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004427/0.5972, allocations: 303.1 kB / 0.6735 GB, free: 2.211 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 4.308e-05/0.5973, allocations: 16.56 kB / 0.6735 GB, free: 2.195 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008721/0.5981, allocations: 431.1 kB / 0.6739 GB, free: 1.773 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 8.621e-05/0.5982, allocations: 71.78 kB / 0.674 GB, free: 1.703 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 8.231e-05/0.5983, allocations: 85.52 kB / 0.6741 GB, free: 1.613 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004841/0.5988, allocations: 379.1 kB / 0.6744 GB, free: 1.242 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.5988, allocations: 0 / 0.6744 GB, free: 1.242 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.5989, allocations: 1.594 kB / 0.6744 GB, free: 1.242 MB / 490.7 MB Notification: Performance of Transformations before backend: time 5.54e-06/0.5989, allocations: 0 / 0.6744 GB, free: 1.242 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.001484/0.6004, allocations: 0.663 MB / 0.6751 GB, free: 0.5352 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.6004, allocations: 8.031 kB / 0.6751 GB, free: 0.5273 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.101e-05/0.6005, allocations: 31.62 kB / 0.6751 GB, free: 0.4961 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000378/0.6009, allocations: 303.8 kB / 0.6754 GB, free: 164 kB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.734e-05/0.6009, allocations: 20.56 kB / 0.6754 GB, free: 144 kB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.156e-05/0.601, allocations: 28.61 kB / 0.6754 GB, free: 116 kB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007352/0.6017, allocations: 400.7 kB / 0.6758 GB, free: 15.71 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.6017, allocations: 0 / 0.6758 GB, free: 15.71 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.399e-05/0.6018, allocations: 8 kB / 0.6758 GB, free: 15.71 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.389e-05/0.6018, allocations: 20.55 kB / 0.6759 GB, free: 15.68 MB / 0.4949 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007511/0.6026, allocations: 489.8 kB / 0.6763 GB, free: 15.21 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002142/0.6047, allocations: 1.493 MB / 0.6778 GB, free: 13.56 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006828/0.6054, allocations: 434.3 kB / 0.6782 GB, free: 13.12 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004544/0.6059, allocations: 280.8 kB / 0.6785 GB, free: 12.85 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001433/0.6061, allocations: 97.08 kB / 0.6786 GB, free: 12.74 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.026e-05/0.6061, allocations: 35.97 kB / 0.6786 GB, free: 12.7 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=38): time 2.554e-06/0.6061, allocations: 0 / 0.6786 GB, free: 12.7 MB / 0.4949 GB Notification: Performance of matching and sorting (n=39): time 0.002975/0.6091, allocations: 1.793 MB / 0.6803 GB, free: 10.79 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.973e-05/0.6092, allocations: 55.41 kB / 0.6804 GB, free: 10.72 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002274/0.6094, allocations: 221 kB / 0.6806 GB, free: 10.5 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 3.735e-05/0.6094, allocations: 29.7 kB / 0.6806 GB, free: 10.46 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 9.682e-05/0.6095, allocations: 144.9 kB / 0.6808 GB, free: 10.32 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001182/0.6097, allocations: 142 kB / 0.6809 GB, free: 10.18 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.204e-05/0.6097, allocations: 4 kB / 0.6809 GB, free: 10.18 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0001351/0.6098, allocations: 338.8 kB / 0.6812 GB, free: 9.836 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003097/0.6102, allocations: 211.6 kB / 0.6814 GB, free: 9.629 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002933/0.6105, allocations: 203.9 kB / 0.6816 GB, free: 9.43 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003379/0.6108, allocations: 228 kB / 0.6818 GB, free: 9.207 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.6108, allocations: 0 / 0.6818 GB, free: 9.207 MB / 0.4949 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009909/0.6118, allocations: 0.6225 MB / 0.6825 GB, free: 8.574 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.6118, allocations: 9.875 kB / 0.6825 GB, free: 8.566 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.6119, allocations: 0 / 0.6825 GB, free: 8.566 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003777/0.6122, allocations: 118 kB / 0.6826 GB, free: 8.449 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002731/0.6125, allocations: 51.89 kB / 0.6826 GB, free: 8.398 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002498/0.615, allocations: 2.126 MB / 0.6847 GB, free: 6.141 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002351/0.6153, allocations: 11.94 kB / 0.6847 GB, free: 6.129 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.836e-05/0.6153, allocations: 16.03 kB / 0.6847 GB, free: 6.113 MB / 0.4949 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.0001966/0.6155, allocations: 165.7 kB / 0.6849 GB, free: 5.941 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.134e-05/0.6156, allocations: 27.62 kB / 0.6849 GB, free: 5.914 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001155/0.6168, allocations: 0.6764 MB / 0.6856 GB, free: 5.234 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.022e-06/0.6168, allocations: 7.938 kB / 0.6856 GB, free: 5.227 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.6168, allocations: 4 kB / 0.6856 GB, free: 5.223 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.6168, allocations: 4 kB / 0.6856 GB, free: 5.219 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005773/0.6174, allocations: 485.1 kB / 0.686 GB, free: 4.695 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.6174, allocations: 0 / 0.686 GB, free: 4.695 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002325/0.6176, allocations: 43.95 kB / 0.6861 GB, free: 4.652 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003381/0.618, allocations: 126.4 kB / 0.6862 GB, free: 4.527 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.731e-05/0.618, allocations: 17.3 kB / 0.6862 GB, free: 4.512 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002235/0.6203, allocations: 2.109 MB / 0.6883 GB, free: 2.27 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.434e-06/0.6203, allocations: 8.031 kB / 0.6883 GB, free: 2.262 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001427/0.6217, allocations: 1.01 MB / 0.6893 GB, free: 1.234 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 7.001e-05/0.6218, allocations: 100.8 kB / 0.6894 GB, free: 1.117 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.14e-05/0.6219, allocations: 8 kB / 0.6894 GB, free: 1.109 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002358/0.6221, allocations: 19.89 kB / 0.6894 GB, free: 1.09 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.079e-05/0.6222, allocations: 27.95 kB / 0.6894 GB, free: 1.062 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.522e-05/0.6222, allocations: 15.98 kB / 0.6894 GB, free: 1.047 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.0001397/0.6224, allocations: 164.5 kB / 0.6896 GB, free: 0.8867 MB / 0.4949 GB Notification: Performance of sort global known variables: time 2.1e-07/0.6224, allocations: 0 / 0.6896 GB, free: 0.8867 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.0005484/0.6229, allocations: 123.9 kB / 0.6897 GB, free: 0.7656 MB / 0.4949 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.0003039/0.6233, allocations: 187.7 kB / 0.6899 GB, free: 0.5781 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.001255/0.6245, allocations: 0.774 MB / 0.6907 GB, free: 15.77 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.6245, allocations: 112 / 0.6907 GB, free: 15.77 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0007894/0.6253, allocations: 0.5581 MB / 0.6912 GB, free: 15.19 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006255/0.626, allocations: 80 kB / 0.6913 GB, free: 15.12 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001586/0.6276, allocations: 1.056 MB / 0.6923 GB, free: 14.04 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003915/0.628, allocations: 0.8114 MB / 0.6931 GB, free: 13.2 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001246/0.6281, allocations: 47.33 kB / 0.6931 GB, free: 13.16 MB / 0.5105 GB Notification: Performance of SimCode: time 8.01e-07/0.6281, allocations: 0 / 0.6931 GB, free: 13.16 MB / 0.5105 GB Notification: Performance of Templates: time 0.01026/0.6384, allocations: 7.475 MB / 0.7004 GB, free: 5.805 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