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.001036/0.001036, allocations: 92.22 kB / 19.65 MB, free: 276 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.001064/0.001064, allocations: 169 kB / 23.02 MB, free: 1.551 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 1.015/1.015, allocations: 177.1 MB / 203.4 MB, free: 5.629 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.6624/0.6624, allocations: 118.6 MB / 378.6 MB, free: 1.457 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 1.973e-06/1.973e-06, allocations: 0 / 483.6 MB, free: 8.262 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.921e-05/3.119e-05, allocations: 5.125 kB / 483.6 MB, free: 8.258 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.01765/0.01768, allocations: 17.33 MB / 0.4892 GB, free: 12.52 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.009658/0.02734, allocations: 4.921 MB / 0.494 GB, free: 9.082 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002943/0.03029, allocations: 116.9 kB / 0.4941 GB, free: 9.016 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001792/0.03208, allocations: 0.5216 MB / 0.4946 GB, free: 8.734 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005224/0.0373, allocations: 1.938 MB / 0.4965 GB, free: 7.168 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002733/0.04003, allocations: 0.9649 MB / 0.4975 GB, free: 6.453 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.006603/0.04664, allocations: 4.398 MB / 0.5018 GB, free: 2.414 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001115/0.04775, allocations: 379.3 kB / 0.5021 GB, free: 2.016 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00445/0.0522, allocations: 2.194 MB / 0.5043 GB, free: 15.82 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001881/0.05408, allocations: 1.301 MB / 0.5055 GB, free: 14.51 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004907/0.05457, allocations: 192 kB / 0.5057 GB, free: 14.32 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001095/0.05567, allocations: 395.6 kB / 0.5061 GB, free: 13.94 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005299/0.0562, allocations: 0.5093 MB / 0.5066 GB, free: 13.43 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001233/0.05743, allocations: 0.9196 MB / 0.5075 GB, free: 12.5 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003558/0.06099, allocations: 2.296 MB / 0.5097 GB, free: 10.2 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.086e-06/0.061, allocations: 0 / 0.5097 GB, free: 10.2 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.061, allocations: 0 / 0.5097 GB, free: 10.2 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001207/0.06112, allocations: 0 / 0.5097 GB, free: 10.2 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.004572/0.06569, allocations: 3.013 MB / 0.5127 GB, free: 7.125 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.221e-05/0.06574, allocations: 8.031 kB / 0.5127 GB, free: 7.117 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001013/0.06676, allocations: 0.5492 MB / 0.5132 GB, free: 6.566 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002057/0.06881, allocations: 1.487 MB / 0.5147 GB, free: 5.035 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.107e-05/0.0689, allocations: 144.1 kB / 0.5148 GB, free: 4.895 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002093/0.06911, allocations: 204.3 kB / 0.515 GB, free: 4.695 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002146/0.07126, allocations: 1.581 MB / 0.5165 GB, free: 3.051 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.816e-05/0.07129, allocations: 4.188 kB / 0.5165 GB, free: 3.047 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001033/0.07139, allocations: 80.12 kB / 0.5166 GB, free: 2.969 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.464e-05/0.07143, allocations: 48 kB / 0.5167 GB, free: 2.922 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001621/0.07305, allocations: 1.072 MB / 0.5177 GB, free: 1.848 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007078/0.08013, allocations: 5.082 MB / 0.5227 GB, free: 12.67 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001762/0.08189, allocations: 1.408 MB / 0.5241 GB, free: 11.25 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007011/0.08259, allocations: 0.564 MB / 0.5246 GB, free: 10.68 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003813/0.0864, allocations: 2.472 MB / 0.527 GB, free: 8.184 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001028/0.08743, allocations: 0.8445 MB / 0.5278 GB, free: 7.293 MB / 458.7 MB Notification: Performance of pre-optimization done (n=200): time 5.189e-06/0.08744, allocations: 0 / 0.5278 GB, free: 7.293 MB / 458.7 MB Notification: Performance of matching and sorting (n=200): time 0.003283/0.09072, allocations: 1.989 MB / 0.5298 GB, free: 5.289 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.75e-05/0.09081, allocations: 158.5 kB / 0.5299 GB, free: 5.102 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0011/0.09191, allocations: 1.179 MB / 0.5311 GB, free: 3.906 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 8.759e-05/0.09199, allocations: 65.7 kB / 0.5312 GB, free: 3.836 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005981/0.09259, allocations: 0.9548 MB / 0.5321 GB, free: 2.867 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007796/0.09337, allocations: 0.7049 MB / 0.5328 GB, free: 2.156 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003633/0.09373, allocations: 341.1 kB / 0.5331 GB, free: 1.816 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.09385, allocations: 476.8 kB / 0.5336 GB, free: 1.348 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005587/0.0944, allocations: 377.5 kB / 0.5339 GB, free: 0.9727 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009669/0.09537, allocations: 0.9775 MB / 0.5349 GB, free: 15.8 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001581/0.09695, allocations: 1.155 MB / 0.536 GB, free: 14.55 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/0.09696, allocations: 0 / 0.536 GB, free: 14.55 MB / 474.7 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.002331/0.09929, allocations: 1.65 MB / 0.5376 GB, free: 12.87 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.407e-05/0.09934, allocations: 37.7 kB / 0.5376 GB, free: 12.83 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.451e-05/0.09935, allocations: 11.98 kB / 0.5377 GB, free: 12.82 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004927/0.09984, allocations: 163.1 kB / 0.5378 GB, free: 12.64 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007478/0.1006, allocations: 387.5 kB / 0.5382 GB, free: 12.27 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003354/0.1039, allocations: 5.619 MB / 0.5437 GB, free: 6.277 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008845/0.1048, allocations: 170.6 kB / 0.5438 GB, free: 6.117 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001137/0.1049, allocations: 87.95 kB / 0.5439 GB, free: 6.031 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.0004645/0.1054, allocations: 256.2 kB / 0.5442 GB, free: 5.77 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002964/0.1057, allocations: 274.6 kB / 0.5444 GB, free: 5.5 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003157/0.1089, allocations: 2.483 MB / 0.5468 GB, free: 3.008 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.19e-05/0.1089, allocations: 20 kB / 0.5469 GB, free: 2.988 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.1089, allocations: 0 / 0.5469 GB, free: 2.988 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.395e-05/0.1089, allocations: 11.91 kB / 0.5469 GB, free: 2.977 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003915/0.1128, allocations: 3.257 MB / 0.5501 GB, free: 15.62 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.1128, allocations: 0 / 0.5501 GB, free: 15.62 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006418/0.1135, allocations: 343.5 kB / 0.5504 GB, free: 15.29 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003534/0.1138, allocations: 175 kB / 0.5505 GB, free: 15.11 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.136e-05/0.1139, allocations: 63.97 kB / 0.5506 GB, free: 15.04 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002723/0.1166, allocations: 5.617 MB / 0.5561 GB, free: 9.062 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1166, allocations: 4 kB / 0.5561 GB, free: 9.059 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002567/0.1192, allocations: 2.15 MB / 0.5582 GB, free: 6.852 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005833/0.1198, allocations: 405.9 kB / 0.5586 GB, free: 6.453 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001395/0.1199, allocations: 47.92 kB / 0.5586 GB, free: 6.406 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003993/0.1203, allocations: 47.98 kB / 0.5587 GB, free: 6.359 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002051/0.1205, allocations: 157.6 kB / 0.5588 GB, free: 6.203 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.355e-05/0.1206, allocations: 75.97 kB / 0.5589 GB, free: 6.129 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0007026/0.1213, allocations: 0.7448 MB / 0.5596 GB, free: 5.391 MB / 490.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1213, allocations: 0 / 0.5596 GB, free: 5.391 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001327/0.1226, allocations: 0.6863 MB / 0.5603 GB, free: 4.703 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.0003353/0.123, allocations: 206.7 kB / 0.5605 GB, free: 4.488 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002127/0.1251, allocations: 1.765 MB / 0.5622 GB, free: 2.648 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.1251, allocations: 0 / 0.5622 GB, free: 2.648 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001018/0.1261, allocations: 1.208 MB / 0.5634 GB, free: 1.383 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002032/0.1281, allocations: 0.8724 MB / 0.5643 GB, free: 0.5273 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005625/0.1338, allocations: 3.842 MB / 0.568 GB, free: 12.61 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002668/0.134, allocations: 365.6 kB / 0.5684 GB, free: 12.22 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.001161/0.1352, allocations: 450.7 kB / 0.5688 GB, free: 11.8 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004052/0.1356, allocations: 224.4 kB / 0.569 GB, free: 11.58 MB / 0.4948 GB Notification: Performance of SimCode: time 1.884e-06/0.1356, allocations: 0 / 0.569 GB, free: 11.58 MB / 0.4948 GB Notification: Performance of Templates: time 0.04197/0.1776, allocations: 35.05 MB / 0.6032 GB, free: 9.223 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.638877168297768]