Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.00822/0.00822, allocations: 104.1 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.001416/0.001417, allocations: 188.4 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.459/1.459, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.453/2.453, allocations: 390.3 MB / 0.6648 GB, free: 224 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 70.23 kB / 0.9504 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2977/0.299, allocations: 140.4 MB / 1.087 GB, free: 2.137 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.00245/0.3015, allocations: 1.27 MB / 1.089 GB, free: 0.8555 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001042/0.3025, allocations: 0.6206 MB / 1.089 GB, free: 240 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.289e-05/0.3026, allocations: 0 / 1.089 GB, free: 240 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.757e-05/0.3026, allocations: 4 kB / 1.089 GB, free: 236 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 4.127e-05/0.3027, allocations: 3.938 kB / 1.089 GB, free: 232 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006543/0.3033, allocations: 157.6 kB / 1.089 GB, free: 76 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 7.626e-05/0.3034, allocations: 27.86 kB / 1.09 GB, free: 48 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.25e-05/0.3035, allocations: 4 kB / 1.09 GB, free: 44 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 2.901e-05/0.3035, allocations: 15.97 kB / 1.09 GB, free: 28 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 6.071e-05/0.3036, allocations: 11.94 kB / 1.09 GB, free: 16 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.377e-05/0.3036, allocations: 4 kB / 1.09 GB, free: 12 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005074/0.3041, allocations: 351.3 kB / 1.09 GB, free: 15.67 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.483e-05/0.3041, allocations: 3.984 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.734e-05/0.3042, allocations: 11.94 kB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002721/0.3044, allocations: 159.3 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3044, allocations: 0 / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.192e-06/0.3045, allocations: 0 / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.242e-06/0.3045, allocations: 0 / 1.09 GB, free: 15.5 MB / 0.8575 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.0004708/0.3049, allocations: 363.5 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.223e-05/0.305, allocations: 8.031 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.257e-05/0.305, allocations: 42.69 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.423e-05/0.3051, allocations: 12.78 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001197/0.3052, allocations: 172.3 kB / 1.091 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.47e-05/0.3052, allocations: 4.375 kB / 1.091 GB, free: 14.81 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.459e-05/0.3053, allocations: 8.359 kB / 1.091 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001224/0.3054, allocations: 50.25 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.3054, allocations: 3.938 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.728e-06/0.3054, allocations: 0 / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.3054, allocations: 0 / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.406e-05/0.3055, allocations: 19.98 kB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001808/0.3057, allocations: 165.7 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001101/0.3058, allocations: 58.5 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.455e-05/0.3059, allocations: 28.84 kB / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.263e-05/0.3059, allocations: 4 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.667e-05/0.3059, allocations: 30.56 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 9.82e-07/0.3059, allocations: 0 / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.001177/0.3071, allocations: 0.5954 MB / 1.092 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.208e-05/0.3072, allocations: 51.41 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.213e-05/0.3072, allocations: 97.84 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.019e-05/0.3073, allocations: 29.7 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.353e-05/0.3073, allocations: 88.27 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.31e-05/0.3074, allocations: 39.44 kB / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.616e-05/0.3074, allocations: 25.72 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001261/0.3075, allocations: 322.8 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.816e-05/0.3076, allocations: 16 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.267e-05/0.3076, allocations: 27.98 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001427/0.3078, allocations: 48.86 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.3078, allocations: 0 / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002577/0.3081, allocations: 108.6 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.3081, allocations: 5.562 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.3081, allocations: 0 / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.3082, allocations: 4.094 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001618/0.3083, allocations: 27.86 kB / 1.092 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.3084, allocations: 0 / 1.092 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.658e-05/0.3084, allocations: 8 kB / 1.092 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.038e-05/0.3084, allocations: 0 / 1.092 GB, free: 12.75 MB / 0.8575 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.0001139/0.3086, allocations: 117.8 kB / 1.093 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.929e-05/0.3086, allocations: 15.84 kB / 1.093 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003002/0.3089, allocations: 113.5 kB / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.451e-06/0.3089, allocations: 4 kB / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.776e-06/0.3089, allocations: 4 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.309, allocations: 0 / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006035/0.3096, allocations: 346.5 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.3096, allocations: 0 / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001665/0.3098, allocations: 27.92 kB / 1.093 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.3098, allocations: 0 / 1.093 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.238e-05/0.3098, allocations: 0 / 1.093 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.3098, allocations: 4 kB / 1.093 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3098, allocations: 80 / 1.093 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003658/0.3102, allocations: 215.4 kB / 1.093 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.835e-05/0.3103, allocations: 77.11 kB / 1.093 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.509e-05/0.3103, allocations: 8.031 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001287/0.3104, allocations: 3.984 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.534e-05/0.3105, allocations: 7.938 kB / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.531e-05/0.3105, allocations: 12.06 kB / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.858e-05/0.3105, allocations: 79.27 kB / 1.093 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.11e-07/0.3106, allocations: 3.938 kB / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004458/0.311, allocations: 35.94 kB / 1.093 GB, free: 11.59 MB / 0.8575 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.0008454/0.3119, allocations: 0.7789 MB / 1.094 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002164/0.3121, allocations: 67.84 kB / 1.094 GB, free: 10.72 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 6.683e-06/0.3121, allocations: 8 kB / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 7.514e-05/0.3122, allocations: 28.48 kB / 1.094 GB, free: 10.68 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003361/0.3125, allocations: 8 kB / 1.094 GB, free: 10.68 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002075/0.3146, allocations: 1.504 MB / 1.096 GB, free: 9.094 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003543/0.315, allocations: 0.6963 MB / 1.096 GB, free: 8.371 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 6.437e-05/0.3151, allocations: 7.984 kB / 1.096 GB, free: 8.363 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.744e-05/0.3152, allocations: 19.44 kB / 1.096 GB, free: 8.344 MB / 0.8575 GB Notification: Performance of SimCode: time 4.01e-07/0.3152, allocations: 0 / 1.096 GB, free: 8.344 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02042/0.3356, allocations: 2.087 MB / 1.099 GB, free: 6.434 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.847/8.183, allocations: 12.19 kB / 1.099 GB, free: 6.422 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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