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: "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",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.00749/0.00749, allocations: 98.7 kB / 15.73 MB, free: 6.055 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.002055/0.002055, allocations: 196.5 kB / 16.68 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.227/1.227, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.377/2.377, allocations: 469.8 MB / 0.7425 GB, free: 3.332 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001676/0.001676, allocations: 72.12 kB / 1.065 GB, free: 14.06 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5875/0.5892, allocations: 159.1 MB / 1.22 GB, free: 2.043 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.001937/0.5911, allocations: 1.28 MB / 1.221 GB, free: 0.7539 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0009172/0.5921, allocations: 0.6149 MB / 1.222 GB, free: 140 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.208e-05/0.5921, allocations: 0 / 1.222 GB, free: 140 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.548e-05/0.5921, allocations: 0 / 1.222 GB, free: 140 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 3.585e-05/0.5922, allocations: 11.92 kB / 1.222 GB, free: 128 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004849/0.5927, allocations: 154 kB / 1.222 GB, free: 15.98 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 5.692e-05/0.5927, allocations: 27.91 kB / 1.222 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 3.258e-05/0.5928, allocations: 4 kB / 1.222 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 2.287e-05/0.5928, allocations: 19.94 kB / 1.222 GB, free: 15.93 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 4.792e-05/0.5928, allocations: 11.92 kB / 1.222 GB, free: 15.91 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.06e-05/0.5929, allocations: 0 / 1.222 GB, free: 15.91 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004803/0.5933, allocations: 347.3 kB / 1.223 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 1.148e-05/0.5934, allocations: 4 kB / 1.223 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 2.636e-05/0.5934, allocations: 19.92 kB / 1.223 GB, free: 15.55 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002353/0.5936, allocations: 147.2 kB / 1.223 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.5936, allocations: 3.984 kB / 1.223 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.012e-06/0.5937, allocations: 0 / 1.223 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 3.667e-06/0.5937, allocations: 4 kB / 1.223 GB, free: 15.4 MB / 0.9512 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.0003784/0.594, allocations: 367 kB / 1.223 GB, free: 14.99 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.5941, allocations: 12.62 kB / 1.223 GB, free: 14.98 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.328e-05/0.5941, allocations: 38.73 kB / 1.223 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.582e-05/0.5942, allocations: 8.891 kB / 1.223 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001042/0.5943, allocations: 160.4 kB / 1.223 GB, free: 14.73 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.867e-06/0.5943, allocations: 384 / 1.223 GB, free: 14.73 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.713e-05/0.5943, allocations: 8.375 kB / 1.223 GB, free: 14.72 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001021/0.5944, allocations: 50.19 kB / 1.223 GB, free: 14.67 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.5944, allocations: 7.922 kB / 1.223 GB, free: 14.66 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.074e-05/0.5944, allocations: 8 kB / 1.223 GB, free: 14.65 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.5945, allocations: 7.938 kB / 1.223 GB, free: 14.64 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.39e-05/0.5945, allocations: 15.98 kB / 1.223 GB, free: 14.63 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001573/0.5947, allocations: 161.7 kB / 1.224 GB, free: 14.42 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001039/0.5948, allocations: 66.5 kB / 1.224 GB, free: 14.35 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.868e-05/0.5948, allocations: 24.84 kB / 1.224 GB, free: 14.32 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.604e-05/0.5948, allocations: 0 / 1.224 GB, free: 14.32 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.78e-05/0.5949, allocations: 42.56 kB / 1.224 GB, free: 14.27 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 7.81e-07/0.5949, allocations: 0 / 1.224 GB, free: 14.27 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11): time 0.001006/0.5959, allocations: 0.5917 MB / 1.224 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.328e-05/0.596, allocations: 55.41 kB / 1.224 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.704e-05/0.596, allocations: 93.86 kB / 1.224 GB, free: 13.42 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.611e-05/0.596, allocations: 29.7 kB / 1.224 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 3.504e-05/0.5961, allocations: 84.14 kB / 1.225 GB, free: 13.3 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.619e-05/0.5961, allocations: 35.69 kB / 1.225 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.289e-05/0.5962, allocations: 29.7 kB / 1.225 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001109/0.5963, allocations: 314.8 kB / 1.225 GB, free: 12.91 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.153e-05/0.5963, allocations: 23.98 kB / 1.225 GB, free: 12.89 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.583e-05/0.5964, allocations: 20.11 kB / 1.225 GB, free: 12.87 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.988e-05/0.5965, allocations: 66.8 kB / 1.225 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.61e-07/0.5965, allocations: 0 / 1.225 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001404/0.5966, allocations: 97.58 kB / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.5966, allocations: 11.98 kB / 1.225 GB, free: 12.69 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.507e-06/0.5967, allocations: 0 / 1.225 GB, free: 12.69 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.328e-06/0.5967, allocations: 0 / 1.225 GB, free: 12.69 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.837e-05/0.5968, allocations: 16 kB / 1.225 GB, free: 12.67 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.725e-06/0.5968, allocations: 4 kB / 1.225 GB, free: 12.67 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.25e-05/0.5968, allocations: 0 / 1.225 GB, free: 12.67 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.03e-05/0.5968, allocations: 15.92 kB / 1.225 GB, free: 12.65 MB / 0.9512 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 7.37e-05/0.5969, allocations: 113.8 kB / 1.225 GB, free: 12.53 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.828e-05/0.5969, allocations: 15.88 kB / 1.225 GB, free: 12.52 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001813/0.5971, allocations: 105.6 kB / 1.225 GB, free: 12.4 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.5971, allocations: 4 kB / 1.225 GB, free: 12.39 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.5971, allocations: 0 / 1.225 GB, free: 12.39 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.5971, allocations: 3.984 kB / 1.225 GB, free: 12.39 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003551/0.5975, allocations: 346.5 kB / 1.226 GB, free: 12 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.5975, allocations: 8 kB / 1.226 GB, free: 11.99 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.744e-05/0.5976, allocations: 23.98 kB / 1.226 GB, free: 11.96 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.5976, allocations: 0 / 1.226 GB, free: 11.96 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.174e-06/0.5976, allocations: 3.938 kB / 1.226 GB, free: 11.96 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.5976, allocations: 4 kB / 1.226 GB, free: 11.96 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.5976, allocations: 4.031 kB / 1.226 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002299/0.5979, allocations: 223.6 kB / 1.226 GB, free: 11.72 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.102e-05/0.5979, allocations: 81.14 kB / 1.226 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.354e-05/0.5979, allocations: 4.062 kB / 1.226 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.74e-05/0.598, allocations: 8 kB / 1.226 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.63e-05/0.5981, allocations: 7.984 kB / 1.226 GB, free: 11.6 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.484e-06/0.5981, allocations: 4 kB / 1.226 GB, free: 11.6 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.556e-05/0.5981, allocations: 79.28 kB / 1.226 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2e-07/0.5981, allocations: 0 / 1.226 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002375/0.5983, allocations: 39.86 kB / 1.226 GB, free: 11.48 MB / 0.9512 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.0005792/0.5989, allocations: 0.787 MB / 1.227 GB, free: 10.67 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001326/0.5991, allocations: 63.86 kB / 1.227 GB, free: 10.61 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.5991, allocations: 0 / 1.227 GB, free: 10.61 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 4.87e-05/0.5991, allocations: 31.98 kB / 1.227 GB, free: 10.57 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000193/0.5993, allocations: 8 kB / 1.227 GB, free: 10.57 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001377/0.6007, allocations: 1.517 MB / 1.228 GB, free: 8.973 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002744/0.601, allocations: 0.6884 MB / 1.229 GB, free: 8.258 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.901e-05/0.601, allocations: 11.92 kB / 1.229 GB, free: 8.246 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.622e-05/0.6011, allocations: 17.55 kB / 1.229 GB, free: 8.23 MB / 0.9512 GB Notification: Performance of SimCode: time 2.4e-07/0.6011, allocations: 4 kB / 1.229 GB, free: 8.227 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.031/1.632, allocations: 2.067 MB / 1.231 GB, free: 6.336 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.06/16.69, allocations: 9.078 kB / 1.231 GB, free: 6.332 MB / 0.9512 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=400 --tolerance=1e-08 Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=2.000000 File[1590]=-0.353000 " 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(der(dp)),der(der_m_flow),der(der_m_flow_comp),der(dp),der(m_flow),der(m_flow_comp),der_m_flow,der_m_flow_comp,dp,err_der_m_flow,err_m_flow,k,m_flow,m_flow_comp,m_flow_turbulent,time