Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.TestBoundaries.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.Undirected.Boundaries.Tests.TestBoundaries,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_rear.fore.m_flow|terminal_fore.p|terminal_rear.p",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.TestBoundaries") translateModel(ThermofluidStream.Undirected.Boundaries.Tests.TestBoundaries,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_rear.fore.m_flow|terminal_fore.p|terminal_rear.p",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.TestBoundaries") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001662/0.001662, allocations: 182.8 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.363/1.363, allocations: 205.1 MB / 221.8 MB, free: 8.484 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.0009627/0.0009625, allocations: 102.6 kB / 269.2 MB, free: 8.426 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo): time 0.7582/0.7582, allocations: 91.22 MB / 407.8 MB, free: 2.539 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001023/0.001023, allocations: 55.86 kB / 483.5 MB, free: 6.605 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3041/0.3052, allocations: 64.97 MB / 0.5356 GB, free: 33.64 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.TestBoundaries): time 0.1437/0.4489, allocations: 144.9 MB / 0.6772 GB, free: 4.27 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.003388/0.4524, allocations: 3.146 MB / 0.6802 GB, free: 1.113 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002002/0.4526, allocations: 7.938 kB / 0.6803 GB, free: 1.105 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.000589/0.4532, allocations: 191 kB / 0.6804 GB, free: 0.918 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.000629/0.4539, allocations: 350 kB / 0.6808 GB, free: 0.5742 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007624/0.4546, allocations: 390.7 kB / 0.6811 GB, free: 196 kB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.2561/0.7107, allocations: 0.8135 MB / 0.6819 GB, free: 2.305 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002162/0.711, allocations: 105.2 kB / 0.682 GB, free: 2.289 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009033/0.7119, allocations: 427 kB / 0.6824 GB, free: 2.285 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003363/0.7122, allocations: 305.2 kB / 0.6827 GB, free: 2.285 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 3.557e-05/0.7123, allocations: 19.56 kB / 0.6828 GB, free: 2.285 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001272/0.7136, allocations: 0.7068 MB / 0.6834 GB, free: 2.281 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 6.221e-05/0.7136, allocations: 62.95 kB / 0.6835 GB, free: 2.281 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0002125/0.7138, allocations: 183.9 kB / 0.6837 GB, free: 2.281 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.001064/0.7149, allocations: 0.6761 MB / 0.6843 GB, free: 2.242 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.7149, allocations: 0.8125 kB / 0.6843 GB, free: 2.242 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.212e-06/0.7149, allocations: 0 / 0.6843 GB, free: 2.242 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 5.811e-06/0.715, allocations: 0.9062 kB / 0.6843 GB, free: 2.242 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001333/0.7163, allocations: 0.7078 MB / 0.685 GB, free: 17.74 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.7163, allocations: 8.781 kB / 0.685 GB, free: 17.74 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.76e-05/0.7164, allocations: 41.33 kB / 0.6851 GB, free: 17.72 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003384/0.7168, allocations: 293.3 kB / 0.6854 GB, free: 17.48 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.752e-05/0.7168, allocations: 18.41 kB / 0.6854 GB, free: 17.48 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.158e-05/0.7169, allocations: 27.98 kB / 0.6854 GB, free: 17.48 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005338/0.7174, allocations: 300.3 kB / 0.6857 GB, free: 17.42 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.7174, allocations: 0.7188 kB / 0.6857 GB, free: 17.42 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.615e-05/0.7175, allocations: 12.69 kB / 0.6857 GB, free: 17.42 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.463e-05/0.7175, allocations: 10.25 kB / 0.6857 GB, free: 17.42 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004468/0.7179, allocations: 200.8 kB / 0.6859 GB, free: 17.42 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001843/0.7198, allocations: 1.545 MB / 0.6874 GB, free: 16.27 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005738/0.7204, allocations: 256 kB / 0.6877 GB, free: 16.2 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001993/0.7206, allocations: 102.7 kB / 0.6878 GB, free: 16.17 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000627/0.7212, allocations: 452.3 kB / 0.6882 GB, free: 15.7 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.82e-05/0.7213, allocations: 42.31 kB / 0.6882 GB, free: 15.66 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=23): time 2.244e-06/0.7213, allocations: 0 / 0.6882 GB, free: 15.66 MB / 0.5105 GB Notification: Performance of matching and sorting (n=23): time 0.001097/0.7224, allocations: 436.9 kB / 0.6886 GB, free: 15.51 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.245e-05/0.7225, allocations: 109.5 kB / 0.6887 GB, free: 15.38 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003364/0.7228, allocations: 298.5 kB / 0.689 GB, free: 15.27 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.588e-05/0.7228, allocations: 29.98 kB / 0.6891 GB, free: 15.24 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001329/0.723, allocations: 195.1 kB / 0.6892 GB, free: 15.12 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 5.835e-05/0.723, allocations: 79.67 kB / 0.6893 GB, free: 15.07 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.34e-05/0.7231, allocations: 54.42 kB / 0.6894 GB, free: 15.05 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001375/0.7233, allocations: 343.1 kB / 0.6897 GB, free: 14.74 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002026/0.7235, allocations: 84.8 kB / 0.6898 GB, free: 14.74 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002591/0.7238, allocations: 138.9 kB / 0.6899 GB, free: 14.68 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004279/0.7242, allocations: 243.5 kB / 0.6901 GB, free: 14.61 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.7242, allocations: 0.8438 kB / 0.6901 GB, free: 14.61 MB / 0.5105 GB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006497/0.7249, allocations: 312.6 kB / 0.6904 GB, free: 14.56 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.298e-05/0.7249, allocations: 10.69 kB / 0.6905 GB, free: 14.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.7249, allocations: 6.891 kB / 0.6905 GB, free: 14.55 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001594/0.7251, allocations: 26 kB / 0.6905 GB, free: 14.54 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001953/0.7253, allocations: 50.75 kB / 0.6905 GB, free: 14.54 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009447/0.7263, allocations: 1.288 MB / 0.6918 GB, free: 13.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002229/0.7265, allocations: 34.97 kB / 0.6918 GB, free: 13.27 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.814e-05/0.7265, allocations: 11.75 kB / 0.6918 GB, free: 13.27 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (27): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001751/0.7267, allocations: 149.6 kB / 0.692 GB, free: 13.15 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.798e-05/0.7268, allocations: 34.83 kB / 0.692 GB, free: 13.13 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006939/0.7275, allocations: 309 kB / 0.6923 GB, free: 13.07 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/0.7275, allocations: 6.891 kB / 0.6923 GB, free: 13.07 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.7275, allocations: 3.328 kB / 0.6923 GB, free: 13.07 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.7276, allocations: 0 / 0.6923 GB, free: 13.07 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005154/0.7281, allocations: 350.8 kB / 0.6927 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.7281, allocations: 3.047 kB / 0.6927 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001576/0.7282, allocations: 36.97 kB / 0.6927 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.956e-05/0.7283, allocations: 26.67 kB / 0.6927 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.099e-05/0.7284, allocations: 7.656 kB / 0.6927 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007825/0.7292, allocations: 1.284 MB / 0.694 GB, free: 11.61 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.7292, allocations: 6.062 kB / 0.694 GB, free: 11.61 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007461/0.7366, allocations: 4.179 MB / 0.6981 GB, free: 9.07 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 9.814e-05/0.7368, allocations: 108.2 kB / 0.6982 GB, free: 8.957 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.685e-05/0.7368, allocations: 6.5 kB / 0.6982 GB, free: 8.957 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002335/0.7371, allocations: 17.88 kB / 0.6982 GB, free: 8.953 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.869e-05/0.7372, allocations: 18.22 kB / 0.6982 GB, free: 8.953 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.917e-05/0.7372, allocations: 12.72 kB / 0.6982 GB, free: 8.949 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.000266/0.7375, allocations: 207.5 kB / 0.6984 GB, free: 8.871 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7375, allocations: 0.5312 kB / 0.6984 GB, free: 8.871 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0007246/0.7382, allocations: 150.3 kB / 0.6986 GB, free: 8.855 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (boundary_fore.rear.m_flow,terminal_rear.p,terminal_fore.p) * 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 (18): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002884/0.7385, allocations: 206.1 kB / 0.6988 GB, free: 8.738 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0008057/0.7393, allocations: 366.5 kB / 0.6991 GB, free: 8.598 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.7393, allocations: 0.5312 kB / 0.6991 GB, free: 8.598 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0004626/0.7398, allocations: 253.5 kB / 0.6994 GB, free: 8.457 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008042/0.7406, allocations: 81.89 kB / 0.6994 GB, free: 8.445 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001855/0.7425, allocations: 1.191 MB / 0.7006 GB, free: 7.66 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003696/0.7429, allocations: 0.7912 MB / 0.7014 GB, free: 6.953 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0002142/0.7431, allocations: 48.66 kB / 0.7014 GB, free: 6.938 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.284e-05/0.7432, allocations: 32.75 kB / 0.7014 GB, free: 6.93 MB / 0.5105 GB Notification: Performance of SimCode: time 3.51e-07/0.7432, allocations: 0 / 0.7014 GB, free: 6.93 MB / 0.5105 GB Notification: Performance of Templates: time 0.01141/0.7546, allocations: 6.348 MB / 0.7076 GB, free: 6.301 MB / 0.5105 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.TestBoundaries.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.TestBoundaries.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.TestBoundaries.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.TestBoundaries.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.TestBoundaries.sim & ./ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.TestBoundaries -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.TestBoundaries.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.TestBoundaries_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Boundaries.Tests.TestBoundaries_ref.mat","../files/ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.TestBoundaries.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches