Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_10_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_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001219/0.001219, allocations: 91.45 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001857/0.001857, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.478/1.478, allocations: 223.3 MB / 240 MB, free: 5.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.882/2.882, allocations: 437.7 MB / 0.7117 GB, free: 7.051 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005356/0.0005362, allocations: 15.98 kB / 0.8722 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7777/0.7783, allocations: 153.8 MB / 1.022 GB, free: 100 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.001585/0.7799, allocations: 1.008 MB / 1.023 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001089/0.781, allocations: 0.565 MB / 1.024 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.056e-05/0.7811, allocations: 0 / 1.024 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.644e-05/0.7811, allocations: 0 / 1.024 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 4.173e-05/0.7811, allocations: 0 / 1.024 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006082/0.7818, allocations: 139.3 kB / 1.024 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 6.394e-05/0.7818, allocations: 23.92 kB / 1.024 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 5.209e-05/0.7819, allocations: 4 kB / 1.024 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 2.399e-05/0.7819, allocations: 4 kB / 1.024 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.491e-05/0.782, allocations: 19.91 kB / 1.024 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.684e-05/0.782, allocations: 4 kB / 1.024 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005134/0.7825, allocations: 335.3 kB / 1.024 GB, free: 14 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.367e-05/0.7826, allocations: 4 kB / 1.024 GB, free: 14 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.257e-05/0.7826, allocations: 33.69 kB / 1.024 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002055/0.7828, allocations: 101.8 kB / 1.025 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.7828, allocations: 0 / 1.025 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.004e-06/0.7828, allocations: 4 kB / 1.025 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.622e-06/0.7829, allocations: 0 / 1.025 GB, free: 13.86 MB / 0.7794 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.000446/0.7833, allocations: 363.1 kB / 1.025 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.7834, allocations: 12.56 kB / 1.025 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.467e-05/0.7834, allocations: 0 / 1.025 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001364/0.7835, allocations: 171.1 kB / 1.025 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.37e-05/0.7836, allocations: 3.938 kB / 1.025 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.603e-05/0.7836, allocations: 4 kB / 1.025 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001341/0.7837, allocations: 57.62 kB / 1.025 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.7838, allocations: 7.906 kB / 1.025 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.213e-05/0.7838, allocations: 0 / 1.025 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-06/0.7838, allocations: 0 / 1.025 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.084e-05/0.7839, allocations: 23.92 kB / 1.025 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002092/0.7841, allocations: 161.7 kB / 1.025 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001109/0.7842, allocations: 58.55 kB / 1.025 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.852e-05/0.7842, allocations: 24.86 kB / 1.025 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.114e-05/0.7843, allocations: 4 kB / 1.025 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.917e-05/0.7843, allocations: 38.52 kB / 1.025 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 3.347e-06/0.7843, allocations: 0 / 1.025 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.001211/0.7855, allocations: 0.5956 MB / 1.026 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.117e-05/0.7856, allocations: 55.34 kB / 1.026 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.061e-05/0.7857, allocations: 101.8 kB / 1.026 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.825e-05/0.7857, allocations: 25.7 kB / 1.026 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.104e-05/0.7857, allocations: 80.14 kB / 1.026 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.706e-05/0.7858, allocations: 39.45 kB / 1.026 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.681e-06/0.7858, allocations: 0 / 1.026 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001223/0.7859, allocations: 322.8 kB / 1.027 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.183e-05/0.786, allocations: 24.11 kB / 1.027 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.586e-05/0.786, allocations: 19.98 kB / 1.027 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.876e-05/0.7861, allocations: 24 kB / 1.027 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.81e-07/0.7861, allocations: 0 / 1.027 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001448/0.7862, allocations: 105.5 kB / 1.027 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.7863, allocations: 4 kB / 1.027 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.7863, allocations: 0 / 1.027 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.7863, allocations: 0 / 1.027 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001072/0.7864, allocations: 27.92 kB / 1.027 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.7864, allocations: 96 / 1.027 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.387e-05/0.7865, allocations: 7.938 kB / 1.027 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.425e-06/0.7865, allocations: 4 kB / 1.027 GB, free: 11.22 MB / 0.7794 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 () * Number of clocked 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 8.823e-05/0.7866, allocations: 109.8 kB / 1.027 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.458e-05/0.7866, allocations: 7.953 kB / 1.027 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002/0.7868, allocations: 109.5 kB / 1.027 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.7868, allocations: 4 kB / 1.027 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.585e-06/0.7868, allocations: 4 kB / 1.027 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.7868, allocations: 3.938 kB / 1.027 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004114/0.7872, allocations: 350.5 kB / 1.027 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.7873, allocations: 0 / 1.027 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001058/0.7874, allocations: 27.92 kB / 1.027 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.7874, allocations: 0 / 1.027 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.013e-05/0.7874, allocations: 4 kB / 1.027 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.7874, allocations: 4 kB / 1.027 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.7874, allocations: 0 / 1.027 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002515/0.7877, allocations: 211.5 kB / 1.028 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.508e-05/0.7877, allocations: 88.95 kB / 1.028 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.575e-05/0.7878, allocations: 4.031 kB / 1.028 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.298e-05/0.7878, allocations: 4 kB / 1.028 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.286e-05/0.7879, allocations: 7.984 kB / 1.028 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.536e-06/0.7879, allocations: 4 kB / 1.028 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.463e-05/0.7879, allocations: 75.28 kB / 1.028 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.51e-07/0.7879, allocations: 3.938 kB / 1.028 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002695/0.7882, allocations: 35.94 kB / 1.028 GB, free: 10.08 MB / 0.7794 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 () * Number of clocked 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.0002244/0.7884, allocations: 147.3 kB / 1.028 GB, free: 9.922 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001604/0.7886, allocations: 55.92 kB / 1.028 GB, free: 9.867 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.7886, allocations: 4 kB / 1.028 GB, free: 9.863 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 5.343e-05/0.7887, allocations: 35.92 kB / 1.028 GB, free: 9.828 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002233/0.7889, allocations: 5.625 kB / 1.028 GB, free: 9.824 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000564/0.7895, allocations: 340.6 kB / 1.028 GB, free: 9.461 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002816/0.7898, allocations: 0.6926 MB / 1.029 GB, free: 8.742 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.729e-05/0.7898, allocations: 11.94 kB / 1.029 GB, free: 8.73 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.543e-05/0.7899, allocations: 11.44 kB / 1.029 GB, free: 8.719 MB / 0.7794 GB Notification: Performance of SimCode: time 5.11e-07/0.7899, allocations: 4 kB / 1.029 GB, free: 8.715 MB / 0.7794 GB Notification: Performance of Templates: time 0.003343/0.7932, allocations: 0.8896 MB / 1.03 GB, free: 7.859 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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