Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.00901/0.00901, allocations: 99.48 kB / 15.73 MB, free: 6.012 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.001866/0.001866, allocations: 193.2 kB / 16.67 MB, free: 5.949 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.362/1.362, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.798/2.798, allocations: 469.8 MB / 0.7425 GB, free: 7.371 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 67.89 kB / 1.065 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3457/0.3471, allocations: 159.1 MB / 1.221 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002615/0.3497, allocations: 1.288 MB / 1.222 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001132/0.3508, allocations: 0.6167 MB / 1.222 GB, free: 11.93 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.075e-05/0.3509, allocations: 0 / 1.222 GB, free: 11.93 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.572e-05/0.3509, allocations: 7.922 kB / 1.222 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.299e-05/0.3509, allocations: 0 / 1.222 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000722/0.3516, allocations: 155.2 kB / 1.223 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 9.461e-05/0.3517, allocations: 35.8 kB / 1.223 GB, free: 11.74 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.692e-05/0.3518, allocations: 0 / 1.223 GB, free: 11.74 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 3.932e-05/0.3518, allocations: 15.97 kB / 1.223 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.241e-05/0.3519, allocations: 15.92 kB / 1.223 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.693e-05/0.3519, allocations: 4 kB / 1.223 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005402/0.3525, allocations: 343.3 kB / 1.223 GB, free: 11.37 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.607e-05/0.3525, allocations: 4 kB / 1.223 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.024e-05/0.3525, allocations: 11.94 kB / 1.223 GB, free: 11.35 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002984/0.3528, allocations: 155.5 kB / 1.223 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.3528, allocations: 0 / 1.223 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.193e-06/0.3528, allocations: 0 / 1.223 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.101e-06/0.3528, allocations: 0 / 1.223 GB, free: 11.2 MB / 0.9825 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.0004644/0.3533, allocations: 375 kB / 1.224 GB, free: 10.78 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.3533, allocations: 11.97 kB / 1.224 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.951e-05/0.3534, allocations: 8.891 kB / 1.224 GB, free: 10.76 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001159/0.3535, allocations: 164.3 kB / 1.224 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.52e-05/0.3535, allocations: 8.359 kB / 1.224 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.38e-05/0.3535, allocations: 8.375 kB / 1.224 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000124/0.3536, allocations: 50.23 kB / 1.224 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.3536, allocations: 192 / 1.224 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/0.3537, allocations: 7.938 kB / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.3537, allocations: 4 kB / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.428e-05/0.3537, allocations: 15.98 kB / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001885/0.3539, allocations: 165.6 kB / 1.224 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000112/0.354, allocations: 62.55 kB / 1.224 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.365e-05/0.3541, allocations: 24.86 kB / 1.224 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.452e-05/0.3541, allocations: 4 kB / 1.224 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/0.3541, allocations: 34.56 kB / 1.224 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.072e-06/0.3541, allocations: 0 / 1.224 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.001166/0.3553, allocations: 0.5956 MB / 1.225 GB, free: 9.422 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.514e-05/0.3553, allocations: 51.41 kB / 1.225 GB, free: 9.359 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.801e-05/0.3554, allocations: 105.8 kB / 1.225 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.718e-05/0.3554, allocations: 25.7 kB / 1.225 GB, free: 9.215 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 3.791e-05/0.3555, allocations: 80.14 kB / 1.225 GB, free: 9.133 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.43e-05/0.3555, allocations: 43.67 kB / 1.225 GB, free: 9.09 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.914e-05/0.3556, allocations: 29.84 kB / 1.225 GB, free: 9.055 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001383/0.3557, allocations: 318.8 kB / 1.225 GB, free: 8.734 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.62e-05/0.3557, allocations: 24 kB / 1.225 GB, free: 8.711 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.829e-05/0.3558, allocations: 19.98 kB / 1.225 GB, free: 8.691 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001004/0.3559, allocations: 56.84 kB / 1.225 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.42e-07/0.3559, allocations: 0 / 1.225 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001486/0.356, allocations: 101.6 kB / 1.225 GB, free: 8.527 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.356, allocations: 4 kB / 1.225 GB, free: 8.523 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.3561, allocations: 0 / 1.225 GB, free: 8.523 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.3561, allocations: 0 / 1.225 GB, free: 8.523 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001087/0.3562, allocations: 31.92 kB / 1.226 GB, free: 8.492 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.3562, allocations: 0 / 1.226 GB, free: 8.492 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.562e-05/0.3562, allocations: 0 / 1.226 GB, free: 8.492 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.147e-06/0.3562, allocations: 4 kB / 1.226 GB, free: 8.488 MB / 0.9825 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.172e-05/0.3563, allocations: 114.4 kB / 1.226 GB, free: 8.367 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.828e-05/0.3563, allocations: 7.891 kB / 1.226 GB, free: 8.359 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000201/0.3565, allocations: 113.5 kB / 1.226 GB, free: 8.238 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.3565, allocations: 0 / 1.226 GB, free: 8.238 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.3565, allocations: 0 / 1.226 GB, free: 8.238 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.3565, allocations: 4 kB / 1.226 GB, free: 8.234 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004221/0.3569, allocations: 354.4 kB / 1.226 GB, free: 7.832 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.3569, allocations: 96 / 1.226 GB, free: 7.832 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001087/0.3571, allocations: 27.86 kB / 1.226 GB, free: 7.805 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.608e-06/0.3571, allocations: 4 kB / 1.226 GB, free: 7.801 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.139e-05/0.3571, allocations: 8 kB / 1.226 GB, free: 7.793 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.3571, allocations: 0 / 1.226 GB, free: 7.793 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3571, allocations: 0 / 1.226 GB, free: 7.793 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000259/0.3573, allocations: 219.4 kB / 1.226 GB, free: 7.562 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.33e-05/0.3574, allocations: 77.11 kB / 1.226 GB, free: 7.469 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.138e-05/0.3574, allocations: 3.984 kB / 1.226 GB, free: 7.465 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.583e-05/0.3575, allocations: 4.031 kB / 1.226 GB, free: 7.461 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.346e-05/0.3575, allocations: 11.94 kB / 1.226 GB, free: 7.449 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.275e-06/0.3575, allocations: 7.938 kB / 1.226 GB, free: 7.441 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.675e-05/0.3576, allocations: 79.27 kB / 1.227 GB, free: 7.363 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3576, allocations: 0 / 1.227 GB, free: 7.363 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002865/0.3579, allocations: 40.03 kB / 1.227 GB, free: 7.324 MB / 0.9825 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.0002181/0.3581, allocations: 139.1 kB / 1.227 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001534/0.3582, allocations: 64.17 kB / 1.227 GB, free: 7.121 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3582, allocations: 0 / 1.227 GB, free: 7.121 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 5.184e-05/0.3583, allocations: 31.98 kB / 1.227 GB, free: 7.09 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002283/0.3585, allocations: 10.66 kB / 1.227 GB, free: 7.082 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005727/0.3591, allocations: 292.3 kB / 1.227 GB, free: 6.77 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002569/0.3593, allocations: 0.6846 MB / 1.228 GB, free: 6.059 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.605e-05/0.3594, allocations: 11.97 kB / 1.228 GB, free: 6.047 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.719e-05/0.3594, allocations: 15.44 kB / 1.228 GB, free: 6.031 MB / 0.9825 GB Notification: Performance of SimCode: time 4e-07/0.3594, allocations: 7.938 kB / 1.228 GB, free: 6.023 MB / 0.9825 GB Notification: Performance of Templates: time 0.003569/0.363, allocations: 0.9534 MB / 1.229 GB, free: 5.102 MB / 0.9825 GB make -j1 -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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