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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001444/0.001444, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001818/0.001819, allocations: 194.7 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.408/1.408, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.608/2.608, allocations: 437 MB / 0.7103 GB, free: 5.109 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 63.91 kB / 0.8692 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6552/0.6566, allocations: 151.6 MB / 1.017 GB, free: 2.645 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002854/0.6595, allocations: 1.29 MB / 1.019 GB, free: 1.34 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.00103/0.6606, allocations: 0.6111 MB / 1.019 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.73e-05/0.6606, allocations: 0 / 1.019 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.445e-05/0.6606, allocations: 0 / 1.019 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.498e-05/0.6607, allocations: 11.92 kB / 1.019 GB, free: 0.7148 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006927/0.6614, allocations: 151.2 kB / 1.019 GB, free: 0.5703 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 8.15e-05/0.6615, allocations: 31.92 kB / 1.019 GB, free: 0.5391 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 6.029e-05/0.6615, allocations: 4 kB / 1.019 GB, free: 0.5352 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 3.764e-05/0.6616, allocations: 15.92 kB / 1.019 GB, free: 0.5195 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.103e-05/0.6617, allocations: 15.92 kB / 1.019 GB, free: 0.5039 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.47e-05/0.6617, allocations: 0 / 1.019 GB, free: 0.5039 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005922/0.6623, allocations: 343.3 kB / 1.02 GB, free: 172 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.802e-05/0.6623, allocations: 7.969 kB / 1.02 GB, free: 164 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.374e-05/0.6623, allocations: 15.94 kB / 1.02 GB, free: 148 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0003269/0.6627, allocations: 149.6 kB / 1.02 GB, free: 0 / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.6627, allocations: 112 / 1.02 GB, free: 16 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.777e-06/0.6627, allocations: 7.938 kB / 1.02 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.094e-06/0.6627, allocations: 4 kB / 1.02 GB, free: 15.98 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.0005019/0.6633, allocations: 371.3 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.6633, allocations: 12.03 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.175e-05/0.6633, allocations: 0.9375 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001469/0.6635, allocations: 164.4 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.645e-05/0.6635, allocations: 384 / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.083e-05/0.6636, allocations: 16.22 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001543/0.6637, allocations: 54.17 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.6638, allocations: 4.188 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.782e-05/0.6638, allocations: 7.938 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.6638, allocations: 0 / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.152e-05/0.6639, allocations: 19.98 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002216/0.6641, allocations: 161.7 kB / 1.021 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001182/0.6642, allocations: 58.5 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.902e-05/0.6643, allocations: 24.84 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.809e-05/0.6643, allocations: 8 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.74e-05/0.6643, allocations: 34.56 kB / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.082e-06/0.6643, allocations: 0 / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.001282/0.6656, allocations: 0.5876 MB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.052e-05/0.6657, allocations: 55.41 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.752e-05/0.6657, allocations: 97.84 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.578e-05/0.6658, allocations: 29.7 kB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.874e-05/0.6658, allocations: 80.14 kB / 1.022 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.53e-05/0.6659, allocations: 39.45 kB / 1.022 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.013e-05/0.6659, allocations: 25.72 kB / 1.022 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001079/0.666, allocations: 318.8 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.353e-05/0.6661, allocations: 20.12 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.59e-05/0.6661, allocations: 19.98 kB / 1.022 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.884e-05/0.6662, allocations: 56.8 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.52e-07/0.6662, allocations: 4.094 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001668/0.6664, allocations: 113.5 kB / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.6664, allocations: 4 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.6664, allocations: 0 / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.6664, allocations: 4 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.6665, allocations: 19.98 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.6665, allocations: 3.938 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.524e-05/0.6666, allocations: 4 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.079e-05/0.6666, allocations: 8 kB / 1.022 GB, free: 13.29 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.309e-05/0.6667, allocations: 113.8 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.123e-05/0.6667, allocations: 15.83 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000187/0.6669, allocations: 105.6 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.6669, allocations: 0 / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.6669, allocations: 0 / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.6669, allocations: 3.938 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003987/0.6673, allocations: 358.5 kB / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.6673, allocations: 0 / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001056/0.6675, allocations: 20 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.6675, allocations: 4 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.487e-05/0.6675, allocations: 3.984 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.6675, allocations: 3.938 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.6675, allocations: 0 / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000271/0.6678, allocations: 219.4 kB / 1.023 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.752e-05/0.6678, allocations: 77.11 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.996e-05/0.6678, allocations: 4.031 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001003/0.668, allocations: 7.984 kB / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.123e-05/0.668, allocations: 4 kB / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-06/0.668, allocations: 7.938 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.332e-05/0.668, allocations: 75.28 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.21e-07/0.668, allocations: 0 / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000278/0.6683, allocations: 39.92 kB / 1.023 GB, free: 12.14 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002687/0.6686, allocations: 139.3 kB / 1.023 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001698/0.6688, allocations: 67.91 kB / 1.023 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.6688, allocations: 0 / 1.023 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 4.888e-05/0.6688, allocations: 35.92 kB / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002272/0.6691, allocations: 8 kB / 1.023 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005426/0.6696, allocations: 296.8 kB / 1.024 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002267/0.6699, allocations: 0.6857 MB / 1.024 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.594e-05/0.6699, allocations: 11.98 kB / 1.024 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.041e-05/0.6699, allocations: 11.44 kB / 1.024 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of SimCode: time 2.11e-07/0.67, allocations: 3.938 kB / 1.024 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of Templates: time 0.003105/0.6731, allocations: 0.94 MB / 1.025 GB, free: 9.922 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