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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001855/0.001855, allocations: 113.9 kB / 17.61 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002301/0.002301, allocations: 185.9 kB / 20.78 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.469/1.469, allocations: 225.6 MB / 249.4 MB, free: 3.148 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.6575/0.6575, allocations: 90.3 MB / 394.8 MB, free: 3.852 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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=1000,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=1000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002387/0.002387, allocations: 83.88 kB / 0.5387 GB, free: 1.586 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3647/0.3671, allocations: 70.82 MB / 0.6078 GB, free: 7.387 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.2136/0.5807, allocations: 174.1 MB / 0.7779 GB, free: 12.64 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0154/0.5961, allocations: 10.99 MB / 0.7886 GB, free: 1.621 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001308/0.5974, allocations: 23.88 kB / 0.7886 GB, free: 1.598 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0024/0.5998, allocations: 0.7922 MB / 0.7894 GB, free: 0.8008 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.004628/0.6044, allocations: 1.636 MB / 0.791 GB, free: 15.16 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.003472/0.6079, allocations: 1.129 MB / 0.7921 GB, free: 14.02 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.003615/0.6115, allocations: 2.409 MB / 0.7944 GB, free: 11.61 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006811/0.6122, allocations: 269.3 kB / 0.7947 GB, free: 11.32 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001978/0.6142, allocations: 0.9886 MB / 0.7957 GB, free: 10.32 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002353/0.6165, allocations: 1.363 MB / 0.797 GB, free: 8.957 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0003736/0.6169, allocations: 147.9 kB / 0.7971 GB, free: 8.812 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004684/0.6216, allocations: 1.969 MB / 0.7991 GB, free: 6.84 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0004789/0.6221, allocations: 350.7 kB / 0.7994 GB, free: 6.496 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.001236/0.6233, allocations: 0.7739 MB / 0.8002 GB, free: 5.719 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.00465/0.6279, allocations: 2.459 MB / 0.8026 GB, free: 3.258 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.6279, allocations: 0 / 0.8026 GB, free: 3.258 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.333e-06/0.6279, allocations: 3.938 kB / 0.8026 GB, free: 3.254 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 3.317e-05/0.628, allocations: 0 / 0.8026 GB, free: 3.254 MB / 0.6231 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.004063/0.632, allocations: 1.93 MB / 0.8044 GB, free: 1.262 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.6321, allocations: 12.03 kB / 0.8045 GB, free: 1.25 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003163/0.6324, allocations: 160 kB / 0.8046 GB, free: 1.094 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001104/0.6335, allocations: 0.7374 MB / 0.8053 GB, free: 324 kB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.634e-05/0.6336, allocations: 90.78 kB / 0.8054 GB, free: 232 kB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001929/0.6338, allocations: 128.3 kB / 0.8055 GB, free: 104 kB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0027/0.6365, allocations: 1.532 MB / 0.807 GB, free: 14.53 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.736e-05/0.6365, allocations: 0 / 0.807 GB, free: 14.53 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001062/0.6366, allocations: 48 kB / 0.8071 GB, free: 14.48 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.624e-05/0.6366, allocations: 28 kB / 0.8071 GB, free: 14.45 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002931/0.6396, allocations: 1.665 MB / 0.8087 GB, free: 12.78 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007652/0.6472, allocations: 6.207 MB / 0.8148 GB, free: 5.957 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002427/0.6496, allocations: 1.184 MB / 0.8159 GB, free: 4.758 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001148/0.6508, allocations: 0.6293 MB / 0.8166 GB, free: 4.129 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005306/0.6561, allocations: 4.029 MB / 0.8205 GB, free: 15.65 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001439/0.6575, allocations: 0.7355 MB / 0.8212 GB, free: 14.9 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=128): time 3.307e-06/0.6575, allocations: 0 / 0.8212 GB, free: 14.9 MB / 0.6544 GB Notification: Performance of matching and sorting (n=129): time 0.008021/0.6656, allocations: 3.937 MB / 0.8251 GB, free: 10.88 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.953e-05/0.6656, allocations: 68.7 kB / 0.8251 GB, free: 10.8 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007513/0.6664, allocations: 0.5786 MB / 0.8257 GB, free: 10.21 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 8.866e-05/0.6665, allocations: 49.7 kB / 0.8257 GB, free: 10.16 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004024/0.6669, allocations: 481.4 kB / 0.8262 GB, free: 9.68 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004121/0.6673, allocations: 468 kB / 0.8266 GB, free: 9.219 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003762/0.6677, allocations: 202.9 kB / 0.8268 GB, free: 9.012 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001639/0.6678, allocations: 345.9 kB / 0.8272 GB, free: 8.668 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001018/0.6688, allocations: 0.5179 MB / 0.8277 GB, free: 8.152 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001147/0.67, allocations: 0.6212 MB / 0.8283 GB, free: 7.508 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002304/0.6723, allocations: 1.244 MB / 0.8295 GB, free: 6.238 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.6723, allocations: 0 / 0.8295 GB, free: 6.238 MB / 0.6544 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003246/0.6755, allocations: 1.576 MB / 0.831 GB, free: 4.645 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 5.11e-05/0.6756, allocations: 35.27 kB / 0.8311 GB, free: 4.605 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.876e-06/0.6756, allocations: 0 / 0.8311 GB, free: 4.605 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005396/0.6761, allocations: 159.6 kB / 0.8312 GB, free: 4.449 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009675/0.6771, allocations: 247.7 kB / 0.8315 GB, free: 4.207 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004342/0.6814, allocations: 2.735 MB / 0.8341 GB, free: 1.336 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006996/0.6821, allocations: 47.95 kB / 0.8342 GB, free: 1.289 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001368/0.6823, allocations: 59.95 kB / 0.8342 GB, free: 1.23 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.0005124/0.6828, allocations: 281.7 kB / 0.8345 GB, free: 0.9453 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002234/0.683, allocations: 103.3 kB / 0.8346 GB, free: 0.8438 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004498/0.6875, allocations: 2.294 MB / 0.8368 GB, free: 14.56 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.397e-05/0.6875, allocations: 12 kB / 0.8368 GB, free: 14.55 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.6875, allocations: 4 kB / 0.8369 GB, free: 14.55 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.603e-05/0.6875, allocations: 7.969 kB / 0.8369 GB, free: 14.54 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005959/0.6935, allocations: 3.355 MB / 0.8401 GB, free: 11.11 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.6935, allocations: 4.031 kB / 0.8401 GB, free: 11.11 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00103/0.6945, allocations: 267.7 kB / 0.8404 GB, free: 10.84 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004695/0.695, allocations: 140.8 kB / 0.8405 GB, free: 10.7 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001092/0.6951, allocations: 51.98 kB / 0.8406 GB, free: 10.65 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003015/0.6981, allocations: 2.446 MB / 0.843 GB, free: 8.07 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.6981, allocations: 4 kB / 0.843 GB, free: 8.066 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004794/0.7029, allocations: 2.577 MB / 0.8455 GB, free: 5.449 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002667/0.7032, allocations: 176.4 kB / 0.8457 GB, free: 5.258 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001547/0.7034, allocations: 28 kB / 0.8457 GB, free: 5.23 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005946/0.7039, allocations: 56.02 kB / 0.8457 GB, free: 5.176 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002574/0.7042, allocations: 117.1 kB / 0.8459 GB, free: 5.059 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001261/0.7043, allocations: 55.97 kB / 0.8459 GB, free: 5.004 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0005793/0.7049, allocations: 443 kB / 0.8463 GB, free: 4.574 MB / 0.67 GB Notification: Performance of sort global known variables: time 8.1e-08/0.7049, allocations: 0 / 0.8463 GB, free: 4.574 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.001426/0.7063, allocations: 0.511 MB / 0.8468 GB, free: 4.062 MB / 0.67 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.0009575/0.7073, allocations: 0.5684 MB / 0.8474 GB, free: 3.492 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.003164/0.7105, allocations: 1.556 MB / 0.8489 GB, free: 1.91 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 5.56e-06/0.7105, allocations: 4.062 kB / 0.8489 GB, free: 1.906 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.001846/0.7123, allocations: 0.9312 MB / 0.8498 GB, free: 0.9648 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001807/0.7141, allocations: 377.3 kB / 0.8502 GB, free: 0.6094 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00474/0.7189, allocations: 2.486 MB / 0.8526 GB, free: 14.09 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008171/0.7197, allocations: 1.137 MB / 0.8537 GB, free: 12.91 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001093/0.7208, allocations: 339.4 kB / 0.854 GB, free: 12.62 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000389/0.7212, allocations: 135.4 kB / 0.8542 GB, free: 12.5 MB / 0.6856 GB Notification: Performance of SimCode: time 1.152e-06/0.7212, allocations: 0 / 0.8542 GB, free: 12.5 MB / 0.6856 GB Notification: Performance of Templates: time 0.2971/1.018, allocations: 26.93 MB / 0.8805 GB, free: 232.5 MB / 0.6856 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.makefile [Timeout 660] (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) [Timeout 1200] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.0094820857048035]