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.0009591/0.0009591, allocations: 81.95 kB / 19.87 MB, free: 4.621 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.000966/0.000966, allocations: 169.7 kB / 23.28 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.9311/0.9311, allocations: 177.1 MB / 203.7 MB, free: 5.477 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.7/0.7, allocations: 118.6 MB / 378.9 MB, free: 1.375 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 1.272e-06/1.272e-06, allocations: 0 / 484.1 MB, free: 8.113 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.545e-05/1.672e-05, allocations: 2.312 kB / 484.1 MB, free: 8.109 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.01252/0.01254, allocations: 17.12 MB / 0.4894 GB, free: 12.37 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.00864/0.02118, allocations: 4.893 MB / 0.4942 GB, free: 8.941 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001501/0.02268, allocations: 115.5 kB / 0.4943 GB, free: 8.875 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001115/0.0238, allocations: 0.5306 MB / 0.4949 GB, free: 8.586 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003651/0.02745, allocations: 1.939 MB / 0.4967 GB, free: 7.164 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002178/0.02963, allocations: 0.9606 MB / 0.4977 GB, free: 6.453 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.004149/0.03377, allocations: 4.397 MB / 0.502 GB, free: 2.402 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004834/0.03426, allocations: 383.3 kB / 0.5023 GB, free: 2 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002305/0.03656, allocations: 2.197 MB / 0.5045 GB, free: 15.8 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009731/0.03754, allocations: 1.305 MB / 0.5058 GB, free: 14.49 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001824/0.03772, allocations: 192 kB / 0.5059 GB, free: 14.3 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006984/0.03842, allocations: 387.6 kB / 0.5063 GB, free: 13.92 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002612/0.03868, allocations: 0.5094 MB / 0.5068 GB, free: 13.41 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005857/0.03926, allocations: 0.9235 MB / 0.5077 GB, free: 12.48 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001698/0.04096, allocations: 2.296 MB / 0.51 GB, free: 10.18 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.04096, allocations: 3.984 kB / 0.51 GB, free: 10.18 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.04097, allocations: 3.938 kB / 0.51 GB, free: 10.17 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.617e-05/0.04098, allocations: 0 / 0.51 GB, free: 10.17 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.002967/0.04395, allocations: 3.025 MB / 0.5129 GB, free: 7.086 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.301e-05/0.04398, allocations: 12.03 kB / 0.5129 GB, free: 7.074 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006533/0.04464, allocations: 0.557 MB / 0.5135 GB, free: 6.516 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001355/0.04599, allocations: 1.476 MB / 0.5149 GB, free: 4.996 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.928e-05/0.04606, allocations: 144.1 kB / 0.5151 GB, free: 4.855 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001534/0.04621, allocations: 200.3 kB / 0.5152 GB, free: 4.66 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001306/0.04752, allocations: 1.444 MB / 0.5167 GB, free: 3.152 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.38e-05/0.04754, allocations: 4.172 kB / 0.5167 GB, free: 3.148 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.134e-05/0.04762, allocations: 80.12 kB / 0.5167 GB, free: 3.07 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.401e-05/0.04765, allocations: 44 kB / 0.5168 GB, free: 3.027 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008986/0.04855, allocations: 0.8369 MB / 0.5176 GB, free: 2.188 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004621/0.05317, allocations: 4.858 MB / 0.5223 GB, free: 13.24 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001156/0.05432, allocations: 1.279 MB / 0.5236 GB, free: 11.95 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004342/0.05476, allocations: 485.5 kB / 0.524 GB, free: 11.47 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002951/0.05771, allocations: 2.573 MB / 0.5266 GB, free: 8.961 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006874/0.0584, allocations: 0.7895 MB / 0.5273 GB, free: 8.125 MB / 458.7 MB Notification: Performance of pre-optimization done (n=200): time 3.788e-06/0.0584, allocations: 3.984 kB / 0.5273 GB, free: 8.121 MB / 458.7 MB Notification: Performance of matching and sorting (n=200): time 0.002081/0.06048, allocations: 1.762 MB / 0.5291 GB, free: 6.344 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.649e-05/0.06054, allocations: 154.5 kB / 0.5292 GB, free: 6.16 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007045/0.06124, allocations: 1.158 MB / 0.5303 GB, free: 4.984 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.925e-05/0.06131, allocations: 61.7 kB / 0.5304 GB, free: 4.918 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000462/0.06177, allocations: 0.978 MB / 0.5314 GB, free: 3.926 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003344/0.06211, allocations: 0.7008 MB / 0.532 GB, free: 3.219 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005576/0.06267, allocations: 349 kB / 0.5324 GB, free: 2.871 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.133e-05/0.06276, allocations: 480.7 kB / 0.5328 GB, free: 2.398 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003046/0.06306, allocations: 293.5 kB / 0.5331 GB, free: 2.105 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005724/0.06363, allocations: 0.907 MB / 0.534 GB, free: 1.008 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008872/0.06452, allocations: 1.002 MB / 0.535 GB, free: 15.91 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.06453, allocations: 0 / 0.535 GB, free: 15.91 MB / 474.7 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.001468/0.06599, allocations: 1.494 MB / 0.5364 GB, free: 14.38 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.161e-05/0.06602, allocations: 33.7 kB / 0.5365 GB, free: 14.34 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.06603, allocations: 4 kB / 0.5365 GB, free: 14.34 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003287/0.06636, allocations: 158.9 kB / 0.5366 GB, free: 14.17 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006614/0.06702, allocations: 391.5 kB / 0.537 GB, free: 13.79 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002587/0.06961, allocations: 5.535 MB / 0.5424 GB, free: 7.91 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005036/0.07011, allocations: 157.7 kB / 0.5425 GB, free: 7.758 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.572e-05/0.0702, allocations: 71.97 kB / 0.5426 GB, free: 7.688 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.0003131/0.07051, allocations: 276.1 kB / 0.5429 GB, free: 7.406 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002382/0.07075, allocations: 270.7 kB / 0.5431 GB, free: 7.141 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002371/0.07312, allocations: 2.349 MB / 0.5454 GB, free: 4.754 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.918e-06/0.07313, allocations: 20 kB / 0.5454 GB, free: 4.734 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.07314, allocations: 4 kB / 0.5455 GB, free: 4.73 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.135e-05/0.07315, allocations: 7.969 kB / 0.5455 GB, free: 4.723 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003356/0.0765, allocations: 2.889 MB / 0.5483 GB, free: 1.75 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.07651, allocations: 0 / 0.5483 GB, free: 1.75 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005816/0.07709, allocations: 339.5 kB / 0.5486 GB, free: 1.418 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003025/0.07739, allocations: 163 kB / 0.5488 GB, free: 1.246 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.39e-05/0.07746, allocations: 63.95 kB / 0.5488 GB, free: 1.184 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002444/0.07991, allocations: 5.533 MB / 0.5542 GB, free: 11.31 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.07991, allocations: 3.938 kB / 0.5542 GB, free: 11.31 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001853/0.08176, allocations: 1.928 MB / 0.5561 GB, free: 9.324 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00041/0.08217, allocations: 409.9 kB / 0.5565 GB, free: 8.922 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001041/0.08228, allocations: 40 kB / 0.5565 GB, free: 8.883 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003441/0.08262, allocations: 43.98 kB / 0.5566 GB, free: 8.84 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001518/0.08277, allocations: 161.6 kB / 0.5567 GB, free: 8.68 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.669e-05/0.08284, allocations: 63.89 kB / 0.5568 GB, free: 8.617 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004196/0.08326, allocations: 0.686 MB / 0.5575 GB, free: 7.938 MB / 490.7 MB Notification: Performance of sort global known variables: time 5e-08/0.08326, allocations: 0 / 0.5575 GB, free: 7.938 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0009813/0.08424, allocations: 0.6863 MB / 0.5581 GB, free: 7.25 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.0002598/0.0845, allocations: 214.7 kB / 0.5583 GB, free: 7.027 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001314/0.08581, allocations: 1.621 MB / 0.5599 GB, free: 5.332 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.08582, allocations: 384 / 0.5599 GB, free: 5.332 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001024/0.08684, allocations: 1.144 MB / 0.561 GB, free: 4.129 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001817/0.08866, allocations: 0.872 MB / 0.5619 GB, free: 3.277 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004415/0.09307, allocations: 3.812 MB / 0.5656 GB, free: 15.38 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002509/0.09332, allocations: 365.5 kB / 0.566 GB, free: 15 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0008782/0.0942, allocations: 458.5 kB / 0.5664 GB, free: 14.57 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001356/0.09556, allocations: 0.7555 MB / 0.5671 GB, free: 13.81 MB / 0.4948 GB Notification: Performance of SimCode: time 8.82e-07/0.09556, allocations: 0 / 0.5671 GB, free: 13.81 MB / 0.4948 GB Notification: Performance of Templates: time 0.04139/0.137, allocations: 38.89 MB / 0.6051 GB, free: 7.672 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.526592317037284]