Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.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.0009558/0.0009558, allocations: 85.27 kB / 19.87 MB, free: 4.617 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.001049/0.001049, allocations: 165 kB / 23.27 MB, free: 1.219 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.933/0.933, allocations: 177.1 MB / 203.7 MB, free: 5.504 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.6481/0.6481, allocations: 118.6 MB / 378.9 MB, free: 1.336 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.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.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|boundary_rear2.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|boundary_rear2.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.034e-06/2.034e-06, allocations: 0 / 484.1 MB, free: 8.09 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.204e-05/1.408e-05, allocations: 7 kB / 484.1 MB, free: 8.086 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.0113/0.01131, allocations: 17.12 MB / 0.4894 GB, free: 12.35 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.007152/0.01847, allocations: 4.899 MB / 0.4942 GB, free: 8.906 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001089/0.01955, allocations: 112.2 kB / 0.4943 GB, free: 8.844 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009125/0.02047, allocations: 0.5257 MB / 0.4948 GB, free: 8.559 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002794/0.02326, allocations: 1.939 MB / 0.4967 GB, free: 7.141 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002435/0.0257, allocations: 0.9689 MB / 0.4977 GB, free: 6.422 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.004163/0.02986, allocations: 4.388 MB / 0.502 GB, free: 2.387 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000548/0.03041, allocations: 383.3 kB / 0.5023 GB, free: 1.984 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002191/0.0326, allocations: 2.201 MB / 0.5045 GB, free: 15.78 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001547/0.03415, allocations: 1.305 MB / 0.5058 GB, free: 14.47 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002392/0.03438, allocations: 192 kB / 0.5059 GB, free: 14.28 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008003/0.03518, allocations: 391.6 kB / 0.5063 GB, free: 13.9 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003454/0.03553, allocations: 0.5054 MB / 0.5068 GB, free: 13.39 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007925/0.03632, allocations: 0.9196 MB / 0.5077 GB, free: 12.47 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002122/0.03844, allocations: 2.304 MB / 0.51 GB, free: 10.16 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.03845, allocations: 3.938 kB / 0.51 GB, free: 10.15 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.103e-06/0.03845, allocations: 0 / 0.51 GB, free: 10.15 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.442e-05/0.03846, allocations: 0 / 0.51 GB, free: 10.15 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 479 * Number of variables: 479 Notification: Performance of Generate backend data structure: time 0.003776/0.04224, allocations: 3.032 MB / 0.5129 GB, free: 7.059 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.04228, allocations: 12.03 kB / 0.5129 GB, free: 7.047 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008902/0.04317, allocations: 0.5531 MB / 0.5135 GB, free: 6.492 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001851/0.04502, allocations: 1.476 MB / 0.5149 GB, free: 4.973 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.428e-05/0.04512, allocations: 140.1 kB / 0.515 GB, free: 4.836 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002061/0.04532, allocations: 204.3 kB / 0.5152 GB, free: 4.637 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001724/0.04705, allocations: 1.44 MB / 0.5166 GB, free: 3.133 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.8e-05/0.04707, allocations: 4.188 kB / 0.5167 GB, free: 3.129 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001098/0.04718, allocations: 80.12 kB / 0.5167 GB, free: 3.051 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.257e-05/0.04722, allocations: 44 kB / 0.5168 GB, free: 3.008 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001202/0.04842, allocations: 0.833 MB / 0.5176 GB, free: 2.172 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006037/0.05446, allocations: 4.862 MB / 0.5223 GB, free: 13.22 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001523/0.05598, allocations: 1.279 MB / 0.5236 GB, free: 11.94 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005806/0.05656, allocations: 481.5 kB / 0.524 GB, free: 11.46 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003499/0.06006, allocations: 2.577 MB / 0.5266 GB, free: 8.945 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001173/0.06123, allocations: 0.7818 MB / 0.5273 GB, free: 8.117 MB / 458.7 MB Notification: Performance of pre-optimization done (n=200): time 3.828e-06/0.06123, allocations: 0 / 0.5273 GB, free: 8.117 MB / 458.7 MB Notification: Performance of matching and sorting (n=200): time 0.002755/0.06399, allocations: 1.774 MB / 0.5291 GB, free: 6.328 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.846e-05/0.06406, allocations: 150.5 kB / 0.5292 GB, free: 6.148 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009387/0.065, allocations: 1.158 MB / 0.5303 GB, free: 4.973 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 8.357e-05/0.06508, allocations: 61.7 kB / 0.5304 GB, free: 4.906 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005795/0.06566, allocations: 0.9741 MB / 0.5313 GB, free: 3.918 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004249/0.06609, allocations: 0.6969 MB / 0.532 GB, free: 3.215 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003918/0.06648, allocations: 357 kB / 0.5324 GB, free: 2.859 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.06659, allocations: 480.7 kB / 0.5328 GB, free: 2.387 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004142/0.067, allocations: 293.5 kB / 0.5331 GB, free: 2.094 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009944/0.06799, allocations: 0.907 MB / 0.534 GB, free: 0.9961 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00119/0.06918, allocations: 0.9982 MB / 0.535 GB, free: 15.9 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/0.06919, allocations: 0 / 0.535 GB, free: 15.9 MB / 474.7 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.001863/0.07105, allocations: 1.498 MB / 0.5364 GB, free: 14.37 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.106e-05/0.07108, allocations: 33.7 kB / 0.5365 GB, free: 14.33 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.846e-06/0.07109, allocations: 4 kB / 0.5365 GB, free: 14.33 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003165/0.07141, allocations: 158.9 kB / 0.5366 GB, free: 14.16 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006462/0.07206, allocations: 395.4 kB / 0.537 GB, free: 13.77 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00259/0.07465, allocations: 5.528 MB / 0.5424 GB, free: 7.902 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004654/0.07511, allocations: 160.9 kB / 0.5425 GB, free: 7.746 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.942e-05/0.07519, allocations: 67.97 kB / 0.5426 GB, free: 7.68 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (214): * Single equations (assignments): 210 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003054/0.0755, allocations: 272.1 kB / 0.5429 GB, free: 7.402 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002292/0.07572, allocations: 270.7 kB / 0.5431 GB, free: 7.137 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002317/0.07804, allocations: 2.355 MB / 0.5454 GB, free: 4.746 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.277e-06/0.07805, allocations: 20 kB / 0.5454 GB, free: 4.727 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.07806, allocations: 4 kB / 0.5454 GB, free: 4.723 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.2e-05/0.07807, allocations: 11.95 kB / 0.5455 GB, free: 4.711 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003147/0.08121, allocations: 2.889 MB / 0.5483 GB, free: 1.738 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.08122, allocations: 0 / 0.5483 GB, free: 1.738 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005772/0.0818, allocations: 339.5 kB / 0.5486 GB, free: 1.406 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002833/0.08208, allocations: 167 kB / 0.5488 GB, free: 1.23 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.278e-05/0.08215, allocations: 63.95 kB / 0.5488 GB, free: 1.168 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002059/0.08421, allocations: 5.537 MB / 0.5542 GB, free: 11.29 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.08421, allocations: 3.938 kB / 0.5542 GB, free: 11.29 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002008/0.08622, allocations: 1.92 MB / 0.5561 GB, free: 9.312 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003771/0.0866, allocations: 409.9 kB / 0.5565 GB, free: 8.91 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001025/0.0867, allocations: 44.12 kB / 0.5565 GB, free: 8.867 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003418/0.08704, allocations: 47.98 kB / 0.5566 GB, free: 8.82 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001452/0.08719, allocations: 165.6 kB / 0.5567 GB, free: 8.656 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.479e-05/0.08725, allocations: 59.95 kB / 0.5568 GB, free: 8.598 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004011/0.08765, allocations: 0.6899 MB / 0.5575 GB, free: 7.914 MB / 490.7 MB Notification: Performance of sort global known variables: time 8e-08/0.08765, allocations: 0 / 0.5575 GB, free: 7.914 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0008794/0.08853, allocations: 0.6863 MB / 0.5581 GB, free: 7.227 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (flowResistance6.rear.m_flow,flowResistance2.rear.m_flow,flowResistance4.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 (195): * Single equations (assignments): 190 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002447/0.08878, allocations: 202.8 kB / 0.5583 GB, free: 7.016 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001219/0.09, allocations: 1.617 MB / 0.5599 GB, free: 5.324 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.09, allocations: 64 / 0.5599 GB, free: 5.324 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007518/0.09075, allocations: 1.148 MB / 0.561 GB, free: 4.117 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001996/0.09275, allocations: 0.8714 MB / 0.5619 GB, free: 3.266 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004088/0.09683, allocations: 3.81 MB / 0.5656 GB, free: 15.38 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00022/0.09705, allocations: 369.4 kB / 0.566 GB, free: 14.98 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0007828/0.09784, allocations: 458.5 kB / 0.5664 GB, free: 14.56 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001055/0.09889, allocations: 0.7555 MB / 0.5671 GB, free: 13.8 MB / 0.4948 GB Notification: Performance of SimCode: time 7.21e-07/0.09889, allocations: 0 / 0.5671 GB, free: 13.8 MB / 0.4948 GB Notification: Performance of Templates: time 0.04003/0.1389, allocations: 38.88 MB / 0.6051 GB, free: 7.699 MB / 0.5261 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_ref.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.295578182674944]