Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo) Using package ObsoleteModelica4 with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") translateModel(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.01149/0.01149, allocations: 170.1 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.675/1.675, allocations: 223.2 MB / 239 MB, free: 36 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 89.58 kB / 290.2 MB, free: 4.484 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo): time 0.009737/0.009737, allocations: 1.561 MB / 342.9 MB, free: 11.35 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.9015/0.9015, allocations: 90.32 MB / 484.7 MB, free: 38.2 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005196/0.0005199, allocations: 16 kB / 0.5526 GB, free: 4.906 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4592/0.4597, allocations: 69.36 MB / 0.6203 GB, free: 20.53 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.531/1.991, allocations: 437.3 MB / 1.047 GB, free: 203.6 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00041/1.992, allocations: 91.12 kB / 1.047 GB, free: 203.5 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.2227/2.214, allocations: 104 MB / 1.149 GB, free: 98.54 MB / 0.6198 GB Notification: Performance of FrontEnd: time 4.879e-06/2.214, allocations: 0 / 1.149 GB, free: 98.54 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.385e-05/2.214, allocations: 27.86 kB / 1.149 GB, free: 98.51 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.002775/2.217, allocations: 0.8531 MB / 1.15 GB, free: 97.61 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.995e-05/2.217, allocations: 11.98 kB / 1.15 GB, free: 97.59 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006426/2.218, allocations: 83.31 kB / 1.15 GB, free: 97.51 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008177/2.219, allocations: 386.5 kB / 1.15 GB, free: 97.09 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.869e-05/2.219, allocations: 29 kB / 1.15 GB, free: 97.06 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000106/2.219, allocations: 40 kB / 1.15 GB, free: 97.02 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009082/2.22, allocations: 454.4 kB / 1.151 GB, free: 96.57 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.194e-05/2.22, allocations: 0 / 1.151 GB, free: 96.57 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.735e-05/2.22, allocations: 23.94 kB / 1.151 GB, free: 96.55 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.068e-05/2.22, allocations: 15.95 kB / 1.151 GB, free: 96.54 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008266/2.221, allocations: 495.7 kB / 1.151 GB, free: 96.05 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002987/2.224, allocations: 2.206 MB / 1.154 GB, free: 93.59 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009271/2.225, allocations: 0.5365 MB / 1.154 GB, free: 93.05 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002482/2.227, allocations: 1.802 MB / 1.156 GB, free: 91.03 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.807e-05/2.227, allocations: 39 kB / 1.156 GB, free: 90.98 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=55): time 3.086e-06/2.227, allocations: 0 / 1.156 GB, free: 90.98 MB / 0.6198 GB Notification: Performance of matching and sorting (n=55): time 0.001931/2.229, allocations: 1.235 MB / 1.157 GB, free: 89.63 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.499e-05/2.229, allocations: 59.78 kB / 1.157 GB, free: 89.56 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003176/2.23, allocations: 300.8 kB / 1.157 GB, free: 89.26 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.929e-05/2.23, allocations: 29.7 kB / 1.157 GB, free: 89.23 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/2.23, allocations: 216.6 kB / 1.158 GB, free: 89.01 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001281/2.23, allocations: 193.3 kB / 1.158 GB, free: 88.82 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.146e-05/2.23, allocations: 8 kB / 1.158 GB, free: 88.81 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001114/2.23, allocations: 354.8 kB / 1.158 GB, free: 88.46 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002812/2.23, allocations: 169 kB / 1.158 GB, free: 88.29 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003131/2.231, allocations: 230.3 kB / 1.159 GB, free: 88.05 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003215/2.231, allocations: 202 kB / 1.159 GB, free: 87.85 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/2.231, allocations: 0 / 1.159 GB, free: 87.85 MB / 0.6198 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001008/2.232, allocations: 0.5773 MB / 1.159 GB, free: 87.26 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.51e-05/2.232, allocations: 8 kB / 1.159 GB, free: 87.25 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/2.232, allocations: 0 / 1.159 GB, free: 87.25 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003594/2.233, allocations: 65.67 kB / 1.159 GB, free: 87.18 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000359/2.233, allocations: 91.97 kB / 1.159 GB, free: 87.09 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001987/2.235, allocations: 2.733 MB / 1.162 GB, free: 84.09 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000437/2.235, allocations: 48.09 kB / 1.162 GB, free: 84.04 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.978e-05/2.235, allocations: 23.98 kB / 1.162 GB, free: 84.02 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (53): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002545/2.236, allocations: 161.7 kB / 1.162 GB, free: 83.85 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.088e-05/2.236, allocations: 39.53 kB / 1.162 GB, free: 83.81 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001353/2.237, allocations: 0.7104 MB / 1.163 GB, free: 83.09 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-05/2.237, allocations: 11.98 kB / 1.163 GB, free: 83.08 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/2.237, allocations: 3.938 kB / 1.163 GB, free: 83.08 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/2.237, allocations: 4 kB / 1.163 GB, free: 83.07 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002078/2.239, allocations: 1.334 MB / 1.164 GB, free: 81.67 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/2.239, allocations: 0 / 1.164 GB, free: 81.67 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003272/2.24, allocations: 83.89 kB / 1.164 GB, free: 81.59 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002334/2.24, allocations: 61.66 kB / 1.165 GB, free: 81.52 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.201e-05/2.24, allocations: 19.98 kB / 1.165 GB, free: 81.5 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001756/2.242, allocations: 2.741 MB / 1.167 GB, free: 78.49 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.736e-06/2.242, allocations: 0 / 1.167 GB, free: 78.49 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001475/2.243, allocations: 0.9705 MB / 1.168 GB, free: 77.48 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002093/2.243, allocations: 128.4 kB / 1.168 GB, free: 77.34 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.71e-05/2.244, allocations: 12 kB / 1.168 GB, free: 77.33 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003202/2.244, allocations: 23.95 kB / 1.168 GB, free: 77.3 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001358/2.244, allocations: 44.38 kB / 1.168 GB, free: 77.26 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.019e-05/2.244, allocations: 23.98 kB / 1.168 GB, free: 77.24 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0002483/2.244, allocations: 235.2 kB / 1.169 GB, free: 77.02 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.5e-07/2.244, allocations: 0 / 1.169 GB, free: 77.02 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0009406/2.245, allocations: 211.7 kB / 1.169 GB, free: 76.81 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (flowResistance.rear.m_flow,flowResistance1.rear.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 (51): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007263/2.246, allocations: 391.4 kB / 1.169 GB, free: 76.43 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001234/2.247, allocations: 0.7028 MB / 1.17 GB, free: 75.7 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/2.247, allocations: 0 / 1.17 GB, free: 75.7 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0006696/2.248, allocations: 0.5041 MB / 1.17 GB, free: 75.17 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008152/2.249, allocations: 133.4 kB / 1.171 GB, free: 75.04 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001986/2.251, allocations: 1.196 MB / 1.172 GB, free: 73.81 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003708/2.251, allocations: 0.8556 MB / 1.173 GB, free: 72.92 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0004627/2.252, allocations: 94.77 kB / 1.173 GB, free: 72.83 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001309/2.252, allocations: 47.42 kB / 1.173 GB, free: 72.79 MB / 0.6198 GB Notification: Performance of SimCode: time 1.463e-06/2.252, allocations: 4 kB / 1.173 GB, free: 72.78 MB / 0.6198 GB Notification: Performance of Templates: time 0.022/2.274, allocations: 10.88 MB / 1.183 GB, free: 62.01 MB / 0.6198 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.sim & ./ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_ref.mat","../files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches