Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.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_DerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",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.001079/0.001079, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 193.8 kB / 16.53 MB, free: 6.664 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.318/1.318, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.622/2.622, allocations: 461.9 MB / 0.7346 GB, free: 14.77 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001442/0.001442, allocations: 66.45 kB / 0.8992 GB, free: 36.88 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2472/0.2487, allocations: 157.4 MB / 1.053 GB, free: 8.316 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002429/0.2512, allocations: 1.282 MB / 1.054 GB, free: 7.02 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009927/0.2522, allocations: 0.611 MB / 1.055 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.547e-05/0.2522, allocations: 0 / 1.055 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.672e-05/0.2523, allocations: 0 / 1.055 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.044e-05/0.2523, allocations: 7.922 kB / 1.055 GB, free: 6.398 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005606/0.2529, allocations: 147.4 kB / 1.055 GB, free: 6.254 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.249e-05/0.2529, allocations: 19.92 kB / 1.055 GB, free: 6.234 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.193e-05/0.253, allocations: 4 kB / 1.055 GB, free: 6.23 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.305e-05/0.253, allocations: 19.92 kB / 1.055 GB, free: 6.211 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.614e-05/0.2531, allocations: 11.92 kB / 1.055 GB, free: 6.199 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.313e-05/0.2531, allocations: 4 kB / 1.055 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005015/0.2536, allocations: 339.3 kB / 1.055 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.451e-05/0.2536, allocations: 7.984 kB / 1.055 GB, free: 5.855 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.18e-05/0.2537, allocations: 7.938 kB / 1.055 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002654/0.2539, allocations: 140 kB / 1.055 GB, free: 5.711 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.022e-06/0.254, allocations: 3.984 kB / 1.055 GB, free: 5.707 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.453e-06/0.254, allocations: 0 / 1.055 GB, free: 5.707 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.649e-06/0.254, allocations: 0 / 1.055 GB, free: 5.707 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004024/0.2544, allocations: 367.4 kB / 1.056 GB, free: 5.297 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.2544, allocations: 8.031 kB / 1.056 GB, free: 5.289 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.312e-05/0.2545, allocations: 34.75 kB / 1.056 GB, free: 5.246 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.465e-05/0.2545, allocations: 4.875 kB / 1.056 GB, free: 5.242 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001059/0.2546, allocations: 168.3 kB / 1.056 GB, free: 5.039 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.086e-05/0.2546, allocations: 4.375 kB / 1.056 GB, free: 5.035 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.529e-05/0.2546, allocations: 384 / 1.056 GB, free: 5.035 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.575e-05/0.2547, allocations: 42.25 kB / 1.056 GB, free: 4.988 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.2548, allocations: 3.938 kB / 1.056 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.685e-06/0.2548, allocations: 4 kB / 1.056 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.938e-06/0.2548, allocations: 0 / 1.056 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.863e-05/0.2548, allocations: 11.94 kB / 1.056 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001558/0.255, allocations: 157.7 kB / 1.056 GB, free: 4.766 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001752/0.2552, allocations: 42.61 kB / 1.056 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.534e-05/0.2552, allocations: 20.94 kB / 1.056 GB, free: 4.691 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.059e-05/0.2552, allocations: 3.984 kB / 1.056 GB, free: 4.688 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.773e-05/0.2553, allocations: 34.56 kB / 1.056 GB, free: 4.645 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 1.172e-06/0.2553, allocations: 4 kB / 1.056 GB, free: 4.641 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0005958/0.2559, allocations: 318.4 kB / 1.057 GB, free: 4.277 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.298e-05/0.2559, allocations: 51.41 kB / 1.057 GB, free: 4.215 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.708e-05/0.256, allocations: 101.8 kB / 1.057 GB, free: 4.105 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.434e-05/0.256, allocations: 25.7 kB / 1.057 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.204e-05/0.2561, allocations: 88.14 kB / 1.057 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.429e-05/0.2561, allocations: 15.72 kB / 1.057 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.178e-05/0.2561, allocations: 21.7 kB / 1.057 GB, free: 3.941 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.925e-05/0.2562, allocations: 318.8 kB / 1.057 GB, free: 3.621 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.716e-05/0.2563, allocations: 11.98 kB / 1.057 GB, free: 3.609 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.055e-05/0.2563, allocations: 8 kB / 1.057 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.657e-05/0.2564, allocations: 32.86 kB / 1.057 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.82e-07/0.2564, allocations: 0 / 1.057 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000103/0.2565, allocations: 73.55 kB / 1.057 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/0.2565, allocations: 11.94 kB / 1.057 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.2565, allocations: 0 / 1.057 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.051e-05/0.2565, allocations: 0 / 1.057 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.062e-05/0.2566, allocations: 15.98 kB / 1.057 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/0.2566, allocations: 0 / 1.057 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.068e-05/0.2566, allocations: 4 kB / 1.057 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.218e-06/0.2566, allocations: 0 / 1.057 GB, free: 3.457 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 (7): * Single equations (assignments): 7 * 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.402e-05/0.2567, allocations: 109.8 kB / 1.057 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.71e-05/0.2567, allocations: 7.844 kB / 1.057 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001345/0.2569, allocations: 85.58 kB / 1.058 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.2569, allocations: 0 / 1.058 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.2569, allocations: 0 / 1.058 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.2569, allocations: 3.938 kB / 1.058 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002973/0.2572, allocations: 311.4 kB / 1.058 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.2572, allocations: 0 / 1.058 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.404e-05/0.2573, allocations: 12 kB / 1.058 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.2573, allocations: 0 / 1.058 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.2573, allocations: 3.984 kB / 1.058 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.2573, allocations: 8.031 kB / 1.058 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.2573, allocations: 0 / 1.058 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001779/0.2575, allocations: 180.5 kB / 1.058 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.939e-05/0.2576, allocations: 93.03 kB / 1.058 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.268e-05/0.2576, allocations: 0 / 1.058 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.345e-05/0.2577, allocations: 0 / 1.058 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.814e-05/0.2577, allocations: 8.062 kB / 1.058 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.614e-06/0.2577, allocations: 7.984 kB / 1.058 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.931e-05/0.2577, allocations: 79.28 kB / 1.058 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2577, allocations: 0 / 1.058 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002554/0.258, allocations: 23.94 kB / 1.058 GB, free: 2.43 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (6): * Single equations (assignments): 6 * 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.0004845/0.2585, allocations: 0.733 MB / 1.059 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000103/0.2586, allocations: 35.97 kB / 1.059 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.2586, allocations: 0 / 1.059 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 2.95e-05/0.2587, allocations: 19.94 kB / 1.059 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000221/0.2589, allocations: 4 kB / 1.059 GB, free: 1.609 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001172/0.2601, allocations: 1.326 MB / 1.06 GB, free: 208 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000259/0.2603, allocations: 0.6807 MB / 1.061 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.076e-05/0.2604, allocations: 8 kB / 1.061 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.272e-05/0.2604, allocations: 15.44 kB / 1.061 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of SimCode: time 2.9e-07/0.2604, allocations: 0 / 1.061 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01855/0.279, allocations: 1.577 MB / 1.063 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.139/8.418, allocations: 7.891 kB / 1.063 GB, free: 14.05 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.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 Variables in the result:der(dp),der(m_flow),der(m_flow_comp),dp,err,k,m_flow,m_flow_comp,m_flow_turbulent,time