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.008839/0.008839, allocations: 170.8 kB / 15.12 MB, free: 6.031 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.733/1.733, allocations: 205.4 MB / 221.3 MB, free: 13.81 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.001009/0.001009, allocations: 94.89 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.9703/0.9703, allocations: 90.59 MB / 408.5 MB, free: 14.97 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003602/0.0003604, allocations: 12 kB / 485.2 MB, free: 2.078 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4539/0.4543, allocations: 66.26 MB / 0.5386 GB, free: 45.43 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.1444/0.5987, allocations: 122.6 MB / 0.6583 GB, free: 1.125 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.004314/0.6031, allocations: 3.778 MB / 0.662 GB, free: 13.34 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002989/0.6034, allocations: 3.938 kB / 0.662 GB, free: 13.34 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005734/0.604, allocations: 159.3 kB / 0.6621 GB, free: 13.18 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005952/0.6046, allocations: 271.1 kB / 0.6624 GB, free: 12.91 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008342/0.6055, allocations: 323.1 kB / 0.6627 GB, free: 12.6 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004309/0.6059, allocations: 371.7 kB / 0.663 GB, free: 12.23 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001929/0.6061, allocations: 80.08 kB / 0.6631 GB, free: 12.16 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004819/0.6066, allocations: 259.2 kB / 0.6634 GB, free: 11.91 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003583/0.607, allocations: 247.3 kB / 0.6636 GB, free: 11.67 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 3.749e-05/0.607, allocations: 17.12 kB / 0.6636 GB, free: 11.65 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000916/0.608, allocations: 459.4 kB / 0.6641 GB, free: 11.2 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 8.23e-05/0.608, allocations: 67.8 kB / 0.6641 GB, free: 11.14 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 9.837e-05/0.6082, allocations: 89.52 kB / 0.6642 GB, free: 11.04 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005167/0.6087, allocations: 359.9 kB / 0.6645 GB, free: 10.7 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.6087, allocations: 0 / 0.6645 GB, free: 10.7 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.6087, allocations: 0 / 0.6645 GB, free: 10.7 MB / 490.7 MB Notification: Performance of Transformations before backend: time 6.122e-06/0.6087, allocations: 0 / 0.6645 GB, free: 10.7 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.001471/0.6102, allocations: 0.6669 MB / 0.6652 GB, free: 9.988 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.6102, allocations: 8.031 kB / 0.6652 GB, free: 9.98 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.693e-05/0.6103, allocations: 31.62 kB / 0.6652 GB, free: 9.949 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003994/0.6107, allocations: 299.9 kB / 0.6655 GB, free: 9.617 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.272e-05/0.6108, allocations: 22.56 kB / 0.6655 GB, free: 9.598 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.443e-05/0.6108, allocations: 24 kB / 0.6656 GB, free: 9.574 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005948/0.6114, allocations: 396.7 kB / 0.6659 GB, free: 9.18 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.6114, allocations: 0 / 0.6659 GB, free: 9.18 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.981e-05/0.6115, allocations: 12 kB / 0.666 GB, free: 9.168 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.171e-05/0.6115, allocations: 18.3 kB / 0.666 GB, free: 9.148 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006514/0.6122, allocations: 485.9 kB / 0.6664 GB, free: 8.676 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002156/0.6143, allocations: 1.501 MB / 0.6679 GB, free: 7.02 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006603/0.615, allocations: 439 kB / 0.6683 GB, free: 6.582 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001506/0.6152, allocations: 97.08 kB / 0.6684 GB, free: 6.469 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.964e-05/0.6152, allocations: 42.52 kB / 0.6685 GB, free: 6.418 MB / 490.7 MB Notification: Performance of pre-optimization done (n=38): time 1.863e-06/0.6152, allocations: 0 / 0.6685 GB, free: 6.418 MB / 490.7 MB Notification: Performance of matching and sorting (n=39): time 0.002893/0.6181, allocations: 2.024 MB / 0.6704 GB, free: 4.227 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.072e-05/0.6182, allocations: 59.34 kB / 0.6705 GB, free: 4.156 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002028/0.6184, allocations: 217 kB / 0.6707 GB, free: 3.938 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.397e-05/0.6184, allocations: 37.7 kB / 0.6707 GB, free: 3.895 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.49e-05/0.6185, allocations: 144.9 kB / 0.6709 GB, free: 3.75 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001087/0.6186, allocations: 138 kB / 0.671 GB, free: 3.613 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.993e-05/0.6187, allocations: 4 kB / 0.671 GB, free: 3.609 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.6188, allocations: 342.8 kB / 0.6713 GB, free: 3.266 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002882/0.6191, allocations: 203.6 kB / 0.6715 GB, free: 3.066 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003136/0.6194, allocations: 207.9 kB / 0.6717 GB, free: 2.863 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003261/0.6197, allocations: 233.9 kB / 0.6719 GB, free: 2.637 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.6197, allocations: 0 / 0.6719 GB, free: 2.637 MB / 490.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009495/0.6207, allocations: 0.6186 MB / 0.6725 GB, free: 2.008 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.6207, allocations: 5.406 kB / 0.6726 GB, free: 2.004 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.6207, allocations: 0 / 0.6726 GB, free: 2.004 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003487/0.6211, allocations: 120.7 kB / 0.6727 GB, free: 1.883 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002441/0.6214, allocations: 55.88 kB / 0.6727 GB, free: 1.828 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002671/0.624, allocations: 2.153 MB / 0.6748 GB, free: 15.54 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002066/0.6243, allocations: 14.06 kB / 0.6748 GB, free: 15.53 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.866e-05/0.6243, allocations: 16.03 kB / 0.6749 GB, free: 15.51 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.0002205/0.6245, allocations: 159 kB / 0.675 GB, free: 15.35 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.89e-05/0.6246, allocations: 29.03 kB / 0.675 GB, free: 15.32 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001228/0.6258, allocations: 0.6777 MB / 0.6757 GB, free: 14.64 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/0.6259, allocations: 4 kB / 0.6757 GB, free: 14.63 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.6259, allocations: 0 / 0.6757 GB, free: 14.63 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.6259, allocations: 7.375 kB / 0.6757 GB, free: 14.63 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006018/0.6265, allocations: 489.3 kB / 0.6762 GB, free: 14.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.613e-06/0.6265, allocations: 4 kB / 0.6762 GB, free: 14.1 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002168/0.6267, allocations: 43.89 kB / 0.6762 GB, free: 14.05 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003198/0.6271, allocations: 125.3 kB / 0.6763 GB, free: 13.93 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.46e-05/0.6271, allocations: 23.97 kB / 0.6764 GB, free: 13.91 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002568/0.6297, allocations: 2.133 MB / 0.6784 GB, free: 11.64 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.6297, allocations: 7.953 kB / 0.6785 GB, free: 11.64 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001366/0.6311, allocations: 1.005 MB / 0.6794 GB, free: 10.61 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001064/0.6312, allocations: 105 kB / 0.6795 GB, free: 10.49 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.392e-05/0.6313, allocations: 15.95 kB / 0.6795 GB, free: 10.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002168/0.6315, allocations: 15.89 kB / 0.6796 GB, free: 10.46 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.751e-05/0.6316, allocations: 31.94 kB / 0.6796 GB, free: 10.43 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.126e-05/0.6316, allocations: 15.98 kB / 0.6796 GB, free: 10.41 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0001415/0.6317, allocations: 160.5 kB / 0.6798 GB, free: 10.26 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6318, allocations: 0 / 0.6798 GB, free: 10.26 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0005244/0.6323, allocations: 119.9 kB / 0.6799 GB, free: 10.14 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.0003338/0.6326, allocations: 189.9 kB / 0.6801 GB, free: 9.949 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.001229/0.6339, allocations: 0.7743 MB / 0.6808 GB, free: 9.148 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.6339, allocations: 0 / 0.6808 GB, free: 9.148 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0007921/0.6347, allocations: 0.5538 MB / 0.6814 GB, free: 8.57 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005097/0.6352, allocations: 72.38 kB / 0.6814 GB, free: 8.5 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001669/0.6369, allocations: 1.023 MB / 0.6824 GB, free: 7.465 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004358/0.6373, allocations: 0.8192 MB / 0.6832 GB, free: 6.621 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0002579/0.6376, allocations: 92.92 kB / 0.6833 GB, free: 6.527 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.653e-05/0.6377, allocations: 35.41 kB / 0.6833 GB, free: 6.492 MB / 0.4948 GB Notification: Performance of SimCode: time 2.31e-07/0.6377, allocations: 4 kB / 0.6833 GB, free: 6.488 MB / 0.4948 GB Notification: Performance of Templates: time 0.01327/0.651, allocations: 6.602 MB / 0.6898 GB, free: 15.99 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