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.0009136/0.0009136, allocations: 169.3 kB / 16.1 MB, free: 5.688 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.175/1.175, allocations: 205 MB / 221.9 MB, free: 9.141 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.0007096/0.0007096, allocations: 87.92 kB / 269.9 MB, free: 8.68 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.5915/0.5915, allocations: 90.51 MB / 408.3 MB, free: 3.941 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002662/0.0002662, allocations: 11.94 kB / 484.8 MB, free: 7.223 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2387/0.239, allocations: 65.81 MB / 0.5377 GB, free: 34.91 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.1228/0.3618, allocations: 140.9 MB / 0.6753 GB, free: 9.586 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.004083/0.3659, allocations: 4.487 MB / 0.6797 GB, free: 5.082 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001357/0.366, allocations: 7.938 kB / 0.6797 GB, free: 5.074 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.000478/0.3665, allocations: 163.2 kB / 0.6799 GB, free: 4.914 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.0004374/0.367, allocations: 262.6 kB / 0.6801 GB, free: 4.656 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007063/0.3677, allocations: 382.7 kB / 0.6805 GB, free: 4.281 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0006363/0.3683, allocations: 0.8337 MB / 0.6813 GB, free: 3.441 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001502/0.3685, allocations: 92.44 kB / 0.6814 GB, free: 3.359 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004568/0.369, allocations: 294.9 kB / 0.6817 GB, free: 3.07 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003672/0.3693, allocations: 315 kB / 0.682 GB, free: 2.762 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 4.299e-05/0.3694, allocations: 16 kB / 0.682 GB, free: 2.746 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008295/0.3702, allocations: 0.5534 MB / 0.6825 GB, free: 2.191 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 7.999e-05/0.3703, allocations: 79.72 kB / 0.6826 GB, free: 2.113 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0001391/0.3705, allocations: 167.2 kB / 0.6828 GB, free: 1.949 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0004229/0.3709, allocations: 423 kB / 0.6832 GB, free: 1.535 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.3709, allocations: 0 / 0.6832 GB, free: 1.535 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.332e-06/0.3709, allocations: 0 / 0.6832 GB, free: 1.535 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.3709, allocations: 0 / 0.6832 GB, free: 1.535 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.001208/0.3721, allocations: 0.656 MB / 0.6838 GB, free: 0.832 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.137e-05/0.3722, allocations: 8.031 kB / 0.6838 GB, free: 0.8242 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.9e-05/0.3722, allocations: 32.56 kB / 0.6838 GB, free: 0.793 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003033/0.3726, allocations: 307.3 kB / 0.6841 GB, free: 464 kB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.658e-05/0.3726, allocations: 16.94 kB / 0.6842 GB, free: 448 kB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.815e-05/0.3726, allocations: 24.38 kB / 0.6842 GB, free: 424 kB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005458/0.3732, allocations: 408.8 kB / 0.6846 GB, free: 4 kB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.1819/0.5551, allocations: 3.938 kB / 0.6846 GB, free: 0 / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001034/0.5552, allocations: 3.812 kB / 0.6846 GB, free: 145.2 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.84e-05/0.5553, allocations: 23.02 kB / 0.6846 GB, free: 145.2 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009023/0.5562, allocations: 490 kB / 0.6851 GB, free: 145.2 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001926/0.5581, allocations: 1.492 MB / 0.6865 GB, free: 144.2 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006792/0.5588, allocations: 442.1 kB / 0.6869 GB, free: 144 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003772/0.5592, allocations: 272.6 kB / 0.6872 GB, free: 143.9 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001118/0.5593, allocations: 97.78 kB / 0.6873 GB, free: 143.8 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.474e-05/0.5593, allocations: 40.59 kB / 0.6873 GB, free: 143.8 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=38): time 1.904e-06/0.5593, allocations: 0 / 0.6873 GB, free: 143.8 MB / 0.4948 GB Notification: Performance of matching and sorting (n=39): time 0.002712/0.5621, allocations: 1.79 MB / 0.6891 GB, free: 142.7 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.287e-05/0.5621, allocations: 54.84 kB / 0.6891 GB, free: 142.6 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001925/0.5623, allocations: 232 kB / 0.6894 GB, free: 142.5 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.625e-05/0.5623, allocations: 36.39 kB / 0.6894 GB, free: 142.5 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 5.578e-05/0.5624, allocations: 146.9 kB / 0.6895 GB, free: 142.3 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 8.516e-05/0.5625, allocations: 130.2 kB / 0.6897 GB, free: 142.2 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.918e-05/0.5625, allocations: 9.812 kB / 0.6897 GB, free: 142.2 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 6.146e-05/0.5626, allocations: 339.9 kB / 0.69 GB, free: 141.9 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002928/0.5629, allocations: 201.7 kB / 0.6902 GB, free: 141.8 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003025/0.5632, allocations: 206 kB / 0.6904 GB, free: 141.7 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006485/0.5638, allocations: 473.3 kB / 0.6908 GB, free: 141.6 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.5638, allocations: 0 / 0.6908 GB, free: 141.6 MB / 0.4948 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009553/0.5648, allocations: 0.6231 MB / 0.6914 GB, free: 141.3 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.5648, allocations: 6.594 kB / 0.6914 GB, free: 141.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/0.5648, allocations: 1.25 kB / 0.6914 GB, free: 141.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003708/0.5652, allocations: 111.9 kB / 0.6915 GB, free: 141.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002737/0.5655, allocations: 56.78 kB / 0.6916 GB, free: 141.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0021/0.5676, allocations: 2.127 MB / 0.6937 GB, free: 139.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001955/0.5678, allocations: 17.61 kB / 0.6937 GB, free: 139.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.11e-05/0.5679, allocations: 12.72 kB / 0.6937 GB, free: 139.5 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 (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.000147/0.568, allocations: 163.9 kB / 0.6939 GB, free: 139.4 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.733e-05/0.5681, allocations: 28.73 kB / 0.6939 GB, free: 139.4 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001159/0.5693, allocations: 0.6891 MB / 0.6946 GB, free: 139.1 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.441e-06/0.5693, allocations: 4.219 kB / 0.6946 GB, free: 139.1 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.5693, allocations: 2.625 kB / 0.6946 GB, free: 139.1 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.79e-06/0.5693, allocations: 6 kB / 0.6946 GB, free: 139 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005012/0.5698, allocations: 472 kB / 0.695 GB, free: 138.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.5698, allocations: 2.031 kB / 0.695 GB, free: 138.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002166/0.57, allocations: 48.95 kB / 0.6951 GB, free: 138.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002893/0.5703, allocations: 123.4 kB / 0.6952 GB, free: 138.7 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.236e-05/0.5704, allocations: 14.47 kB / 0.6952 GB, free: 138.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001769/0.5722, allocations: 2.132 MB / 0.6973 GB, free: 137 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.5722, allocations: 0 / 0.6973 GB, free: 137 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001256/0.5734, allocations: 1.008 MB / 0.6983 GB, free: 136.5 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 4.88e-05/0.5735, allocations: 100 kB / 0.6984 GB, free: 136.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.663e-05/0.5735, allocations: 6.938 kB / 0.6984 GB, free: 136.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002031/0.5738, allocations: 19.92 kB / 0.6984 GB, free: 136.4 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.06e-05/0.5738, allocations: 39.12 kB / 0.6984 GB, free: 136.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.76e-05/0.5739, allocations: 12.06 kB / 0.6984 GB, free: 136.4 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.000102/0.574, allocations: 169.7 kB / 0.6986 GB, free: 136.3 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.01e-07/0.574, allocations: 0 / 0.6986 GB, free: 136.3 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.000457/0.5744, allocations: 116.9 kB / 0.6987 GB, free: 136.2 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 (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.0002239/0.5747, allocations: 192.2 kB / 0.6989 GB, free: 136.1 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0009696/0.5757, allocations: 0.7709 MB / 0.6997 GB, free: 135.7 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.5757, allocations: 0 / 0.6997 GB, free: 135.7 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0006311/0.5763, allocations: 0.5539 MB / 0.7002 GB, free: 135.3 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004992/0.5768, allocations: 80.59 kB / 0.7003 GB, free: 135.3 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001249/0.5781, allocations: 1.02 MB / 0.7013 GB, free: 134.5 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000199/0.5783, allocations: 0.8051 MB / 0.7021 GB, free: 133.8 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001021/0.5784, allocations: 39.98 kB / 0.7021 GB, free: 133.8 MB / 0.4948 GB Notification: Performance of SimCode: time 2.1e-07/0.5784, allocations: 0 / 0.7021 GB, free: 133.8 MB / 0.4948 GB Notification: Performance of Templates: time 0.006963/0.5854, allocations: 7.48 MB / 0.7094 GB, free: 128 MB / 0.4948 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