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.001433/0.001434, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001388/0.001388, allocations: 193.7 kB / 16.25 MB, free: 6.629 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.262/1.262, allocations: 222.9 MB / 239.9 MB, free: 4.527 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.48/2.48, allocations: 469.8 MB / 0.7421 GB, free: 7.598 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001712/0.001712, allocations: 69.08 kB / 0.9082 GB, free: 34.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2262/0.228, allocations: 159.2 MB / 1.064 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002053/0.2301, allocations: 1.341 MB / 1.065 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0008908/0.231, allocations: 0.6207 MB / 1.066 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.658e-05/0.231, allocations: 0 / 1.066 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.748e-05/0.231, allocations: 3.938 kB / 1.066 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.317e-05/0.2311, allocations: 0 / 1.066 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004464/0.2315, allocations: 136.8 kB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.142e-05/0.2316, allocations: 27.86 kB / 1.066 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.192e-05/0.2316, allocations: 7.938 kB / 1.066 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.967e-05/0.2316, allocations: 8 kB / 1.066 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.593e-05/0.2317, allocations: 19.91 kB / 1.066 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.108e-05/0.2317, allocations: 4 kB / 1.066 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004361/0.2321, allocations: 343.3 kB / 1.066 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.2e-05/0.2322, allocations: 7.969 kB / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.04e-05/0.2322, allocations: 11.94 kB / 1.066 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002172/0.2324, allocations: 155.9 kB / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.2324, allocations: 4 kB / 1.066 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.202e-06/0.2324, allocations: 0 / 1.066 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.626e-06/0.2324, allocations: 0 / 1.066 GB, free: 11.85 MB / 0.8262 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.000376/0.2328, allocations: 368.6 kB / 1.067 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.2328, allocations: 12.03 kB / 1.067 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.046e-05/0.2329, allocations: 34.69 kB / 1.067 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.542e-05/0.2329, allocations: 8.844 kB / 1.067 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001067/0.233, allocations: 172.3 kB / 1.067 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.163e-05/0.233, allocations: 4.375 kB / 1.067 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2e-05/0.2331, allocations: 8.375 kB / 1.067 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001099/0.2332, allocations: 54.23 kB / 1.067 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.2332, allocations: 3.938 kB / 1.067 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.574e-06/0.2332, allocations: 0 / 1.067 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.216e-06/0.2332, allocations: 0 / 1.067 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.542e-05/0.2333, allocations: 19.98 kB / 1.067 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001587/0.2334, allocations: 161.7 kB / 1.067 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 9.705e-05/0.2335, allocations: 62.5 kB / 1.067 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.495e-05/0.2336, allocations: 36.83 kB / 1.067 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.611e-05/0.2336, allocations: 0 / 1.067 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.453e-05/0.2336, allocations: 30.56 kB / 1.067 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 7.61e-07/0.2336, allocations: 0 / 1.067 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.001017/0.2347, allocations: 0.5956 MB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.045e-05/0.2347, allocations: 51.5 kB / 1.068 GB, free: 9.973 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.235e-05/0.2348, allocations: 101.8 kB / 1.068 GB, free: 9.863 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.983e-05/0.2348, allocations: 29.7 kB / 1.068 GB, free: 9.828 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.539e-05/0.2348, allocations: 84.14 kB / 1.068 GB, free: 9.742 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.115e-05/0.2349, allocations: 39.39 kB / 1.068 GB, free: 9.703 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.916e-05/0.2349, allocations: 25.84 kB / 1.068 GB, free: 9.672 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001147/0.2351, allocations: 322.8 kB / 1.068 GB, free: 9.348 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.697e-05/0.2351, allocations: 19.94 kB / 1.068 GB, free: 9.328 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.924e-05/0.2351, allocations: 28.86 kB / 1.068 GB, free: 9.301 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.677e-05/0.2352, allocations: 49.98 kB / 1.068 GB, free: 9.25 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.91e-07/0.2352, allocations: 0 / 1.068 GB, free: 9.25 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001396/0.2354, allocations: 102.6 kB / 1.069 GB, free: 9.145 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.769e-06/0.2354, allocations: 4 kB / 1.069 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.507e-06/0.2354, allocations: 0 / 1.069 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.808e-06/0.2354, allocations: 4 kB / 1.069 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.805e-05/0.2355, allocations: 27.92 kB / 1.069 GB, free: 9.109 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.898e-06/0.2355, allocations: 0 / 1.069 GB, free: 9.109 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.491e-05/0.2356, allocations: 8 kB / 1.069 GB, free: 9.102 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.691e-06/0.2356, allocations: 0 / 1.069 GB, free: 9.102 MB / 0.8262 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.746e-05/0.2356, allocations: 113.8 kB / 1.069 GB, free: 8.98 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.69e-05/0.2357, allocations: 11.84 kB / 1.069 GB, free: 8.969 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001736/0.2358, allocations: 109.5 kB / 1.069 GB, free: 8.855 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.2359, allocations: 0 / 1.069 GB, free: 8.855 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/0.2359, allocations: 8 kB / 1.069 GB, free: 8.848 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.554e-06/0.2359, allocations: 4 kB / 1.069 GB, free: 8.844 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003531/0.2362, allocations: 350.5 kB / 1.069 GB, free: 8.445 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.2362, allocations: 0 / 1.069 GB, free: 8.445 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.725e-05/0.2363, allocations: 23.94 kB / 1.069 GB, free: 8.422 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.2363, allocations: 0 / 1.069 GB, free: 8.422 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.2364, allocations: 3.984 kB / 1.069 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.2364, allocations: 0 / 1.069 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.2364, allocations: 0 / 1.069 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002213/0.2366, allocations: 219.4 kB / 1.069 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.487e-05/0.2366, allocations: 81.05 kB / 1.069 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.647e-05/0.2367, allocations: 8.031 kB / 1.069 GB, free: 8.082 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.941e-05/0.2367, allocations: 3.984 kB / 1.069 GB, free: 8.078 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.47e-05/0.2368, allocations: 4 kB / 1.069 GB, free: 8.074 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.008e-05/0.2368, allocations: 8 kB / 1.069 GB, free: 8.066 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.524e-05/0.2368, allocations: 79.22 kB / 1.07 GB, free: 7.988 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2368, allocations: 4.156 kB / 1.07 GB, free: 7.984 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002304/0.2371, allocations: 35.98 kB / 1.07 GB, free: 7.949 MB / 0.8262 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.0005478/0.2376, allocations: 0.7864 MB / 1.07 GB, free: 7.137 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001321/0.2378, allocations: 74.27 kB / 1.07 GB, free: 7.066 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.2378, allocations: 0 / 1.07 GB, free: 7.066 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.518e-05/0.2378, allocations: 36 kB / 1.07 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001896/0.238, allocations: 6.094 kB / 1.07 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001333/0.2393, allocations: 1.51 MB / 1.072 GB, free: 5.441 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002607/0.2396, allocations: 0.6922 MB / 1.073 GB, free: 4.723 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.805e-05/0.2397, allocations: 12.05 kB / 1.073 GB, free: 4.711 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.432e-05/0.2397, allocations: 27.36 kB / 1.073 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.2397, allocations: 0 / 1.073 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.245/1.485, allocations: 1.945 MB / 1.075 GB, free: 2.941 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003611/1.485, allocations: 255.6 kB / 1.075 GB, free: 2.68 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.38/3.865, allocations: 3.938 kB / 1.075 GB, free: 2.676 MB / 0.8262 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[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