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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007336/0.007336, allocations: 101.7 kB / 15.73 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001773/0.001773, allocations: 198.8 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.533/1.533, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7073/0.7073, allocations: 91.21 MB / 381.7 MB, free: 9.332 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001603/0.001603, allocations: 72.11 kB / 0.5169 GB, free: 8.988 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1248, allocations: 67.7 MB / 0.583 GB, free: 5.211 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.4629/0.5877, allocations: 173.1 MB / 0.7521 GB, free: 11.01 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01363/0.6014, allocations: 10.99 MB / 0.7628 GB, free: 15.99 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001385/0.6028, allocations: 51.69 kB / 0.7628 GB, free: 15.94 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.002322/0.6052, allocations: 0.8076 MB / 0.7636 GB, free: 15.12 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.004517/0.6098, allocations: 1.69 MB / 0.7653 GB, free: 13.43 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.003122/0.6129, allocations: 1.118 MB / 0.7664 GB, free: 12.3 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.003699/0.6166, allocations: 2.545 MB / 0.7688 GB, free: 9.75 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001007/0.6177, allocations: 485.9 kB / 0.7693 GB, free: 9.262 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002197/0.6199, allocations: 1.055 MB / 0.7703 GB, free: 8.203 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002268/0.6222, allocations: 1.355 MB / 0.7717 GB, free: 6.844 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0006015/0.6228, allocations: 140 kB / 0.7718 GB, free: 6.707 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004761/0.6276, allocations: 1.934 MB / 0.7737 GB, free: 4.77 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0006397/0.6282, allocations: 362.7 kB / 0.774 GB, free: 4.414 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.001766/0.63, allocations: 0.8085 MB / 0.7748 GB, free: 3.602 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.006201/0.6362, allocations: 2.596 MB / 0.7774 GB, free: 1 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.6363, allocations: 0 / 0.7774 GB, free: 1 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.174e-06/0.6363, allocations: 0 / 0.7774 GB, free: 1 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.466e-05/0.6364, allocations: 0 / 0.7774 GB, free: 1 MB / 0.6075 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.004905/0.6413, allocations: 2.033 MB / 0.7793 GB, free: 14.91 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 5.012e-05/0.6414, allocations: 12.03 kB / 0.7794 GB, free: 14.89 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004819/0.6418, allocations: 167 kB / 0.7795 GB, free: 14.73 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0018/0.6437, allocations: 0.9786 MB / 0.7805 GB, free: 13.71 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.288e-05/0.6438, allocations: 94.72 kB / 0.7806 GB, free: 13.61 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002348/0.644, allocations: 116.4 kB / 0.7807 GB, free: 13.5 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0028/0.6468, allocations: 1.532 MB / 0.7822 GB, free: 11.93 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.058e-05/0.6469, allocations: 4 kB / 0.7822 GB, free: 11.92 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001133/0.647, allocations: 44 kB / 0.7822 GB, free: 11.88 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.442e-05/0.647, allocations: 28 kB / 0.7822 GB, free: 11.85 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002834/0.6499, allocations: 1.672 MB / 0.7839 GB, free: 10.17 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00782/0.6577, allocations: 6.23 MB / 0.79 GB, free: 3.328 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002444/0.6602, allocations: 1.287 MB / 0.7912 GB, free: 2.023 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001146/0.6613, allocations: 0.6997 MB / 0.7919 GB, free: 1.324 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005054/0.6664, allocations: 4.021 MB / 0.7958 GB, free: 12.85 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001315/0.6678, allocations: 0.7317 MB / 0.7965 GB, free: 12.11 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=128): time 3.737e-06/0.6678, allocations: 0 / 0.7965 GB, free: 12.11 MB / 0.6387 GB Notification: Performance of matching and sorting (n=129): time 0.007823/0.6756, allocations: 3.969 MB / 0.8004 GB, free: 8.043 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.562e-05/0.6757, allocations: 68.72 kB / 0.8005 GB, free: 7.965 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000891/0.6766, allocations: 0.7088 MB / 0.8012 GB, free: 7.246 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001245/0.6767, allocations: 49.7 kB / 0.8012 GB, free: 7.191 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004183/0.6772, allocations: 0.52 MB / 0.8017 GB, free: 6.664 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003887/0.6776, allocations: 445.6 kB / 0.8022 GB, free: 6.223 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003603/0.6779, allocations: 202.9 kB / 0.8023 GB, free: 6.016 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001432/0.6781, allocations: 341.9 kB / 0.8027 GB, free: 5.676 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001034/0.6791, allocations: 0.5179 MB / 0.8032 GB, free: 5.16 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001087/0.6802, allocations: 0.6251 MB / 0.8038 GB, free: 4.516 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002251/0.6825, allocations: 1.244 MB / 0.805 GB, free: 3.246 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.171e-06/0.6825, allocations: 3.938 kB / 0.805 GB, free: 3.242 MB / 0.6387 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003243/0.6858, allocations: 1.591 MB / 0.8066 GB, free: 1.633 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 5.381e-05/0.6858, allocations: 33.7 kB / 0.8066 GB, free: 1.594 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.6859, allocations: 0 / 0.8066 GB, free: 1.594 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000585/0.6864, allocations: 160.8 kB / 0.8067 GB, free: 1.434 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001064/0.6875, allocations: 247.7 kB / 0.807 GB, free: 1.191 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004319/0.6919, allocations: 2.709 MB / 0.8096 GB, free: 14.34 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008041/0.6927, allocations: 51.94 kB / 0.8097 GB, free: 14.29 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002094/0.6929, allocations: 47.98 kB / 0.8097 GB, free: 14.24 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006867/0.6936, allocations: 301.5 kB / 0.81 GB, free: 13.94 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003547/0.694, allocations: 110.6 kB / 0.8101 GB, free: 13.83 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004622/0.6986, allocations: 2.329 MB / 0.8124 GB, free: 11.52 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.792e-05/0.6987, allocations: 16 kB / 0.8124 GB, free: 11.51 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.6987, allocations: 0 / 0.8124 GB, free: 11.51 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.036e-05/0.6987, allocations: 7.969 kB / 0.8124 GB, free: 11.5 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006033/0.7047, allocations: 3.432 MB / 0.8158 GB, free: 7.996 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.333e-06/0.7048, allocations: 0 / 0.8158 GB, free: 7.996 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001024/0.7058, allocations: 263.7 kB / 0.816 GB, free: 7.738 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004596/0.7063, allocations: 140.8 kB / 0.8161 GB, free: 7.598 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001288/0.7064, allocations: 48.02 kB / 0.8162 GB, free: 7.551 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002747/0.7092, allocations: 2.443 MB / 0.8186 GB, free: 4.973 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.7092, allocations: 8 kB / 0.8186 GB, free: 4.965 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00468/0.7139, allocations: 2.589 MB / 0.8211 GB, free: 2.34 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003103/0.7142, allocations: 183.5 kB / 0.8213 GB, free: 2.141 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000193/0.7144, allocations: 36.05 kB / 0.8213 GB, free: 2.105 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006269/0.7151, allocations: 47.97 kB / 0.8214 GB, free: 2.059 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002417/0.7153, allocations: 113.2 kB / 0.8215 GB, free: 1.945 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001263/0.7155, allocations: 55.97 kB / 0.8215 GB, free: 1.891 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0006975/0.7162, allocations: 0.5194 MB / 0.822 GB, free: 1.359 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7162, allocations: 0 / 0.822 GB, free: 1.359 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001575/0.7177, allocations: 0.5076 MB / 0.8225 GB, free: 0.8516 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance1.rear.m_flow,flowResistance2.rear.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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001029/0.7188, allocations: 0.5773 MB / 0.8231 GB, free: 284 kB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.003217/0.722, allocations: 1.634 MB / 0.8247 GB, free: 14.61 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.7221, allocations: 4.125 kB / 0.8247 GB, free: 14.61 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.001927/0.724, allocations: 0.9899 MB / 0.8257 GB, free: 13.61 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00187/0.7259, allocations: 402.7 kB / 0.826 GB, free: 13.23 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005072/0.731, allocations: 2.601 MB / 0.8286 GB, free: 10.59 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008872/0.7319, allocations: 1.191 MB / 0.8298 GB, free: 9.371 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001248/0.7331, allocations: 358.3 kB / 0.8301 GB, free: 9.062 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004249/0.7336, allocations: 147.4 kB / 0.8302 GB, free: 8.918 MB / 0.67 GB Notification: Performance of SimCode: time 7.91e-07/0.7336, allocations: 0 / 0.8302 GB, free: 8.918 MB / 0.67 GB Notification: Performance of Templates: time 0.2945/1.028, allocations: 26.59 MB / 0.8562 GB, free: 221 MB / 0.67 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches