Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001155/0.001155, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001205/0.001205, allocations: 190.7 kB / 16.25 MB, free: 6.621 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.42/1.42, allocations: 222.9 MB / 239.9 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.373/2.373, allocations: 390.2 MB / 0.6643 GB, free: 0.5703 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 75.88 kB / 0.812 GB, free: 14.76 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6591/0.6604, allocations: 140.4 MB / 0.9491 GB, free: 9.066 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002444/0.6629, allocations: 1.343 MB / 0.9504 GB, free: 8 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009483/0.6639, allocations: 0.6073 MB / 0.951 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.489e-05/0.6639, allocations: 0 / 0.951 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.097e-05/0.6639, allocations: 0 / 0.951 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.636e-05/0.664, allocations: 5.312 kB / 0.951 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005183/0.6645, allocations: 133 kB / 0.9511 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.962e-05/0.6646, allocations: 25.67 kB / 0.9512 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.265e-05/0.6646, allocations: 6.75 kB / 0.9512 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.469e-05/0.6647, allocations: 17.42 kB / 0.9512 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.869e-05/0.6648, allocations: 12.09 kB / 0.9512 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.51e-05/0.6648, allocations: 6.688 kB / 0.9512 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004672/0.6653, allocations: 341.8 kB / 0.9515 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.529e-05/0.6653, allocations: 9.328 kB / 0.9515 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.848e-05/0.6653, allocations: 14.16 kB / 0.9516 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002481/0.6656, allocations: 152 kB / 0.9517 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.6656, allocations: 0 / 0.9517 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.264e-06/0.6656, allocations: 1.5 kB / 0.9517 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.911e-06/0.6656, allocations: 0 / 0.9517 GB, free: 7.094 MB / 0.7169 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.0003389/0.6659, allocations: 369.6 kB / 0.9521 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.666, allocations: 10.03 kB / 0.9521 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.936e-05/0.666, allocations: 2.969 kB / 0.9521 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.395e-05/0.6661, allocations: 173.4 kB / 0.9522 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.6661, allocations: 6.531 kB / 0.9522 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.356e-05/0.6662, allocations: 3.469 kB / 0.9522 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001224/0.6663, allocations: 60.69 kB / 0.9523 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.6663, allocations: 5.125 kB / 0.9523 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.239e-05/0.6663, allocations: 9.312 kB / 0.9523 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.6663, allocations: 0 / 0.9523 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.288e-05/0.6664, allocations: 23.48 kB / 0.9523 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000141/0.6665, allocations: 162.2 kB / 0.9525 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.709e-05/0.6666, allocations: 58.7 kB / 0.9525 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.065e-05/0.6667, allocations: 29.92 kB / 0.9526 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.918e-05/0.6667, allocations: 1.312 kB / 0.9526 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.202e-05/0.6667, allocations: 43.77 kB / 0.9526 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.012e-06/0.6667, allocations: 3.938 kB / 0.9526 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0009893/0.6677, allocations: 0.5794 MB / 0.9532 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.325e-05/0.6678, allocations: 57.42 kB / 0.9532 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.553e-05/0.6678, allocations: 95.95 kB / 0.9533 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.058e-05/0.6678, allocations: 30.83 kB / 0.9534 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.552e-05/0.6679, allocations: 81.05 kB / 0.9534 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.241e-05/0.6679, allocations: 36.67 kB / 0.9535 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.84e-05/0.6679, allocations: 29.88 kB / 0.9535 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.406e-05/0.668, allocations: 319.8 kB / 0.9538 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.038e-05/0.668, allocations: 20.73 kB / 0.9538 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.78e-05/0.6681, allocations: 25.5 kB / 0.9539 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001005/0.6682, allocations: 57.53 kB / 0.9539 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.21e-07/0.6682, allocations: 0 / 0.9539 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001282/0.6683, allocations: 103.8 kB / 0.954 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.6683, allocations: 5.75 kB / 0.954 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.6684, allocations: 0 / 0.954 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.6684, allocations: 1.125 kB / 0.954 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.6685, allocations: 22.02 kB / 0.954 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.6685, allocations: 0 / 0.954 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.499e-05/0.6685, allocations: 5.375 kB / 0.954 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.355e-06/0.6685, allocations: 6.656 kB / 0.954 GB, free: 4.762 MB / 0.7169 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 6.248e-05/0.6686, allocations: 116.8 kB / 0.9542 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.585e-05/0.6686, allocations: 6.531 kB / 0.9542 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001851/0.6688, allocations: 115 kB / 0.9543 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.6688, allocations: 1.406 kB / 0.9543 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.6688, allocations: 1.312 kB / 0.9543 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.6689, allocations: 0 / 0.9543 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003325/0.6692, allocations: 364.3 kB / 0.9546 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.6692, allocations: 1.375 kB / 0.9546 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001048/0.6693, allocations: 20.83 kB / 0.9546 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.524e-06/0.6693, allocations: 0.6562 kB / 0.9546 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.04e-05/0.6693, allocations: 1.25 kB / 0.9546 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.6693, allocations: 1 kB / 0.9546 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.6694, allocations: 0 / 0.9546 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002128/0.6696, allocations: 217.5 kB / 0.9549 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.499e-05/0.6696, allocations: 95.55 kB / 0.9549 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.74e-05/0.6696, allocations: 5.25 kB / 0.955 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.729e-05/0.6697, allocations: 1.406 kB / 0.955 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.952e-05/0.6697, allocations: 8.203 kB / 0.955 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.786e-06/0.6698, allocations: 6.531 kB / 0.955 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.011e-05/0.6698, allocations: 76.62 kB / 0.955 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6698, allocations: 0 / 0.955 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002704/0.6701, allocations: 37.59 kB / 0.9551 GB, free: 3.801 MB / 0.7169 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.0002011/0.6703, allocations: 136.5 kB / 0.9552 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001457/0.6704, allocations: 72.33 kB / 0.9553 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.6704, allocations: 0 / 0.9553 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.762e-05/0.6705, allocations: 37.64 kB / 0.9553 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002126/0.6707, allocations: 2.438 kB / 0.9553 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004577/0.6712, allocations: 301.5 kB / 0.9556 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001048/0.6713, allocations: 0.6927 MB / 0.9563 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.596e-05/0.6713, allocations: 10.2 kB / 0.9563 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.341e-05/0.6714, allocations: 12.22 kB / 0.9563 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of SimCode: time 2.6e-07/0.6714, allocations: 1.156 kB / 0.9563 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of Templates: time 0.003115/0.6745, allocations: 0.9501 MB / 0.9572 GB, free: 2.207 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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