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.384/1.384, allocations: 249.5 MB / 257 MB, free: 7.027 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.0009474/0.0009474, allocations: 179 kB / 316.3 MB, free: 3.23 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.258/1.258, allocations: 205.3 MB / 0.5671 GB, free: 15.84 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.0008664/0.0008667, allocations: 84.42 kB / 0.6714 GB, free: 4.965 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.493e-05/1.495e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1887/0.1887, allocations: 106.3 MB / 0.8852 GB, free: 12.24 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6646/0.8534, allocations: 132.8 MB / 1.015 GB, free: 4.984 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002307/0.8537, allocations: 83.5 kB / 1.015 GB, free: 4.934 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01329/0.867, allocations: 4.48 MB / 1.019 GB, free: 1.242 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.443e-06/0.867, allocations: 0 / 1.019 GB, free: 1.242 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.422e-06/0.8671, allocations: 4 kB / 1.019 GB, free: 1.238 MB / 0.6355 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.000343/0.8674, allocations: 354.1 kB / 1.02 GB, free: 0.8516 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.8675, allocations: 8.031 kB / 1.02 GB, free: 0.8438 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.07e-05/0.8675, allocations: 0 / 1.02 GB, free: 0.8438 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001179/0.8676, allocations: 171.9 kB / 1.02 GB, free: 0.6367 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.32e-05/0.8676, allocations: 0 / 1.02 GB, free: 0.6367 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.237e-05/0.8677, allocations: 4 kB / 1.02 GB, free: 0.6328 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.062e-05/0.8678, allocations: 23.42 kB / 1.02 GB, free: 0.6133 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.211e-05/0.8679, allocations: 42.47 kB / 1.02 GB, free: 0.5703 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.8679, allocations: 3.906 kB / 1.02 GB, free: 0.5664 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.8679, allocations: 3.984 kB / 1.02 GB, free: 0.5625 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.8679, allocations: 0 / 1.02 GB, free: 0.5625 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00018/0.8681, allocations: 145.6 kB / 1.02 GB, free: 400 kB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 9.356e-05/0.8682, allocations: 49.58 kB / 1.02 GB, free: 352 kB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.908e-05/0.8682, allocations: 28.11 kB / 1.02 GB, free: 328 kB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.685e-05/0.8683, allocations: 7.984 kB / 1.02 GB, free: 320 kB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.699e-05/0.8683, allocations: 38.5 kB / 1.02 GB, free: 272 kB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 9.72e-07/0.8683, allocations: 0 / 1.02 GB, free: 272 kB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0009156/0.8692, allocations: 0.5066 MB / 1.021 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.694e-05/0.8693, allocations: 55.41 kB / 1.021 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.626e-05/0.8693, allocations: 92.69 kB / 1.021 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.529e-05/0.8694, allocations: 25.7 kB / 1.021 GB, free: 15.51 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 3.501e-05/0.8694, allocations: 84 kB / 1.021 GB, free: 15.42 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 4.069e-05/0.8694, allocations: 43.02 kB / 1.021 GB, free: 15.38 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.198e-06/0.8695, allocations: 0 / 1.021 GB, free: 15.38 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001093/0.8696, allocations: 322.4 kB / 1.021 GB, free: 15.06 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.551e-05/0.8696, allocations: 23.12 kB / 1.021 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.952e-05/0.8696, allocations: 15.56 kB / 1.021 GB, free: 15.04 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.015e-05/0.8697, allocations: 23.3 kB / 1.021 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.72e-07/0.8697, allocations: 4 kB / 1.021 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001236/0.8698, allocations: 86.78 kB / 1.021 GB, free: 14.94 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.415e-05/0.8699, allocations: 4 kB / 1.021 GB, free: 14.93 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.8699, allocations: 4.156 kB / 1.021 GB, free: 14.93 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.8699, allocations: 0 / 1.021 GB, free: 14.93 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/0.87, allocations: 19.98 kB / 1.021 GB, free: 14.91 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.87, allocations: 3.984 kB / 1.021 GB, free: 14.91 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.865e-05/0.8701, allocations: 4 kB / 1.021 GB, free: 14.9 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.147e-06/0.8701, allocations: 15.5 kB / 1.021 GB, free: 14.89 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.229e-05/0.8702, allocations: 112.9 kB / 1.022 GB, free: 14.77 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.071e-05/0.8702, allocations: 0 / 1.022 GB, free: 14.77 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001814/0.8704, allocations: 96.41 kB / 1.022 GB, free: 14.68 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.8704, allocations: 0 / 1.022 GB, free: 14.68 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.8704, allocations: 96 / 1.022 GB, free: 14.68 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.8704, allocations: 7.938 kB / 1.022 GB, free: 14.67 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000348/0.8707, allocations: 316.8 kB / 1.022 GB, free: 14.34 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.8708, allocations: 0 / 1.022 GB, free: 14.34 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001076/0.8709, allocations: 23.98 kB / 1.022 GB, free: 14.32 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.8709, allocations: 4 kB / 1.022 GB, free: 14.31 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.035e-06/0.8709, allocations: 0 / 1.022 GB, free: 14.31 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.8709, allocations: 0 / 1.022 GB, free: 14.31 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.8709, allocations: 0 / 1.022 GB, free: 14.31 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002191/0.8711, allocations: 208.7 kB / 1.022 GB, free: 14.11 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.113e-05/0.8712, allocations: 81.02 kB / 1.022 GB, free: 14.02 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.594e-05/0.8712, allocations: 0 / 1.022 GB, free: 14.02 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.816e-05/0.8713, allocations: 12.08 kB / 1.022 GB, free: 14 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.22e-05/0.8713, allocations: 4 kB / 1.022 GB, free: 14 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.514e-06/0.8713, allocations: 3.438 kB / 1.022 GB, free: 14 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 3.293e-05/0.8714, allocations: 83.27 kB / 1.022 GB, free: 13.92 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8714, allocations: 0 / 1.022 GB, free: 13.92 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002583/0.8716, allocations: 35.94 kB / 1.022 GB, free: 13.88 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.0002105/0.8719, allocations: 143.1 kB / 1.023 GB, free: 13.73 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001169/0.872, allocations: 54.12 kB / 1.023 GB, free: 13.7 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.872, allocations: 4.094 kB / 1.023 GB, free: 13.69 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 4.297e-05/0.872, allocations: 33.08 kB / 1.023 GB, free: 13.67 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001487/0.8722, allocations: 3.953 kB / 1.023 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004117/0.8726, allocations: 223.1 kB / 1.023 GB, free: 13.43 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002432/0.8729, allocations: 0.6885 MB / 1.024 GB, free: 12.71 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 4.784e-05/0.8729, allocations: 11.95 kB / 1.024 GB, free: 12.7 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.472e-05/0.873, allocations: 15.42 kB / 1.024 GB, free: 12.69 MB / 0.6511 GB Notification: Performance of SimCode: time 2.61e-07/0.873, allocations: 3.938 kB / 1.024 GB, free: 12.69 MB / 0.6511 GB Notification: Performance of Templates: time 0.002836/0.8758, allocations: 0.8456 MB / 1.024 GB, free: 11.88 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