Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.008549/0.008549, allocations: 100.9 kB / 15.73 MB, free: 6.039 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.002049/0.002049, allocations: 191.2 kB / 16.67 MB, free: 5.969 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.487/1.487, allocations: 222.9 MB / 240.4 MB, free: 4.242 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.807/2.807, allocations: 461.9 MB / 0.7348 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 67.84 kB / 1.054 GB, free: 7.188 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3425/0.3438, allocations: 157.4 MB / 1.208 GB, free: 9.688 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002493/0.3463, allocations: 1.292 MB / 1.209 GB, free: 8.383 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00105/0.3474, allocations: 0.615 MB / 1.21 GB, free: 7.766 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.665e-05/0.3474, allocations: 0 / 1.21 GB, free: 7.766 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.963e-05/0.3474, allocations: 0 / 1.21 GB, free: 7.766 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 3.957e-05/0.3475, allocations: 3.938 kB / 1.21 GB, free: 7.762 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006523/0.3482, allocations: 157.3 kB / 1.21 GB, free: 7.609 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 6.645e-05/0.3482, allocations: 27.86 kB / 1.21 GB, free: 7.582 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.033e-05/0.3483, allocations: 8 kB / 1.21 GB, free: 7.574 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 3.166e-05/0.3483, allocations: 11.98 kB / 1.21 GB, free: 7.562 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.588e-05/0.3484, allocations: 11.92 kB / 1.21 GB, free: 7.551 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.285e-05/0.3484, allocations: 4 kB / 1.21 GB, free: 7.547 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000487/0.3489, allocations: 347.3 kB / 1.21 GB, free: 7.207 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.319e-05/0.3489, allocations: 4 kB / 1.21 GB, free: 7.203 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.612e-05/0.349, allocations: 15.92 kB / 1.21 GB, free: 7.188 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002696/0.3492, allocations: 155.6 kB / 1.21 GB, free: 7.035 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3492, allocations: 0 / 1.21 GB, free: 7.035 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.492e-06/0.3492, allocations: 0 / 1.21 GB, free: 7.035 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.719e-06/0.3493, allocations: 4 kB / 1.21 GB, free: 7.031 MB / 0.9669 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.0004191/0.3497, allocations: 371.3 kB / 1.211 GB, free: 6.617 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.3497, allocations: 8.625 kB / 1.211 GB, free: 6.609 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.033e-05/0.3498, allocations: 4.938 kB / 1.211 GB, free: 6.605 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001014/0.3499, allocations: 164.3 kB / 1.211 GB, free: 6.406 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.088e-05/0.3499, allocations: 4.375 kB / 1.211 GB, free: 6.402 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.06e-05/0.3499, allocations: 4.375 kB / 1.211 GB, free: 6.398 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001112/0.35, allocations: 50.19 kB / 1.211 GB, free: 6.344 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.3501, allocations: 4.188 kB / 1.211 GB, free: 6.34 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.358e-05/0.3501, allocations: 15.92 kB / 1.211 GB, free: 6.324 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.3501, allocations: 0 / 1.211 GB, free: 6.324 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.192e-05/0.3502, allocations: 16 kB / 1.211 GB, free: 6.309 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001861/0.3504, allocations: 173.5 kB / 1.211 GB, free: 6.09 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001066/0.3505, allocations: 58.5 kB / 1.211 GB, free: 6.023 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.379e-05/0.3505, allocations: 28.84 kB / 1.211 GB, free: 5.992 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.049e-05/0.3506, allocations: 0 / 1.211 GB, free: 5.992 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.496e-05/0.3506, allocations: 38.8 kB / 1.211 GB, free: 5.945 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 8.52e-07/0.3506, allocations: 0 / 1.211 GB, free: 5.945 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.001111/0.3517, allocations: 0.5876 MB / 1.212 GB, free: 5.266 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001243/0.3518, allocations: 59.34 kB / 1.212 GB, free: 5.195 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.976e-05/0.3519, allocations: 97.86 kB / 1.212 GB, free: 5.09 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.415e-05/0.3519, allocations: 25.7 kB / 1.212 GB, free: 5.059 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.059e-05/0.352, allocations: 84 kB / 1.212 GB, free: 4.973 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.209e-05/0.352, allocations: 43.44 kB / 1.212 GB, free: 4.93 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.312e-05/0.3521, allocations: 29.7 kB / 1.212 GB, free: 4.895 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001031/0.3522, allocations: 318.8 kB / 1.212 GB, free: 4.574 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.295e-05/0.3522, allocations: 19.98 kB / 1.212 GB, free: 4.555 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.853e-05/0.3523, allocations: 28.11 kB / 1.212 GB, free: 4.527 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.765e-05/0.3524, allocations: 58.55 kB / 1.213 GB, free: 4.469 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.71e-07/0.3524, allocations: 0 / 1.213 GB, free: 4.469 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001433/0.3525, allocations: 97.53 kB / 1.213 GB, free: 4.367 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.3525, allocations: 7.984 kB / 1.213 GB, free: 4.359 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.3526, allocations: 0 / 1.213 GB, free: 4.359 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.3526, allocations: 0 / 1.213 GB, free: 4.359 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001008/0.3527, allocations: 20 kB / 1.213 GB, free: 4.34 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.3527, allocations: 0 / 1.213 GB, free: 4.34 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.623e-05/0.3527, allocations: 7.938 kB / 1.213 GB, free: 4.332 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.436e-06/0.3527, allocations: 8 kB / 1.213 GB, free: 4.324 MB / 0.9669 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.203e-05/0.3528, allocations: 117.8 kB / 1.213 GB, free: 4.199 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.561e-05/0.3528, allocations: 3.938 kB / 1.213 GB, free: 4.195 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001957/0.353, allocations: 109.6 kB / 1.213 GB, free: 4.078 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.3531, allocations: 0 / 1.213 GB, free: 4.078 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.3531, allocations: 0 / 1.213 GB, free: 4.078 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.3531, allocations: 3.984 kB / 1.213 GB, free: 4.074 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003756/0.3535, allocations: 354.4 kB / 1.213 GB, free: 3.672 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.3535, allocations: 8 kB / 1.213 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001053/0.3536, allocations: 19.98 kB / 1.213 GB, free: 3.645 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.3536, allocations: 0 / 1.213 GB, free: 3.645 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.448e-06/0.3536, allocations: 8 kB / 1.213 GB, free: 3.637 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.3536, allocations: 0 / 1.213 GB, free: 3.637 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3536, allocations: 3.938 kB / 1.213 GB, free: 3.633 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000242/0.3539, allocations: 219.4 kB / 1.213 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.075e-05/0.3539, allocations: 81.02 kB / 1.214 GB, free: 3.305 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.443e-05/0.3539, allocations: 8.062 kB / 1.214 GB, free: 3.297 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.538e-05/0.354, allocations: 4.031 kB / 1.214 GB, free: 3.293 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.988e-05/0.354, allocations: 7.984 kB / 1.214 GB, free: 3.285 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.055e-06/0.3541, allocations: 11.88 kB / 1.214 GB, free: 3.273 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.075e-05/0.3541, allocations: 79.28 kB / 1.214 GB, free: 3.195 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3541, allocations: 0 / 1.214 GB, free: 3.195 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003039/0.3544, allocations: 35.98 kB / 1.214 GB, free: 3.16 MB / 0.9669 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.0002065/0.3546, allocations: 135.2 kB / 1.214 GB, free: 3.02 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001451/0.3548, allocations: 69.97 kB / 1.214 GB, free: 2.953 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3548, allocations: 0 / 1.214 GB, free: 2.953 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 4.637e-05/0.3548, allocations: 31.94 kB / 1.214 GB, free: 2.922 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002124/0.3551, allocations: 8.203 kB / 1.214 GB, free: 2.914 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007187/0.3558, allocations: 292.8 kB / 1.214 GB, free: 2.602 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003937/0.3562, allocations: 0.6885 MB / 1.215 GB, free: 1.887 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 5.749e-05/0.3563, allocations: 4 kB / 1.215 GB, free: 1.883 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.267e-05/0.3563, allocations: 15.44 kB / 1.215 GB, free: 1.867 MB / 0.9669 GB Notification: Performance of SimCode: time 2.51e-07/0.3563, allocations: 3.938 kB / 1.215 GB, free: 1.863 MB / 0.9669 GB Notification: Performance of Templates: time 0.004221/0.3605, allocations: 0.9652 MB / 1.216 GB, free: 0.9336 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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