Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000917/0.000917, allocations: 76.5 kB / 19.93 MB, free: 4.633 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008169/0.0008169, allocations: 174.3 kB / 23.21 MB, free: 1.355 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8672/0.8672, allocations: 177.2 MB / 203.5 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.6499/0.6499, allocations: 116 MB / 376 MB, free: 4.184 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_dev_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_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 0.5545 GB, free: 12.84 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.835e-05/1.975e-05, allocations: 2.281 kB / 0.5545 GB, free: 12.83 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.3695/0.3695, allocations: 151.4 MB / 0.7023 GB, free: 4.902 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.008058/0.3775, allocations: 10.15 MB / 0.7122 GB, free: 14.27 MB / 0.573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006045/0.3781, allocations: 68.91 kB / 0.7123 GB, free: 14.23 MB / 0.573 GB Notification: Performance of NFTyping.typeComponents: time 0.001033/0.3792, allocations: 0.7391 MB / 0.713 GB, free: 13.63 MB / 0.573 GB Notification: Performance of NFTyping.typeBindings: time 0.001965/0.3811, allocations: 1.831 MB / 0.7148 GB, free: 12.15 MB / 0.573 GB Notification: Performance of NFTyping.typeClassSections: time 0.001355/0.3825, allocations: 1.161 MB / 0.7159 GB, free: 11.25 MB / 0.573 GB Notification: Performance of NFFlatten.flatten: time 0.001672/0.3842, allocations: 2.77 MB / 0.7186 GB, free: 9.594 MB / 0.573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003017/0.3845, allocations: 287.2 kB / 0.7189 GB, free: 9.391 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001081/0.3855, allocations: 1.514 MB / 0.7204 GB, free: 8.484 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008851/0.3864, allocations: 1.251 MB / 0.7216 GB, free: 7.859 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.0001074/0.3865, allocations: 143.9 kB / 0.7217 GB, free: 7.859 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001581/0.3881, allocations: 1.696 MB / 0.7234 GB, free: 7.117 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0001977/0.3883, allocations: 387.8 kB / 0.7238 GB, free: 6.805 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0003662/0.3887, allocations: 0.5918 MB / 0.7244 GB, free: 6.523 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.001866/0.3905, allocations: 2.697 MB / 0.727 GB, free: 4.797 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.3905, allocations: 0 / 0.727 GB, free: 4.797 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.653e-06/0.3906, allocations: 4 kB / 0.727 GB, free: 4.793 MB / 0.573 GB Notification: Performance of Transformations before backend: time 1.213e-05/0.3906, allocations: 0 / 0.727 GB, free: 4.793 MB / 0.573 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.00203/0.3926, allocations: 1.997 MB / 0.7289 GB, free: 3.355 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.017e-05/0.3926, allocations: 14.5 kB / 0.729 GB, free: 3.352 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000229/0.3929, allocations: 187.8 kB / 0.7291 GB, free: 3.262 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001162/0.394, allocations: 0.913 MB / 0.73 GB, free: 2.551 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.43e-05/0.3941, allocations: 86.75 kB / 0.7301 GB, free: 2.512 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001117/0.3942, allocations: 120 kB / 0.7302 GB, free: 2.473 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001434/0.3956, allocations: 1.558 MB / 0.7317 GB, free: 1.547 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.863e-05/0.3956, allocations: 0 / 0.7317 GB, free: 1.547 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.355e-05/0.3957, allocations: 51.16 kB / 0.7318 GB, free: 1.508 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.43e-05/0.3957, allocations: 29 kB / 0.7318 GB, free: 1.508 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001576/0.3973, allocations: 1.702 MB / 0.7335 GB, free: 0.668 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003312/0.4006, allocations: 3.545 MB / 0.7369 GB, free: 14.18 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001313/0.4019, allocations: 1.201 MB / 0.7381 GB, free: 13.52 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006148/0.4025, allocations: 0.6374 MB / 0.7387 GB, free: 13.19 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002193/0.4047, allocations: 2.052 MB / 0.7407 GB, free: 11.77 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007532/0.4055, allocations: 0.7323 MB / 0.7415 GB, free: 11.33 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=128): time 2.375e-06/0.4055, allocations: 0 / 0.7415 GB, free: 11.33 MB / 0.5886 GB Notification: Performance of matching and sorting (n=129): time 0.004493/0.41, allocations: 3.793 MB / 0.7452 GB, free: 9.258 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.844e-05/0.41, allocations: 70.05 kB / 0.7452 GB, free: 9.188 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004426/0.4104, allocations: 0.6633 MB / 0.7459 GB, free: 8.801 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 5.167e-05/0.4105, allocations: 51.42 kB / 0.7459 GB, free: 8.75 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002404/0.4107, allocations: 0.5426 MB / 0.7465 GB, free: 8.266 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002116/0.4109, allocations: 453.7 kB / 0.7469 GB, free: 7.871 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001834/0.4111, allocations: 201.1 kB / 0.7471 GB, free: 7.758 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 8.292e-05/0.4112, allocations: 353.1 kB / 0.7474 GB, free: 7.418 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005722/0.4118, allocations: 0.5468 MB / 0.748 GB, free: 7.055 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006447/0.4124, allocations: 0.658 MB / 0.7486 GB, free: 6.371 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001298/0.4137, allocations: 1.252 MB / 0.7498 GB, free: 5.09 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.4137, allocations: 3.984 kB / 0.7498 GB, free: 5.086 MB / 0.5886 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.00204/0.4158, allocations: 1.644 MB / 0.7514 GB, free: 3.418 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 3.029e-05/0.4158, allocations: 29.7 kB / 0.7515 GB, free: 3.383 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.4158, allocations: 4 kB / 0.7515 GB, free: 3.379 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002931/0.4161, allocations: 161.2 kB / 0.7516 GB, free: 3.219 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004508/0.4165, allocations: 245.9 kB / 0.7518 GB, free: 2.98 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002157/0.4187, allocations: 2.563 MB / 0.7543 GB, free: 328 kB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002728/0.419, allocations: 48 kB / 0.7544 GB, free: 280 kB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.466e-05/0.419, allocations: 59.91 kB / 0.7545 GB, free: 220 kB / 0.5886 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.0003014/0.4193, allocations: 281.6 kB / 0.7547 GB, free: 15.93 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001589/0.4195, allocations: 139.1 kB / 0.7549 GB, free: 15.79 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002457/0.422, allocations: 2.324 MB / 0.7571 GB, free: 13.5 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.422, allocations: 12 kB / 0.7571 GB, free: 13.49 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.422, allocations: 7.984 kB / 0.7571 GB, free: 13.48 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.422, allocations: 3.984 kB / 0.7571 GB, free: 13.48 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003312/0.4253, allocations: 3.055 MB / 0.7601 GB, free: 10.37 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.4253, allocations: 0 / 0.7601 GB, free: 10.37 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004677/0.4258, allocations: 267.6 kB / 0.7604 GB, free: 10.11 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002338/0.426, allocations: 136.9 kB / 0.7605 GB, free: 9.969 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.936e-05/0.4261, allocations: 47.97 kB / 0.7606 GB, free: 9.922 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001522/0.4276, allocations: 2.289 MB / 0.7628 GB, free: 7.535 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.4276, allocations: 4 kB / 0.7628 GB, free: 7.531 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002907/0.4305, allocations: 2.612 MB / 0.7653 GB, free: 4.883 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003088/0.4308, allocations: 283 kB / 0.7656 GB, free: 4.605 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.82e-05/0.4309, allocations: 39.94 kB / 0.7657 GB, free: 4.566 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002773/0.4312, allocations: 47.95 kB / 0.7657 GB, free: 4.52 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001371/0.4313, allocations: 125 kB / 0.7658 GB, free: 4.398 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.098e-05/0.4313, allocations: 55.97 kB / 0.7659 GB, free: 4.344 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0003377/0.4317, allocations: 483 kB / 0.7663 GB, free: 3.875 MB / 0.6042 GB Notification: Performance of sort global known variables: time 5e-08/0.4317, allocations: 0 / 0.7663 GB, free: 3.875 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0008299/0.4325, allocations: 0.5423 MB / 0.7669 GB, free: 3.328 MB / 0.6042 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.0006101/0.4331, allocations: 0.5918 MB / 0.7674 GB, free: 2.738 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001672/0.4348, allocations: 1.58 MB / 0.769 GB, free: 1.125 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.4348, allocations: 384 / 0.769 GB, free: 1.125 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.00091/0.4357, allocations: 0.9429 MB / 0.7699 GB, free: 176 kB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001155/0.4369, allocations: 0.4966 MB / 0.7704 GB, free: 15.68 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003274/0.4401, allocations: 2.778 MB / 0.7731 GB, free: 12.86 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003623/0.4405, allocations: 0.5983 MB / 0.7737 GB, free: 12.23 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002892/0.4408, allocations: 164.4 kB / 0.7738 GB, free: 12.07 MB / 0.6198 GB Notification: Performance of SimCode: time 5.81e-07/0.4408, allocations: 4 kB / 0.7739 GB, free: 12.07 MB / 0.6198 GB Notification: Performance of Templates: time 0.0214/0.4622, allocations: 31.18 MB / 0.8043 GB, free: 12.97 MB / 0.6511 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_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_dev_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: 6.612829614430666]