Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp|m_flow_turbulent|der.m_flow.|der.m_flow_comp.|err_m_flow|err_der_m_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp|m_flow_turbulent|der.m_flow.|der.m_flow_comp.|err_m_flow|err_der_m_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.414/1.414, allocations: 249.3 MB / 261.9 MB, free: 5.875 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009752/0.0009752, allocations: 174.6 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.273/1.273, allocations: 205.2 MB / 0.572 GB, free: 10.65 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008184/0.0008184, allocations: 97.34 kB / 0.6764 GB, free: 15.63 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 2.658e-05/2.661e-05, allocations: 8 kB / 0.788 GB, free: 97.07 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1654/0.1654, allocations: 106.3 MB / 0.8918 GB, free: 6.648 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5408/0.7063, allocations: 132.5 MB / 1.021 GB, free: 2.141 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002277/0.7065, allocations: 76.02 kB / 1.021 GB, free: 2.098 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.0134/0.72, allocations: 4.505 MB / 1.026 GB, free: 14.31 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.092e-06/0.72, allocations: 0 / 1.026 GB, free: 14.31 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 6.362e-06/0.72, allocations: 0 / 1.026 GB, free: 14.31 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0002924/0.7203, allocations: 349.3 kB / 1.026 GB, free: 13.93 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.7204, allocations: 15.97 kB / 1.026 GB, free: 13.91 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.354e-05/0.7204, allocations: 4 kB / 1.026 GB, free: 13.91 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.473e-05/0.7205, allocations: 167 kB / 1.026 GB, free: 13.71 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.327e-05/0.7205, allocations: 3.188 kB / 1.026 GB, free: 13.71 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.956e-05/0.7205, allocations: 7.938 kB / 1.026 GB, free: 13.7 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001117/0.7207, allocations: 48.31 kB / 1.026 GB, free: 13.65 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.7207, allocations: 3.906 kB / 1.026 GB, free: 13.65 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.7207, allocations: 3.984 kB / 1.026 GB, free: 13.64 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.7207, allocations: 4 kB / 1.026 GB, free: 13.64 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.258e-05/0.7208, allocations: 29.47 kB / 1.026 GB, free: 13.62 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001574/0.7209, allocations: 164 kB / 1.026 GB, free: 13.41 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 9.393e-05/0.721, allocations: 59.31 kB / 1.027 GB, free: 13.36 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.048e-05/0.7211, allocations: 28.27 kB / 1.027 GB, free: 13.34 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.809e-05/0.7211, allocations: 0 / 1.027 GB, free: 13.34 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.292e-05/0.7211, allocations: 37.44 kB / 1.027 GB, free: 13.29 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=7): time 8.91e-07/0.7212, allocations: 4 kB / 1.027 GB, free: 13.29 MB / 0.6511 GB Notification: Performance of matching and sorting (n=11): time 0.0008901/0.722, allocations: 0.5518 MB / 1.027 GB, free: 12.69 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.571e-05/0.7221, allocations: 59.34 kB / 1.027 GB, free: 12.62 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.726e-05/0.7222, allocations: 88.94 kB / 1.027 GB, free: 12.53 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.441e-05/0.7222, allocations: 25.7 kB / 1.027 GB, free: 12.5 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 2.927e-05/0.7222, allocations: 92.12 kB / 1.027 GB, free: 12.4 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 3.602e-05/0.7223, allocations: 42.2 kB / 1.027 GB, free: 12.37 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.869e-06/0.7223, allocations: 3.688 kB / 1.027 GB, free: 12.37 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 9.515e-05/0.7224, allocations: 318.8 kB / 1.028 GB, free: 12.05 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.695e-05/0.7224, allocations: 23.06 kB / 1.028 GB, free: 12.03 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.371e-05/0.7225, allocations: 17.75 kB / 1.028 GB, free: 12.02 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.72e-05/0.7225, allocations: 28.42 kB / 1.028 GB, free: 12 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.12e-07/0.7225, allocations: 0 / 1.028 GB, free: 12 MB / 0.6511 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001337/0.7227, allocations: 96.03 kB / 1.028 GB, free: 11.91 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/0.7227, allocations: 8 kB / 1.028 GB, free: 11.91 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.7227, allocations: 4 kB / 1.028 GB, free: 11.9 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.137e-06/0.7227, allocations: 3.938 kB / 1.028 GB, free: 11.9 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.855e-05/0.7228, allocations: 19.98 kB / 1.028 GB, free: 11.88 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.7228, allocations: 0 / 1.028 GB, free: 11.88 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.142e-05/0.7229, allocations: 7.438 kB / 1.028 GB, free: 11.88 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.323e-06/0.7229, allocations: 0 / 1.028 GB, free: 11.88 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.321e-05/0.723, allocations: 116.6 kB / 1.028 GB, free: 11.76 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.269e-05/0.723, allocations: 4 kB / 1.028 GB, free: 11.75 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001856/0.7232, allocations: 103.4 kB / 1.028 GB, free: 11.66 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.7232, allocations: 4 kB / 1.028 GB, free: 11.66 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.7232, allocations: 0 / 1.028 GB, free: 11.66 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.7232, allocations: 0 / 1.028 GB, free: 11.66 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003778/0.7236, allocations: 361.2 kB / 1.028 GB, free: 11.28 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.7236, allocations: 0 / 1.028 GB, free: 11.28 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001133/0.7237, allocations: 16 kB / 1.028 GB, free: 11.26 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.7237, allocations: 0 / 1.028 GB, free: 11.26 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.115e-05/0.7238, allocations: 7.984 kB / 1.028 GB, free: 11.25 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.7238, allocations: 4 kB / 1.028 GB, free: 11.25 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.7238, allocations: 0 / 1.028 GB, free: 11.25 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002206/0.724, allocations: 224 kB / 1.029 GB, free: 11.04 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 3.107e-05/0.724, allocations: 81.02 kB / 1.029 GB, free: 10.95 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.65e-05/0.7241, allocations: 7.344 kB / 1.029 GB, free: 10.94 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.689e-05/0.7241, allocations: 0 / 1.029 GB, free: 10.94 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.799e-05/0.7242, allocations: 7.984 kB / 1.029 GB, free: 10.93 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.826e-06/0.7242, allocations: 7.25 kB / 1.029 GB, free: 10.93 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 3.514e-05/0.7242, allocations: 79.28 kB / 1.029 GB, free: 10.85 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7242, allocations: 0 / 1.029 GB, free: 10.85 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002531/0.7245, allocations: 43.88 kB / 1.029 GB, free: 10.81 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_m_flow_comp) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001994/0.7247, allocations: 146.8 kB / 1.029 GB, free: 10.66 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001314/0.7248, allocations: 58.62 kB / 1.029 GB, free: 10.61 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.7248, allocations: 0 / 1.029 GB, free: 10.61 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 4.577e-05/0.7249, allocations: 38.8 kB / 1.029 GB, free: 10.58 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001194/0.725, allocations: 14.28 kB / 1.029 GB, free: 10.57 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003998/0.7254, allocations: 227.6 kB / 1.029 GB, free: 10.34 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002639/0.7257, allocations: 0.6888 MB / 1.03 GB, free: 9.629 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 5.208e-05/0.7258, allocations: 16.23 kB / 1.03 GB, free: 9.613 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.626e-05/0.7258, allocations: 15.44 kB / 1.03 GB, free: 9.602 MB / 0.6511 GB Notification: Performance of SimCode: time 2.4e-07/0.7258, allocations: 0 / 1.03 GB, free: 9.602 MB / 0.6511 GB Notification: Performance of Templates: time 0.00281/0.7286, allocations: 0.8595 MB / 1.031 GB, free: 8.773 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,m_flow,m_flow_comp,m_flow_turbulent,der(m_flow),der(m_flow_comp),err_m_flow,err_der_m_flow Variables in the result:der(m_flow),der(m_flow_comp),err_der_m_flow,err_m_flow,k,m_flow,m_flow_comp,m_flow_turbulent,time