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.007367/0.007367, allocations: 101.9 kB / 15.73 MB, free: 6.012 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.001775/0.001775, allocations: 187.7 kB / 16.67 MB, free: 5.949 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.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 4.328 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.185/2.185, allocations: 390.2 MB / 0.6648 GB, free: 200 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001075/0.001075, allocations: 67.05 kB / 0.9504 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2138/0.2148, allocations: 140.4 MB / 1.087 GB, free: 2.004 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.001982/0.2169, allocations: 1.289 MB / 1.089 GB, free: 0.7031 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0008811/0.2178, allocations: 0.6167 MB / 1.089 GB, free: 88 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.295e-05/0.2178, allocations: 0 / 1.089 GB, free: 88 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.726e-05/0.2178, allocations: 7.938 kB / 1.089 GB, free: 80 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 3.408e-05/0.2179, allocations: 3.938 kB / 1.089 GB, free: 76 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005273/0.2184, allocations: 144 kB / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 5.809e-05/0.2185, allocations: 35.84 kB / 1.09 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.999e-05/0.2185, allocations: 7.984 kB / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 1.941e-05/0.2185, allocations: 8 kB / 1.09 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.155e-05/0.2186, allocations: 15.92 kB / 1.09 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.04e-05/0.2186, allocations: 0 / 1.09 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004431/0.2191, allocations: 347.3 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.197e-05/0.2191, allocations: 4 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.471e-05/0.2191, allocations: 15.92 kB / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002314/0.2193, allocations: 151.3 kB / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.231e-06/0.2194, allocations: 8 kB / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.212e-06/0.2194, allocations: 0 / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.539e-06/0.2194, allocations: 4 kB / 1.09 GB, free: 15.35 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.0003538/0.2197, allocations: 355.5 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.222e-05/0.2198, allocations: 15.97 kB / 1.09 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.206e-05/0.2198, allocations: 34.75 kB / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.116e-05/0.2198, allocations: 16.83 kB / 1.09 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.737e-05/0.2199, allocations: 168.3 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.052e-05/0.22, allocations: 4.375 kB / 1.091 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.892e-05/0.22, allocations: 4.375 kB / 1.091 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001045/0.2201, allocations: 50.25 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.2201, allocations: 7.875 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.526e-06/0.2201, allocations: 0 / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.2201, allocations: 4 kB / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.661e-05/0.2202, allocations: 19.97 kB / 1.091 GB, free: 14.58 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001491/0.2203, allocations: 165.7 kB / 1.091 GB, free: 14.37 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 9.193e-05/0.2204, allocations: 58.56 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.065e-05/0.2205, allocations: 32.84 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.725e-05/0.2205, allocations: 0 / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.102e-05/0.2205, allocations: 38.5 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.202e-06/0.2205, allocations: 0 / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.001176/0.2217, allocations: 0.5914 MB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.917e-05/0.2218, allocations: 55.41 kB / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.674e-05/0.2218, allocations: 97.86 kB / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.535e-05/0.2219, allocations: 25.7 kB / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.376e-05/0.2219, allocations: 80.14 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.438e-05/0.2219, allocations: 39.45 kB / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.186e-05/0.222, allocations: 29.7 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.252e-05/0.2221, allocations: 315 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.864e-05/0.2221, allocations: 27.98 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.196e-05/0.2221, allocations: 17.38 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.263e-05/0.2222, allocations: 58.84 kB / 1.092 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.01e-07/0.2222, allocations: 0 / 1.092 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001312/0.2224, allocations: 97.56 kB / 1.092 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.2224, allocations: 8 kB / 1.092 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-06/0.2224, allocations: 320 / 1.092 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.058e-05/0.2224, allocations: 0 / 1.092 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.848e-05/0.2225, allocations: 28.08 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.388e-06/0.2225, allocations: 3.938 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.286e-05/0.2226, allocations: 4 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.207e-06/0.2226, allocations: 7.984 kB / 1.092 GB, free: 12.61 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 6.916e-05/0.2226, allocations: 117.8 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.861e-05/0.2227, allocations: 15.83 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001683/0.2228, allocations: 101.6 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.2229, allocations: 4 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.359e-06/0.2229, allocations: 4 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.2229, allocations: 0 / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003372/0.2232, allocations: 362.4 kB / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.2232, allocations: 0 / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.845e-05/0.2233, allocations: 19.98 kB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.2233, allocations: 0 / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.989e-06/0.2234, allocations: 8 kB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.2234, allocations: 0 / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.2234, allocations: 0 / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002146/0.2236, allocations: 223.3 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.941e-05/0.2236, allocations: 81.14 kB / 1.093 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.424e-05/0.2236, allocations: 0 / 1.093 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.293e-05/0.2237, allocations: 7.938 kB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.776e-05/0.2237, allocations: 7.984 kB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.152e-05/0.2238, allocations: 4 kB / 1.093 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.751e-05/0.2238, allocations: 79.28 kB / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2238, allocations: 0 / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002499/0.2241, allocations: 39.94 kB / 1.093 GB, free: 11.45 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.0004947/0.2246, allocations: 0.7831 MB / 1.094 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001302/0.2247, allocations: 63.91 kB / 1.094 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.2247, allocations: 0 / 1.094 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 4.395e-05/0.2248, allocations: 35.92 kB / 1.094 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002031/0.225, allocations: 5.422 kB / 1.094 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001235/0.2262, allocations: 1.514 MB / 1.096 GB, free: 8.945 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001978/0.2264, allocations: 0.6846 MB / 1.096 GB, free: 8.234 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.035e-05/0.2265, allocations: 11.94 kB / 1.096 GB, free: 8.223 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.991e-05/0.2265, allocations: 23.42 kB / 1.096 GB, free: 8.199 MB / 0.8575 GB Notification: Performance of SimCode: time 3.01e-07/0.2265, allocations: 4 kB / 1.096 GB, free: 8.195 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.323/3.55, allocations: 2.063 MB / 1.099 GB, free: 6.312 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.74/14.29, allocations: 14.81 kB / 1.099 GB, free: 6.301 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[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