Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.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.0009904/0.0009904, allocations: 92.2 kB / 20.19 MB, free: 4.359 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.0009566/0.0009566, allocations: 173 kB / 23.5 MB, free: 1.051 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.9156/0.9156, allocations: 177.1 MB / 203.8 MB, free: 5.609 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.653/0.653, allocations: 118.6 MB / 378.9 MB, free: 1.492 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.Interfaces.Tests.Test_p_out_clipping,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|basicControlValve.m_flow|fan.m_flow|fan.omega|fan.phi|flowResistance.m_flow|nozzle.m_flow|specificValveType.m_flow|tanValve.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping") translateModel(ThermofluidStream.Interfaces.Tests.Test_p_out_clipping,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|basicControlValve.m_flow|fan.m_flow|fan.omega|fan.phi|flowResistance.m_flow|nozzle.m_flow|specificValveType.m_flow|tanValve.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 483.6 MB, free: 8.297 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.623e-05/2.775e-05, allocations: 7.578 kB / 483.6 MB, free: 8.293 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Interfaces.Tests.Test_p_out_clipping): time 0.1405/0.1405, allocations: 157.4 MB / 0.626 GB, free: 3.109 MB / 0.5417 GB Notification: Performance of NFInst.instExpressions: time 0.01037/0.1509, allocations: 12.5 MB / 0.6382 GB, free: 6.582 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005518/0.1514, allocations: 55.5 kB / 0.6383 GB, free: 6.527 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.001053/0.1525, allocations: 0.6485 MB / 0.6389 GB, free: 5.875 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.001755/0.1542, allocations: 1.331 MB / 0.6402 GB, free: 4.535 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.001596/0.1558, allocations: 0.9804 MB / 0.6412 GB, free: 3.551 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.001577/0.1574, allocations: 2.203 MB / 0.6433 GB, free: 1.34 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002953/0.1577, allocations: 211.9 kB / 0.6435 GB, free: 1.121 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.2278/0.3855, allocations: 1.26 MB / 0.6447 GB, free: 15.18 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001657/0.3871, allocations: 1.014 MB / 0.6457 GB, free: 15.18 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0003974/0.3875, allocations: 129.3 kB / 0.6459 GB, free: 15.18 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002529/0.3901, allocations: 1.341 MB / 0.6472 GB, free: 15.18 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0003212/0.3904, allocations: 424.2 kB / 0.6476 GB, free: 15.18 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0008196/0.3912, allocations: 0.5341 MB / 0.6481 GB, free: 15.18 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.002809/0.394, allocations: 1.976 MB / 0.65 GB, free: 15.07 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.394, allocations: 1.766 kB / 0.65 GB, free: 15.07 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.393e-06/0.394, allocations: 0 / 0.65 GB, free: 15.07 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 4.169e-05/0.3941, allocations: 1.656 kB / 0.65 GB, free: 15.07 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 238 * Number of variables: 238 Notification: Performance of Generate backend data structure: time 0.002914/0.397, allocations: 2.202 MB / 0.6522 GB, free: 14.07 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.397, allocations: 9.844 kB / 0.6522 GB, free: 14.07 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004778/0.3975, allocations: 270.3 kB / 0.6525 GB, free: 13.98 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001087/0.3986, allocations: 0.9962 MB / 0.6534 GB, free: 13.63 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004306/0.399, allocations: 124.3 kB / 0.6535 GB, free: 29.56 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001209/0.3991, allocations: 107.2 kB / 0.6536 GB, free: 29.56 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001183/0.4003, allocations: 1.001 MB / 0.6546 GB, free: 29.37 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.864e-05/0.4003, allocations: 8.312 kB / 0.6546 GB, free: 29.36 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.13e-05/0.4004, allocations: 36.44 kB / 0.6547 GB, free: 29.36 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.22e-05/0.4004, allocations: 46.11 kB / 0.6547 GB, free: 29.36 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001469/0.4019, allocations: 1.019 MB / 0.6557 GB, free: 29.35 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004465/0.4064, allocations: 3.604 MB / 0.6592 GB, free: 28.58 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001022/0.4074, allocations: 0.7676 MB / 0.66 GB, free: 28.54 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005664/0.408, allocations: 444.1 kB / 0.6604 GB, free: 28.53 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002228/0.4102, allocations: 1.488 MB / 0.6618 GB, free: 28.13 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.819e-05/0.4102, allocations: 47.17 kB / 0.6619 GB, free: 28.09 MB / 0.573 GB Notification: Performance of pre-optimization done (n=120): time 2.604e-06/0.4102, allocations: 0.7812 kB / 0.6619 GB, free: 28.09 MB / 0.573 GB Notification: Performance of matching and sorting (n=122): time 0.005089/0.4153, allocations: 3.05 MB / 0.6649 GB, free: 27.57 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.448e-05/0.4154, allocations: 70.08 kB / 0.6649 GB, free: 27.5 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007462/0.4161, allocations: 0.854 MB / 0.6658 GB, free: 27.28 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 6.618e-05/0.4162, allocations: 49.23 kB / 0.6658 GB, free: 27.25 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002692/0.4164, allocations: 0.5524 MB / 0.6664 GB, free: 27.01 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001989/0.4166, allocations: 453.4 kB / 0.6668 GB, free: 26.72 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002694/0.4169, allocations: 254.3 kB / 0.667 GB, free: 26.69 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001398/0.417, allocations: 0.5242 MB / 0.6675 GB, free: 26.21 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004681/0.4175, allocations: 284.6 kB / 0.6678 GB, free: 26.21 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006252/0.4181, allocations: 0.6484 MB / 0.6685 GB, free: 25.83 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001187/0.4193, allocations: 0.8248 MB / 0.6693 GB, free: 25.7 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.4193, allocations: 3.062 kB / 0.6693 GB, free: 25.7 MB / 0.573 GB Notification: Performance of matching and sorting (n=143) (initialization): time 0.002003/0.4213, allocations: 1.293 MB / 0.6705 GB, free: 25.55 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.4214, allocations: 7.281 kB / 0.6705 GB, free: 25.55 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.513e-05/0.4214, allocations: 7.844 kB / 0.6705 GB, free: 25.54 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006492/0.422, allocations: 296.7 kB / 0.6708 GB, free: 25.52 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006382/0.4227, allocations: 240.5 kB / 0.6711 GB, free: 25.52 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003031/0.4257, allocations: 3.357 MB / 0.6743 GB, free: 23.5 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004794/0.4262, allocations: 37.8 kB / 0.6744 GB, free: 23.5 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.198e-05/0.4262, allocations: 58.53 kB / 0.6744 GB, free: 23.5 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(7,23,57.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003061/0.4266, allocations: 209.2 kB / 0.6746 GB, free: 23.34 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002323/0.4268, allocations: 189.2 kB / 0.6748 GB, free: 23.26 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002219/0.429, allocations: 2.26 MB / 0.677 GB, free: 22.94 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.429, allocations: 22.44 kB / 0.677 GB, free: 22.93 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.429, allocations: 5.625 kB / 0.677 GB, free: 22.93 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.429, allocations: 3.938 kB / 0.677 GB, free: 22.93 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002376/0.4314, allocations: 2.109 MB / 0.6791 GB, free: 22.5 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/0.4314, allocations: 4.625 kB / 0.6791 GB, free: 22.5 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000453/0.4319, allocations: 174.3 kB / 0.6793 GB, free: 22.5 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005606/0.4324, allocations: 348.7 kB / 0.6796 GB, free: 22.46 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.275e-05/0.4325, allocations: 49.55 kB / 0.6796 GB, free: 22.46 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002546/0.435, allocations: 3.38 MB / 0.6829 GB, free: 20.42 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.435, allocations: 6.219 kB / 0.683 GB, free: 20.42 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00199/0.437, allocations: 1.696 MB / 0.6846 GB, free: 20.03 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003129/0.4373, allocations: 263 kB / 0.6849 GB, free: 19.96 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001145/0.4375, allocations: 23.94 kB / 0.6849 GB, free: 19.96 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003529/0.4378, allocations: 25.19 kB / 0.6849 GB, free: 19.96 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001343/0.4379, allocations: 100.2 kB / 0.685 GB, free: 19.96 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.04e-05/0.438, allocations: 49.53 kB / 0.6851 GB, free: 19.96 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0004546/0.4385, allocations: 0.5804 MB / 0.6856 GB, free: 19.8 MB / 0.573 GB Notification: Performance of sort global known variables: time 4e-08/0.4385, allocations: 0 / 0.6856 GB, free: 19.8 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.001013/0.4395, allocations: 0.4964 MB / 0.6861 GB, free: 19.77 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (flowResistance.m_flow,fan.m_flow,fan.phi,fan.omega,basicControlValve.m_flow,specificValveType.m_flow,tanValve.m_flow,nozzle.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(7,23,57.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001145/0.4406, allocations: 0.7065 MB / 0.6868 GB, free: 19.56 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.001633/0.4423, allocations: 1.29 MB / 0.6881 GB, free: 19.28 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.4423, allocations: 0 / 0.6881 GB, free: 19.28 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0009368/0.4432, allocations: 0.8968 MB / 0.6889 GB, free: 19.02 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001247/0.4444, allocations: 0.5279 MB / 0.6894 GB, free: 18.94 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003239/0.4477, allocations: 2.503 MB / 0.6919 GB, free: 17.88 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002024/0.4479, allocations: 284.1 kB / 0.6922 GB, free: 17.79 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0006843/0.4486, allocations: 325.4 kB / 0.6925 GB, free: 17.7 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002592/0.4488, allocations: 140.7 kB / 0.6926 GB, free: 17.7 MB / 0.573 GB Notification: Performance of SimCode: time 1.243e-06/0.4488, allocations: 0 / 0.6926 GB, free: 17.7 MB / 0.573 GB Notification: Performance of Templates: time 0.02728/0.4761, allocations: 28.43 MB / 0.7204 GB, free: 7.855 MB / 0.573 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.pipe >> ../files/ThermofluidStream_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.sim & ./ThermofluidStream_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.Interfaces.Tests.Test_p_out_clipping_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Interfaces.Tests.Test_p_out_clipping_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.423268183832988]