Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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: "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008403/0.0008404, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.007237/0.007237, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.451/1.451, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.667/2.667, allocations: 443.4 MB / 0.7176 GB, free: 1.469 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003857/0.0003857, allocations: 8.781 kB / 0.8797 GB, free: 41.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3078/0.3082, allocations: 155.2 MB / 1.031 GB, free: 4.289 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.001339/0.3096, allocations: 1.003 MB / 1.032 GB, free: 3.273 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001046/0.3106, allocations: 0.6157 MB / 1.033 GB, free: 2.656 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.542e-05/0.3106, allocations: 3.938 kB / 1.033 GB, free: 2.652 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.481e-05/0.3107, allocations: 4 kB / 1.033 GB, free: 2.648 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 4.095e-05/0.3107, allocations: 3.938 kB / 1.033 GB, free: 2.645 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004325/0.3112, allocations: 123.6 kB / 1.033 GB, free: 2.523 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.018e-05/0.3112, allocations: 19.92 kB / 1.033 GB, free: 2.504 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.466e-05/0.3113, allocations: 4 kB / 1.033 GB, free: 2.5 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 3.389e-05/0.3113, allocations: 11.94 kB / 1.033 GB, free: 2.488 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 4.675e-05/0.3114, allocations: 3.984 kB / 1.033 GB, free: 2.484 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.299e-05/0.3114, allocations: 7.938 kB / 1.033 GB, free: 2.477 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004438/0.3118, allocations: 347.3 kB / 1.033 GB, free: 2.137 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.036e-05/0.3118, allocations: 0 / 1.033 GB, free: 2.137 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.231e-05/0.3119, allocations: 41.62 kB / 1.033 GB, free: 2.09 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002215/0.3121, allocations: 140 kB / 1.034 GB, free: 1.953 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.3121, allocations: 0 / 1.034 GB, free: 1.953 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.533e-06/0.3121, allocations: 0 / 1.034 GB, free: 1.953 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.447e-06/0.3121, allocations: 4 kB / 1.034 GB, free: 1.949 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003698/0.3125, allocations: 359.3 kB / 1.034 GB, free: 1.547 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.3126, allocations: 8.031 kB / 1.034 GB, free: 1.539 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.166e-05/0.3126, allocations: 38.75 kB / 1.034 GB, free: 1.492 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.32e-05/0.3126, allocations: 4.938 kB / 1.034 GB, free: 1.488 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001021/0.3127, allocations: 164.3 kB / 1.034 GB, free: 1.289 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.625e-06/0.3127, allocations: 384 / 1.034 GB, free: 1.289 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.947e-05/0.3128, allocations: 4.375 kB / 1.034 GB, free: 1.285 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.867e-05/0.3129, allocations: 46.19 kB / 1.034 GB, free: 1.234 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.285e-06/0.3129, allocations: 3.938 kB / 1.034 GB, free: 1.23 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.195e-06/0.3129, allocations: 0 / 1.034 GB, free: 1.23 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.87e-06/0.3129, allocations: 0 / 1.034 GB, free: 1.23 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.936e-05/0.3129, allocations: 11.98 kB / 1.034 GB, free: 1.219 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001511/0.3131, allocations: 161.7 kB / 1.034 GB, free: 1.012 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001677/0.3133, allocations: 46.53 kB / 1.034 GB, free: 0.957 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.2e-05/0.3133, allocations: 16.86 kB / 1.034 GB, free: 0.9375 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.745e-05/0.3133, allocations: 4.094 kB / 1.034 GB, free: 0.9336 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.114e-05/0.3134, allocations: 34.55 kB / 1.034 GB, free: 0.8906 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 9.92e-07/0.3134, allocations: 0 / 1.034 GB, free: 0.8906 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0005956/0.314, allocations: 314.2 kB / 1.035 GB, free: 0.5312 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.197e-05/0.314, allocations: 51.41 kB / 1.035 GB, free: 480 kB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.154e-05/0.3141, allocations: 101.8 kB / 1.035 GB, free: 368 kB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.305e-05/0.3141, allocations: 25.7 kB / 1.035 GB, free: 336 kB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.017e-05/0.3142, allocations: 80.14 kB / 1.035 GB, free: 252 kB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.78e-05/0.3142, allocations: 19.72 kB / 1.035 GB, free: 232 kB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.463e-05/0.3142, allocations: 17.66 kB / 1.035 GB, free: 208 kB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000116/0.3144, allocations: 322.8 kB / 1.035 GB, free: 15.88 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.369e-05/0.3144, allocations: 8 kB / 1.035 GB, free: 15.87 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.983e-05/0.3144, allocations: 12 kB / 1.035 GB, free: 15.86 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.993e-05/0.3145, allocations: 40.92 kB / 1.035 GB, free: 15.82 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.71e-07/0.3145, allocations: 0 / 1.035 GB, free: 15.82 MB / 0.795 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.457e-05/0.3146, allocations: 69.62 kB / 1.035 GB, free: 15.74 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.3146, allocations: 4 kB / 1.035 GB, free: 15.74 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.3146, allocations: 3.938 kB / 1.035 GB, free: 15.73 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.3146, allocations: 0 / 1.035 GB, free: 15.73 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.054e-05/0.3147, allocations: 16 kB / 1.035 GB, free: 15.72 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.3147, allocations: 0 / 1.035 GB, free: 15.72 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.701e-05/0.3147, allocations: 0 / 1.035 GB, free: 15.72 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.709e-06/0.3147, allocations: 0 / 1.035 GB, free: 15.72 MB / 0.795 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 (7): * Single equations (assignments): 7 * 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 7.609e-05/0.3148, allocations: 123.2 kB / 1.036 GB, free: 15.59 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.209e-05/0.3148, allocations: 11.83 kB / 1.036 GB, free: 15.58 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001386/0.315, allocations: 73.59 kB / 1.036 GB, free: 15.5 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.315, allocations: 128 / 1.036 GB, free: 15.5 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.315, allocations: 4 kB / 1.036 GB, free: 15.5 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.315, allocations: 4 kB / 1.036 GB, free: 15.49 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003042/0.3153, allocations: 319.3 kB / 1.036 GB, free: 15.12 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.3153, allocations: 0 / 1.036 GB, free: 15.12 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.079e-05/0.3154, allocations: 12 kB / 1.036 GB, free: 15.11 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.3154, allocations: 0 / 1.036 GB, free: 15.11 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-06/0.3154, allocations: 4 kB / 1.036 GB, free: 15.11 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.98e-06/0.3154, allocations: 4 kB / 1.036 GB, free: 15.1 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3154, allocations: 0 / 1.036 GB, free: 15.1 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001753/0.3156, allocations: 184.3 kB / 1.036 GB, free: 14.9 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.644e-05/0.3157, allocations: 85.05 kB / 1.036 GB, free: 14.8 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.218e-05/0.3157, allocations: 0 / 1.036 GB, free: 14.8 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7e-05/0.3158, allocations: 3.984 kB / 1.036 GB, free: 14.8 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.852e-05/0.3158, allocations: 4.516 kB / 1.036 GB, free: 14.79 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.022e-06/0.3158, allocations: 4 kB / 1.036 GB, free: 14.79 MB / 0.795 GB Notification: Performance of sorting global known variables: time 3.77e-05/0.3158, allocations: 83.27 kB / 1.036 GB, free: 14.71 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3159, allocations: 4.062 kB / 1.036 GB, free: 14.7 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002422/0.3161, allocations: 19.98 kB / 1.036 GB, free: 14.68 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (6): * Single equations (assignments): 6 * 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.0004798/0.3166, allocations: 0.7289 MB / 1.037 GB, free: 13.92 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 9.706e-05/0.3167, allocations: 32.05 kB / 1.037 GB, free: 13.89 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.3167, allocations: 4 kB / 1.037 GB, free: 13.89 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 2.573e-05/0.3167, allocations: 19.92 kB / 1.037 GB, free: 13.87 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002248/0.317, allocations: 7.938 kB / 1.037 GB, free: 13.86 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001116/0.3181, allocations: 1.359 MB / 1.038 GB, free: 12.41 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001969/0.3183, allocations: 0.6809 MB / 1.039 GB, free: 11.71 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 2.834e-05/0.3183, allocations: 4.312 kB / 1.039 GB, free: 11.7 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.936e-05/0.3184, allocations: 11.44 kB / 1.039 GB, free: 11.69 MB / 0.795 GB Notification: Performance of SimCode: time 2.3e-07/0.3184, allocations: 0 / 1.039 GB, free: 11.69 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02922/0.3476, allocations: 1.393 MB / 1.04 GB, free: 10.5 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002502/0.3479, allocations: 254 kB / 1.041 GB, free: 10.24 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.764/2.112, allocations: 0 / 1.041 GB, free: 10.24 MB / 0.795 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=2.000000 File[1]=-2.000000 " Variables in the reference:time,m_flow,m_flow_comp Variables in the result:der(dp),der(m_flow),der(m_flow_comp),dp,err,k,m_flow,m_flow_comp,m_flow_turbulent,time