Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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.001033/0.001033, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 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.001161/0.001161, allocations: 169 kB / 23.02 MB, free: 1.555 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.9942/0.9942, allocations: 177.1 MB / 203.4 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo): time 0.7018/0.7018, allocations: 118.6 MB / 378.6 MB, free: 1.504 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/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_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_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.064e-06/2.064e-06, allocations: 0 / 483.6 MB, free: 8.285 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.534e-05/2.74e-05, allocations: 4.844 kB / 483.6 MB, free: 8.281 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.01424/0.01427, allocations: 17.34 MB / 0.4892 GB, free: 12.54 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.008753/0.02302, allocations: 4.909 MB / 0.494 GB, free: 9.109 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002044/0.02506, allocations: 112.2 kB / 0.4941 GB, free: 9.047 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001134/0.0262, allocations: 0.5343 MB / 0.4946 GB, free: 8.754 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003349/0.02955, allocations: 1.928 MB / 0.4965 GB, free: 7.215 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002336/0.03188, allocations: 0.9689 MB / 0.4975 GB, free: 6.496 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.004743/0.03663, allocations: 4.396 MB / 0.5018 GB, free: 2.461 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006291/0.03725, allocations: 383.5 kB / 0.5021 GB, free: 2.062 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002764/0.04002, allocations: 2.197 MB / 0.5043 GB, free: 15.86 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001368/0.04139, allocations: 1.301 MB / 0.5055 GB, free: 14.55 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003066/0.04169, allocations: 192 kB / 0.5057 GB, free: 14.37 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008247/0.04252, allocations: 383.7 kB / 0.5061 GB, free: 13.99 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003035/0.04282, allocations: 0.5132 MB / 0.5066 GB, free: 13.48 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007555/0.04358, allocations: 0.9196 MB / 0.5075 GB, free: 12.55 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001976/0.04555, allocations: 2.296 MB / 0.5097 GB, free: 10.25 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.04556, allocations: 0 / 0.5097 GB, free: 10.25 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.04556, allocations: 0 / 0.5097 GB, free: 10.25 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.286e-05/0.04559, allocations: 0 / 0.5097 GB, free: 10.25 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.003063/0.04865, allocations: 3.006 MB / 0.5127 GB, free: 7.184 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.04869, allocations: 12.02 kB / 0.5127 GB, free: 7.172 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007117/0.0494, allocations: 0.5531 MB / 0.5132 GB, free: 6.617 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001596/0.051, allocations: 1.487 MB / 0.5147 GB, free: 5.086 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.595e-05/0.05107, allocations: 152.1 kB / 0.5148 GB, free: 4.938 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001736/0.05125, allocations: 196.3 kB / 0.515 GB, free: 4.746 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001755/0.053, allocations: 1.581 MB / 0.5165 GB, free: 3.102 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.644e-05/0.05303, allocations: 4.125 kB / 0.5165 GB, free: 3.098 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.309e-05/0.05312, allocations: 88.11 kB / 0.5166 GB, free: 3.012 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.796e-05/0.05315, allocations: 47.98 kB / 0.5167 GB, free: 2.965 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00144/0.05459, allocations: 1.064 MB / 0.5177 GB, free: 1.898 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005087/0.05968, allocations: 5.094 MB / 0.5227 GB, free: 12.71 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001603/0.06128, allocations: 1.408 MB / 0.5241 GB, free: 11.29 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006752/0.06196, allocations: 0.564 MB / 0.5246 GB, free: 10.72 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003064/0.06502, allocations: 2.465 MB / 0.527 GB, free: 8.23 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009251/0.06595, allocations: 0.8368 MB / 0.5278 GB, free: 7.348 MB / 458.7 MB Notification: Performance of pre-optimization done (n=200): time 3.276e-06/0.06595, allocations: 4 kB / 0.5278 GB, free: 7.344 MB / 458.7 MB Notification: Performance of matching and sorting (n=200): time 0.002808/0.06876, allocations: 2.004 MB / 0.5298 GB, free: 5.324 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.658e-05/0.06882, allocations: 150.5 kB / 0.5299 GB, free: 5.145 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008994/0.06972, allocations: 1.186 MB / 0.5311 GB, free: 3.941 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.171e-05/0.06979, allocations: 57.7 kB / 0.5312 GB, free: 3.879 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004781/0.07027, allocations: 0.9509 MB / 0.5321 GB, free: 2.914 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003489/0.07062, allocations: 0.7009 MB / 0.5328 GB, free: 2.207 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003266/0.07095, allocations: 341.1 kB / 0.5331 GB, free: 1.867 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.07109, allocations: 480.8 kB / 0.5336 GB, free: 1.395 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005398/0.07163, allocations: 373.5 kB / 0.5339 GB, free: 1.023 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008545/0.07249, allocations: 0.9814 MB / 0.5349 GB, free: 15.85 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00138/0.07387, allocations: 1.155 MB / 0.536 GB, free: 14.6 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.07387, allocations: 4 kB / 0.536 GB, free: 14.6 MB / 474.7 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.001949/0.07582, allocations: 1.658 MB / 0.5376 GB, free: 12.91 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.584e-05/0.07586, allocations: 33.7 kB / 0.5377 GB, free: 12.87 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.07587, allocations: 4 kB / 0.5377 GB, free: 12.86 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004189/0.07629, allocations: 162.9 kB / 0.5378 GB, free: 12.69 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000724/0.07701, allocations: 391.4 kB / 0.5382 GB, free: 12.31 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002584/0.07959, allocations: 5.624 MB / 0.5437 GB, free: 6.316 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005691/0.08016, allocations: 158.9 kB / 0.5438 GB, free: 6.16 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.695e-05/0.08026, allocations: 83.97 kB / 0.5439 GB, free: 6.078 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.0003368/0.0806, allocations: 260.1 kB / 0.5442 GB, free: 5.812 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002437/0.08084, allocations: 278.7 kB / 0.5444 GB, free: 5.539 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002816/0.08366, allocations: 2.465 MB / 0.5468 GB, free: 3.055 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.304e-05/0.08367, allocations: 23.94 kB / 0.5469 GB, free: 3.031 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.08367, allocations: 4 kB / 0.5469 GB, free: 3.027 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.431e-05/0.08369, allocations: 15.89 kB / 0.5469 GB, free: 3.012 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0038/0.08749, allocations: 3.257 MB / 0.5501 GB, free: 15.66 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.73e-06/0.08749, allocations: 0 / 0.5501 GB, free: 15.66 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006308/0.08812, allocations: 335.6 kB / 0.5504 GB, free: 15.33 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00033/0.08845, allocations: 174.8 kB / 0.5505 GB, free: 15.15 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.998e-05/0.08853, allocations: 67.94 kB / 0.5506 GB, free: 15.08 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002438/0.09097, allocations: 5.621 MB / 0.5561 GB, free: 9.098 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.09097, allocations: 0 / 0.5561 GB, free: 9.098 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002461/0.09344, allocations: 2.146 MB / 0.5582 GB, free: 6.895 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004437/0.09388, allocations: 410 kB / 0.5586 GB, free: 6.492 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001112/0.09399, allocations: 48.08 kB / 0.5586 GB, free: 6.445 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003785/0.09437, allocations: 51.98 kB / 0.5587 GB, free: 6.395 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001779/0.09455, allocations: 157.7 kB / 0.5588 GB, free: 6.238 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.123e-05/0.09463, allocations: 71.95 kB / 0.5589 GB, free: 6.168 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0006129/0.09524, allocations: 0.737 MB / 0.5596 GB, free: 5.438 MB / 490.7 MB Notification: Performance of sort global known variables: time 8e-08/0.09524, allocations: 0 / 0.5596 GB, free: 5.438 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001062/0.0963, allocations: 0.698 MB / 0.5603 GB, free: 4.738 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.0002907/0.09659, allocations: 202.7 kB / 0.5605 GB, free: 4.527 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001834/0.09843, allocations: 1.78 MB / 0.5622 GB, free: 2.672 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.09843, allocations: 1.312 kB / 0.5622 GB, free: 2.672 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001053/0.09948, allocations: 1.204 MB / 0.5634 GB, free: 1.41 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002003/0.1015, allocations: 0.8739 MB / 0.5643 GB, free: 0.5625 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005446/0.1069, allocations: 3.84 MB / 0.568 GB, free: 12.64 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002861/0.1072, allocations: 361.6 kB / 0.5684 GB, free: 12.26 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0009672/0.1082, allocations: 462.2 kB / 0.5688 GB, free: 11.83 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003828/0.1086, allocations: 224.3 kB / 0.569 GB, free: 11.61 MB / 0.4948 GB Notification: Performance of SimCode: time 1.032e-06/0.1086, allocations: 0 / 0.569 GB, free: 11.61 MB / 0.4948 GB Notification: Performance of Templates: time 0.0385/0.1471, allocations: 35.04 MB / 0.6032 GB, free: 9.223 MB / 0.5261 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_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.595384778920561]