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.001367/0.001367, allocations: 77.09 kB / 20.66 MB, free: 3.844 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.001576/0.001576, allocations: 169 kB / 24.06 MB, free: 456 kB / 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.9682/0.9682, allocations: 177.1 MB / 204.5 MB, free: 5.508 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.7073/0.7073, allocations: 118.6 MB / 379.7 MB, free: 1.363 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.402e-06/1.402e-06, allocations: 0 / 484.8 MB, free: 8.105 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.768e-05/1.909e-05, allocations: 10.61 kB / 484.9 MB, free: 8.102 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.01137/0.01139, allocations: 17.12 MB / 0.4902 GB, free: 12.36 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.008164/0.01956, allocations: 4.89 MB / 0.495 GB, free: 8.93 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001808/0.02136, allocations: 111.9 kB / 0.4951 GB, free: 8.867 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001122/0.02249, allocations: 0.5305 MB / 0.4956 GB, free: 8.578 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003691/0.02618, allocations: 1.944 MB / 0.4975 GB, free: 7.168 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00222/0.0284, allocations: 0.9648 MB / 0.4985 GB, free: 6.453 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.006135/0.03453, allocations: 4.389 MB / 0.5027 GB, free: 2.414 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007938/0.03533, allocations: 383.3 kB / 0.5031 GB, free: 2.012 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003135/0.03846, allocations: 2.197 MB / 0.5053 GB, free: 15.81 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001423/0.03988, allocations: 1.301 MB / 0.5065 GB, free: 14.5 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003679/0.04025, allocations: 196 kB / 0.5067 GB, free: 14.31 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008484/0.0411, allocations: 387.6 kB / 0.5071 GB, free: 13.93 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003094/0.04141, allocations: 0.5094 MB / 0.5076 GB, free: 13.42 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001181/0.04259, allocations: 0.9235 MB / 0.5085 GB, free: 12.5 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002306/0.0449, allocations: 2.288 MB / 0.5107 GB, free: 10.2 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.0449, allocations: 0 / 0.5107 GB, free: 10.2 MB / 442.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.0449, allocations: 0 / 0.5107 GB, free: 10.2 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.08e-05/0.04495, allocations: 3.938 kB / 0.5107 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.0032/0.04815, allocations: 3.04 MB / 0.5137 GB, free: 7.094 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.04819, allocations: 8.031 kB / 0.5137 GB, free: 7.086 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007607/0.04895, allocations: 0.5492 MB / 0.5142 GB, free: 6.535 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001731/0.05068, allocations: 1.483 MB / 0.5157 GB, free: 5.008 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.457e-05/0.05075, allocations: 144.1 kB / 0.5158 GB, free: 4.867 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001654/0.05092, allocations: 196.3 kB / 0.516 GB, free: 4.676 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001422/0.05234, allocations: 1.448 MB / 0.5174 GB, free: 3.164 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.839e-05/0.05237, allocations: 4.188 kB / 0.5174 GB, free: 3.16 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.374e-05/0.05246, allocations: 80.12 kB / 0.5175 GB, free: 3.082 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.503e-05/0.05249, allocations: 48 kB / 0.5175 GB, free: 3.035 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009757/0.05346, allocations: 0.8291 MB / 0.5184 GB, free: 2.203 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005032/0.0585, allocations: 4.866 MB / 0.5231 GB, free: 13.25 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001264/0.05976, allocations: 1.275 MB / 0.5243 GB, free: 11.97 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004649/0.06022, allocations: 485.4 kB / 0.5248 GB, free: 11.49 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003199/0.06342, allocations: 2.48 MB / 0.5272 GB, free: 8.98 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008133/0.06424, allocations: 0.7818 MB / 0.528 GB, free: 8.152 MB / 458.7 MB Notification: Performance of pre-optimization done (n=200): time 4.017e-06/0.06424, allocations: 0 / 0.528 GB, free: 8.152 MB / 458.7 MB Notification: Performance of matching and sorting (n=200): time 0.002555/0.0668, allocations: 1.758 MB / 0.5297 GB, free: 6.379 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.081e-05/0.06687, allocations: 154.5 kB / 0.5299 GB, free: 6.195 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007903/0.06766, allocations: 1.158 MB / 0.531 GB, free: 5.02 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 8.048e-05/0.06774, allocations: 61.8 kB / 0.5311 GB, free: 4.953 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000532/0.06827, allocations: 0.9858 MB / 0.532 GB, free: 3.953 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003689/0.06864, allocations: 0.7047 MB / 0.5327 GB, free: 3.242 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003308/0.06897, allocations: 345 kB / 0.533 GB, free: 2.898 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.06907, allocations: 480.7 kB / 0.5335 GB, free: 2.426 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003487/0.06942, allocations: 297.5 kB / 0.5338 GB, free: 2.129 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006206/0.07004, allocations: 0.907 MB / 0.5347 GB, free: 1.031 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009927/0.07103, allocations: 1.01 MB / 0.5356 GB, free: 15.93 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.07104, allocations: 0 / 0.5356 GB, free: 15.93 MB / 474.7 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.001835/0.07287, allocations: 1.478 MB / 0.5371 GB, free: 14.41 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.565e-05/0.07291, allocations: 33.7 kB / 0.5371 GB, free: 14.38 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.07292, allocations: 4.406 kB / 0.5371 GB, free: 14.37 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000371/0.07329, allocations: 170.8 kB / 0.5373 GB, free: 14.19 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007433/0.07403, allocations: 387.5 kB / 0.5377 GB, free: 13.81 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002775/0.07681, allocations: 5.524 MB / 0.5431 GB, free: 7.945 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007551/0.07756, allocations: 164.7 kB / 0.5432 GB, free: 7.785 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001036/0.07767, allocations: 67.97 kB / 0.5433 GB, free: 7.719 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.0004915/0.07816, allocations: 272 kB / 0.5435 GB, free: 7.441 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002677/0.07843, allocations: 274.6 kB / 0.5438 GB, free: 7.172 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002608/0.08103, allocations: 2.359 MB / 0.5461 GB, free: 4.789 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.068e-05/0.08104, allocations: 20 kB / 0.5461 GB, free: 4.77 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.08105, allocations: 4 kB / 0.5461 GB, free: 4.766 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.276e-05/0.08106, allocations: 7.969 kB / 0.5461 GB, free: 4.758 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003479/0.08454, allocations: 2.881 MB / 0.5489 GB, free: 1.793 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.08455, allocations: 4 kB / 0.5489 GB, free: 1.789 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006535/0.0852, allocations: 335.5 kB / 0.5493 GB, free: 1.461 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003349/0.08554, allocations: 175 kB / 0.5494 GB, free: 1.277 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.997e-05/0.08563, allocations: 63.97 kB / 0.5495 GB, free: 1.215 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002554/0.08818, allocations: 5.533 MB / 0.5549 GB, free: 11.34 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.08818, allocations: 4 kB / 0.5549 GB, free: 11.34 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002107/0.09029, allocations: 1.924 MB / 0.5568 GB, free: 9.359 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006793/0.09097, allocations: 401.9 kB / 0.5572 GB, free: 8.965 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001396/0.09111, allocations: 43.98 kB / 0.5572 GB, free: 8.922 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003914/0.0915, allocations: 47.98 kB / 0.5573 GB, free: 8.875 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001889/0.09169, allocations: 169.6 kB / 0.5574 GB, free: 8.707 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.646e-05/0.09177, allocations: 55.97 kB / 0.5575 GB, free: 8.652 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004596/0.09223, allocations: 0.686 MB / 0.5581 GB, free: 7.973 MB / 490.7 MB Notification: Performance of sort global known variables: time 8e-08/0.09223, allocations: 0 / 0.5581 GB, free: 7.973 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001156/0.09338, allocations: 0.6902 MB / 0.5588 GB, free: 7.281 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.0002846/0.09367, allocations: 213 kB / 0.559 GB, free: 7.062 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001496/0.09516, allocations: 1.62 MB / 0.5606 GB, free: 5.367 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.09516, allocations: 0 / 0.5606 GB, free: 5.367 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008378/0.096, allocations: 1.138 MB / 0.5617 GB, free: 4.172 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001961/0.09796, allocations: 0.8695 MB / 0.5626 GB, free: 3.324 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005011/0.103, allocations: 3.816 MB / 0.5663 GB, free: 15.43 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002544/0.1032, allocations: 369.4 kB / 0.5666 GB, free: 15.04 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.001067/0.1043, allocations: 455.5 kB / 0.5671 GB, free: 14.61 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001183/0.1055, allocations: 0.7516 MB / 0.5678 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of SimCode: time 1.332e-06/0.1055, allocations: 4 kB / 0.5678 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of Templates: time 0.0493/0.1548, allocations: 39.57 MB / 0.6065 GB, free: 7.02 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.634983562864363]