Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.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.3.1-main/package.mo", uses=false) Using package ThermofluidStream with version 0.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.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.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00171/0.00171, allocations: 175.3 kB / 16.12 MB, free: 5.699 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.873/1.873, allocations: 205.4 MB / 222.3 MB, free: 8.941 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.0008662/0.0008662, allocations: 86.38 kB / 270.6 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.3.1-main/package.mo): time 0.8426/0.8426, allocations: 89.57 MB / 408.5 MB, free: 4.508 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0004558/0.0004559, allocations: 12 kB / 485.2 MB, free: 7.656 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3797/0.3802, allocations: 66.01 MB / 0.5382 GB, free: 34.59 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.145/1.525, allocations: 441.9 MB / 0.9698 GB, free: 185 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002763/1.526, allocations: 95.94 kB / 0.9699 GB, free: 185 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.8229/2.349, allocations: 246.6 MB / 1.211 GB, free: 137.2 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.104e-06/2.349, allocations: 2.844 kB / 1.211 GB, free: 137.2 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 0.0001213/2.349, allocations: 36.08 kB / 1.211 GB, free: 137.2 MB / 0.5886 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.004649/2.353, allocations: 1.766 MB / 1.212 GB, free: 136.3 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/2.353, allocations: 7.781 kB / 1.212 GB, free: 136.3 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000636/2.354, allocations: 162.7 kB / 1.213 GB, free: 136.2 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001385/2.355, allocations: 0.7657 MB / 1.213 GB, free: 135.9 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.931e-05/2.356, allocations: 93.92 kB / 1.213 GB, free: 135.9 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002831/2.356, allocations: 121.8 kB / 1.214 GB, free: 135.9 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002428/2.358, allocations: 1.42 MB / 1.215 GB, free: 135.8 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.235e-05/2.358, allocations: 3.219 kB / 1.215 GB, free: 135.8 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001079/2.358, allocations: 50.25 kB / 1.215 GB, free: 135.8 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.891e-05/2.359, allocations: 39.09 kB / 1.215 GB, free: 135.8 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002464/2.361, allocations: 1.719 MB / 1.217 GB, free: 135.8 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006766/2.368, allocations: 6.324 MB / 1.223 GB, free: 132.1 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002397/2.37, allocations: 1.525 MB / 1.224 GB, free: 132.1 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001061/2.371, allocations: 0.774 MB / 1.225 GB, free: 132.1 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004331/2.376, allocations: 3.528 MB / 1.229 GB, free: 130.3 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001219/2.377, allocations: 0.8209 MB / 1.229 GB, free: 130.3 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=136): time 3.767e-06/2.377, allocations: 0 / 1.229 GB, free: 130.3 MB / 0.5886 GB Notification: Performance of matching and sorting (n=137): time 0.007497/2.384, allocations: 4.317 MB / 1.234 GB, free: 128.5 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.337e-05/2.384, allocations: 67.72 kB / 1.234 GB, free: 128.4 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006679/2.385, allocations: 0.5352 MB / 1.234 GB, free: 128.2 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 9.319e-05/2.385, allocations: 52.23 kB / 1.234 GB, free: 128.1 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003864/2.386, allocations: 459.6 kB / 1.235 GB, free: 127.8 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003725/2.386, allocations: 458.3 kB / 1.235 GB, free: 127.4 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.645e-05/2.386, allocations: 27.72 kB / 1.235 GB, free: 127.4 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0002083/2.386, allocations: 406.7 kB / 1.236 GB, free: 127 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001002/2.387, allocations: 0.5861 MB / 1.236 GB, free: 126.8 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001099/2.388, allocations: 0.6913 MB / 1.237 GB, free: 126.5 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002321/2.391, allocations: 1.391 MB / 1.238 GB, free: 125.8 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.085e-05/2.391, allocations: 0 / 1.238 GB, free: 125.8 MB / 0.5886 GB Notification: Performance of matching and sorting (n=146) (initialization): time 0.003807/2.395, allocations: 1.744 MB / 1.24 GB, free: 125.1 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 5.262e-05/2.395, allocations: 33.42 kB / 1.24 GB, free: 125.1 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/2.395, allocations: 0 / 1.24 GB, free: 125.1 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005832/2.395, allocations: 168.5 kB / 1.24 GB, free: 125 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009181/2.396, allocations: 253.6 kB / 1.24 GB, free: 125 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004202/2.4, allocations: 2.646 MB / 1.243 GB, free: 123.1 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001331/2.402, allocations: 99.33 kB / 1.243 GB, free: 123.1 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002471/2.402, allocations: 55.58 kB / 1.243 GB, free: 123.1 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 1 * 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%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008053/2.403, allocations: 278.8 kB / 1.243 GB, free: 122.9 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003874/2.403, allocations: 111.6 kB / 1.243 GB, free: 122.8 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004612/2.408, allocations: 2.242 MB / 1.246 GB, free: 121.9 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.217e-05/2.408, allocations: 13.59 kB / 1.246 GB, free: 121.9 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.467e-05/2.408, allocations: 11.52 kB / 1.246 GB, free: 121.9 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.926e-05/2.408, allocations: 7.031 kB / 1.246 GB, free: 121.9 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0061/2.414, allocations: 3.706 MB / 1.249 GB, free: 120.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.576e-06/2.414, allocations: 0 / 1.249 GB, free: 120.3 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009332/2.415, allocations: 285.3 kB / 1.25 GB, free: 120.3 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004135/2.416, allocations: 147.7 kB / 1.25 GB, free: 120.2 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000127/2.416, allocations: 56.92 kB / 1.25 GB, free: 120.2 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002265/2.418, allocations: 2.361 MB / 1.252 GB, free: 118.4 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/2.418, allocations: 15.12 kB / 1.252 GB, free: 118.4 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004379/2.422, allocations: 2.87 MB / 1.255 GB, free: 117.1 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004042/2.423, allocations: 172 kB / 1.255 GB, free: 116.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002001/2.423, allocations: 39.09 kB / 1.255 GB, free: 116.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007944/2.424, allocations: 101.9 kB / 1.255 GB, free: 116.9 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002418/2.424, allocations: 124.9 kB / 1.255 GB, free: 116.8 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001258/2.424, allocations: 58.72 kB / 1.255 GB, free: 116.8 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0004862/2.425, allocations: 375.3 kB / 1.256 GB, free: 116.7 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.2e-07/2.425, allocations: 0 / 1.256 GB, free: 116.7 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.002067/2.427, allocations: 0.5694 MB / 1.256 GB, free: 116.5 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (junctionRFF2_1.junctionMN.rears[1].m_flow,junctionRFF2_1.junctionMN.fores[1].m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (154): * Single equations (assignments): 148 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 2 * 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%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001647/2.428, allocations: 0.9171 MB / 1.257 GB, free: 116.2 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.003139/2.432, allocations: 1.83 MB / 1.259 GB, free: 115.5 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/2.432, allocations: 0 / 1.259 GB, free: 115.5 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.001683/2.433, allocations: 1.103 MB / 1.26 GB, free: 115 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00187/2.435, allocations: 318.8 kB / 1.26 GB, free: 114.9 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004714/2.44, allocations: 2.999 MB / 1.263 GB, free: 113.3 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007451/2.441, allocations: 1.149 MB / 1.264 GB, free: 112.6 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.001191/2.442, allocations: 313.4 kB / 1.265 GB, free: 112.5 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004261/2.442, allocations: 135.9 kB / 1.265 GB, free: 112.5 MB / 0.5886 GB Notification: Performance of SimCode: time 1.613e-06/2.442, allocations: 3.469 kB / 1.265 GB, free: 112.5 MB / 0.5886 GB Notification: Performance of Templates: time 0.04327/2.486, allocations: 27.72 MB / 1.292 GB, free: 87.6 MB / 0.5886 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.TanValve_ref.mat","../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches