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: "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="Buildings_latest_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_latest_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.002315/0.002315, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002991/0.002991, allocations: 194.5 kB / 16.25 MB, free: 6.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.764/2.764, 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 11.0.1-master/package.mo): time 5.947/5.947, allocations: 461.9 MB / 0.7344 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002124/0.002125, allocations: 64.5 kB / 0.8987 GB, free: 37.11 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6806/0.6828, allocations: 157.4 MB / 1.052 GB, free: 8.648 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.004883/0.6878, allocations: 1.361 MB / 1.054 GB, free: 7.27 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00181/0.6896, allocations: 0.6189 MB / 1.054 GB, free: 6.648 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.6e-05/0.6897, allocations: 0 / 1.054 GB, free: 6.648 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.667e-05/0.6898, allocations: 3.984 kB / 1.054 GB, free: 6.645 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.539e-05/0.6899, allocations: 3.938 kB / 1.054 GB, free: 6.641 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001044/0.6909, allocations: 139.6 kB / 1.054 GB, free: 6.504 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.044e-05/0.691, allocations: 23.88 kB / 1.055 GB, free: 6.48 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 6.811e-05/0.6911, allocations: 7.984 kB / 1.055 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.663e-05/0.6911, allocations: 4 kB / 1.055 GB, free: 6.469 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.57e-05/0.6912, allocations: 15.92 kB / 1.055 GB, free: 6.453 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.481e-05/0.6913, allocations: 4 kB / 1.055 GB, free: 6.449 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008371/0.6921, allocations: 347.3 kB / 1.055 GB, free: 6.109 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.408e-05/0.6922, allocations: 4 kB / 1.055 GB, free: 6.105 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.348e-05/0.6922, allocations: 15.91 kB / 1.055 GB, free: 6.09 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000434/0.6927, allocations: 151.9 kB / 1.055 GB, free: 5.941 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.735e-06/0.6927, allocations: 0 / 1.055 GB, free: 5.941 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.126e-06/0.6927, allocations: 4 kB / 1.055 GB, free: 5.938 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.354e-05/0.6927, allocations: 3.984 kB / 1.055 GB, free: 5.934 MB / 0.8106 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.0008027/0.6935, allocations: 359.5 kB / 1.055 GB, free: 5.531 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 8.848e-05/0.6936, allocations: 8.031 kB / 1.055 GB, free: 5.523 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.394e-05/0.6937, allocations: 46.67 kB / 1.055 GB, free: 5.469 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.834e-05/0.6938, allocations: 4.844 kB / 1.055 GB, free: 5.465 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002529/0.6941, allocations: 168.3 kB / 1.056 GB, free: 5.262 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.282e-05/0.6941, allocations: 384 / 1.056 GB, free: 5.262 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.763e-05/0.6942, allocations: 12.31 kB / 1.056 GB, free: 5.25 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003132/0.6945, allocations: 54.23 kB / 1.056 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.879e-05/0.6946, allocations: 7.922 kB / 1.056 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.893e-05/0.6946, allocations: 0 / 1.056 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.6946, allocations: 0 / 1.056 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000101/0.6947, allocations: 23.92 kB / 1.056 GB, free: 5.16 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003306/0.6951, allocations: 161.7 kB / 1.056 GB, free: 4.953 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002118/0.6953, allocations: 58.5 kB / 1.056 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.622e-05/0.6954, allocations: 32.84 kB / 1.056 GB, free: 4.852 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.862e-05/0.6954, allocations: 4 kB / 1.056 GB, free: 4.848 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.457e-05/0.6955, allocations: 34.56 kB / 1.056 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.603e-06/0.6955, allocations: 0 / 1.056 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.001923/0.6974, allocations: 0.5875 MB / 1.057 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.132e-05/0.6975, allocations: 51.41 kB / 1.057 GB, free: 4.062 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001389/0.6976, allocations: 97.86 kB / 1.057 GB, free: 3.957 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.244e-05/0.6977, allocations: 25.7 kB / 1.057 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.119e-05/0.6978, allocations: 84 kB / 1.057 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.056e-05/0.6978, allocations: 47.39 kB / 1.057 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.211e-05/0.6979, allocations: 29.7 kB / 1.057 GB, free: 3.758 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0002235/0.6982, allocations: 315 kB / 1.057 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.612e-05/0.6982, allocations: 23.98 kB / 1.057 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.47e-05/0.6983, allocations: 19.98 kB / 1.057 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001821/0.6985, allocations: 68.05 kB / 1.057 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.6985, allocations: 0 / 1.057 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000275/0.6988, allocations: 97.62 kB / 1.057 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.364e-05/0.6989, allocations: 7.984 kB / 1.057 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.6989, allocations: 0 / 1.057 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.27e-05/0.6989, allocations: 4 kB / 1.057 GB, free: 3.219 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001571/0.6991, allocations: 20 kB / 1.057 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.213e-05/0.6991, allocations: 4.25 kB / 1.057 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.22e-05/0.6991, allocations: 0 / 1.057 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.676e-05/0.6992, allocations: 7.984 kB / 1.057 GB, free: 3.188 MB / 0.8106 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 0.0001495/0.6993, allocations: 113.8 kB / 1.058 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.037e-05/0.6994, allocations: 11.84 kB / 1.058 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003096/0.6997, allocations: 109.6 kB / 1.058 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.6997, allocations: 0 / 1.058 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.206e-06/0.6997, allocations: 4 kB / 1.058 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.618e-05/0.6997, allocations: 3.984 kB / 1.058 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008119/0.7006, allocations: 358.6 kB / 1.058 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.7006, allocations: 0 / 1.058 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001579/0.7007, allocations: 19.98 kB / 1.058 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.7008, allocations: 4 kB / 1.058 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.761e-05/0.7008, allocations: 4 kB / 1.058 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.052e-06/0.7008, allocations: 3.938 kB / 1.058 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.7008, allocations: 0 / 1.058 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004484/0.7013, allocations: 223.4 kB / 1.058 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001004/0.7014, allocations: 81.05 kB / 1.058 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.615e-05/0.7014, allocations: 4.031 kB / 1.058 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001253/0.7016, allocations: 0 / 1.058 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.105e-05/0.7016, allocations: 11.98 kB / 1.058 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.429e-05/0.7016, allocations: 4 kB / 1.058 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.334e-05/0.7017, allocations: 75.28 kB / 1.058 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.2e-07/0.7017, allocations: 4.156 kB / 1.058 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0004935/0.7022, allocations: 35.98 kB / 1.058 GB, free: 2.031 MB / 0.8106 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.00115/0.7034, allocations: 0.7825 MB / 1.059 GB, free: 1.223 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002814/0.7037, allocations: 63.86 kB / 1.059 GB, free: 1.16 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.7037, allocations: 0 / 1.059 GB, free: 1.16 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.187e-05/0.7038, allocations: 43.98 kB / 1.059 GB, free: 1.117 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004411/0.7043, allocations: 8 kB / 1.059 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002682/0.707, allocations: 1.5 MB / 1.061 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004547/0.7074, allocations: 0.6885 MB / 1.061 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.042e-05/0.7076, allocations: 12 kB / 1.061 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.035e-05/0.7077, allocations: 23.36 kB / 1.061 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of SimCode: time 1.083e-06/0.7077, allocations: 4 kB / 1.061 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.62/2.327, allocations: 1.951 MB / 1.063 GB, free: 13.03 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004313/2.328, allocations: 259 kB / 1.064 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.522/6.85, allocations: 1.328 kB / 1.064 GB, free: 12.77 MB / 0.8262 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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[1]=-2.000000 " 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