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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.0008332/0.0008333, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.005511/0.005511, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.381/1.381, allocations: 223.3 MB / 240.3 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.665/2.665, allocations: 462.7 MB / 0.7364 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003158/0.0003158, allocations: 8.656 kB / 0.9029 GB, free: 36.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2686/0.269, allocations: 159.6 MB / 1.059 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.001344/0.2704, allocations: 1.002 MB / 1.06 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001075/0.2715, allocations: 0.6229 MB / 1.06 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.53e-05/0.2715, allocations: 0 / 1.06 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.591e-05/0.2715, allocations: 0 / 1.06 GB, free: 3.215 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.226e-05/0.2716, allocations: 7.922 kB / 1.06 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000485/0.2721, allocations: 122.2 kB / 1.06 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.673e-05/0.2721, allocations: 15.94 kB / 1.061 GB, free: 3.074 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.147e-05/0.2722, allocations: 7.984 kB / 1.061 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.943e-05/0.2722, allocations: 15.92 kB / 1.061 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.442e-05/0.2723, allocations: 8 kB / 1.061 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.189e-05/0.2723, allocations: 0 / 1.061 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004844/0.2728, allocations: 343.3 kB / 1.061 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.314e-05/0.2728, allocations: 7.969 kB / 1.061 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.312e-05/0.2728, allocations: 33.64 kB / 1.061 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002462/0.2731, allocations: 140 kB / 1.061 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.2731, allocations: 4 kB / 1.061 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.222e-06/0.2731, allocations: 0 / 1.061 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.697e-06/0.2731, allocations: 0 / 1.061 GB, free: 2.52 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.0003836/0.2735, allocations: 363.4 kB / 1.061 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.2735, allocations: 8.031 kB / 1.061 GB, free: 2.105 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.482e-05/0.2736, allocations: 34.75 kB / 1.061 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.425e-05/0.2736, allocations: 0.9375 kB / 1.061 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001025/0.2737, allocations: 164.3 kB / 1.062 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.2737, allocations: 8.375 kB / 1.062 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.816e-05/0.2738, allocations: 384 / 1.062 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.846e-05/0.2739, allocations: 46.19 kB / 1.062 GB, free: 1.805 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.2739, allocations: 3.938 kB / 1.062 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.245e-06/0.2739, allocations: 4 kB / 1.062 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.2739, allocations: 0 / 1.062 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.787e-05/0.2739, allocations: 11.98 kB / 1.062 GB, free: 1.785 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001848/0.2741, allocations: 161.7 kB / 1.062 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001714/0.2743, allocations: 38.56 kB / 1.062 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.212e-05/0.2744, allocations: 16.86 kB / 1.062 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.968e-05/0.2744, allocations: 3.938 kB / 1.062 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.263e-05/0.2744, allocations: 42.58 kB / 1.062 GB, free: 1.457 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 1.072e-06/0.2744, allocations: 4 kB / 1.062 GB, free: 1.453 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0005993/0.275, allocations: 310.4 kB / 1.062 GB, free: 1.098 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.9e-05/0.2751, allocations: 51.41 kB / 1.062 GB, free: 1.035 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.804e-05/0.2751, allocations: 97.86 kB / 1.062 GB, free: 0.9297 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.423e-05/0.2751, allocations: 29.69 kB / 1.062 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.96e-05/0.2752, allocations: 84.14 kB / 1.062 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.648e-05/0.2752, allocations: 19.72 kB / 1.062 GB, free: 0.7891 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.29e-05/0.2752, allocations: 9.719 kB / 1.062 GB, free: 0.7734 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001003/0.2753, allocations: 322.8 kB / 1.063 GB, free: 460 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.344e-05/0.2754, allocations: 8 kB / 1.063 GB, free: 452 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.052e-05/0.2754, allocations: 8 kB / 1.063 GB, free: 444 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.819e-05/0.2755, allocations: 40.98 kB / 1.063 GB, free: 400 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.2755, allocations: 0 / 1.063 GB, free: 400 kB / 0.8106 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.901e-05/0.2756, allocations: 69.56 kB / 1.063 GB, free: 324 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.2756, allocations: 11.98 kB / 1.063 GB, free: 312 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.2756, allocations: 0 / 1.063 GB, free: 312 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.838e-06/0.2756, allocations: 3.938 kB / 1.063 GB, free: 308 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.21e-05/0.2757, allocations: 12 kB / 1.063 GB, free: 296 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.2757, allocations: 0 / 1.063 GB, free: 296 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.979e-05/0.2757, allocations: 4 kB / 1.063 GB, free: 292 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.709e-06/0.2757, allocations: 0 / 1.063 GB, free: 292 kB / 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.728e-05/0.2758, allocations: 109.8 kB / 1.063 GB, free: 172 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.3e-05/0.2758, allocations: 7.844 kB / 1.063 GB, free: 164 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000134/0.276, allocations: 89.64 kB / 1.063 GB, free: 68 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.276, allocations: 0 / 1.063 GB, free: 68 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.276, allocations: 0 / 1.063 GB, free: 68 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.276, allocations: 0 / 1.063 GB, free: 68 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003136/0.2763, allocations: 311.4 kB / 1.063 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2763, allocations: 0 / 1.063 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.326e-05/0.2764, allocations: 15.98 kB / 1.063 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.2764, allocations: 0 / 1.063 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.156e-06/0.2764, allocations: 4 kB / 1.063 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.2764, allocations: 4.031 kB / 1.063 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.2764, allocations: 0 / 1.063 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000174/0.2766, allocations: 180.3 kB / 1.064 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.823e-05/0.2767, allocations: 85.05 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.375e-05/0.2767, allocations: 4 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.07e-05/0.2768, allocations: 4 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.682e-05/0.2768, allocations: 11.98 kB / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.892e-06/0.2768, allocations: 4 kB / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.339e-05/0.2768, allocations: 75.28 kB / 1.064 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2768, allocations: 0 / 1.064 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000252/0.2771, allocations: 27.94 kB / 1.064 GB, free: 15.26 MB / 0.8262 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.0004977/0.2776, allocations: 0.7328 MB / 1.065 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 9.356e-05/0.2777, allocations: 31.98 kB / 1.065 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2777, allocations: 0 / 1.065 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.917e-05/0.2777, allocations: 20.19 kB / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002244/0.278, allocations: 16.48 kB / 1.065 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001157/0.2791, allocations: 1.356 MB / 1.066 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003168/0.2795, allocations: 0.6809 MB / 1.067 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.243e-05/0.2795, allocations: 12.3 kB / 1.067 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.98e-05/0.2795, allocations: 11.44 kB / 1.067 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of SimCode: time 3.8e-07/0.2795, allocations: 0 / 1.067 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01091/0.2905, allocations: 1.381 MB / 1.068 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001901/0.2907, allocations: 253.5 kB / 1.068 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.715/2.006, allocations: 1.562 kB / 1.068 GB, free: 10.82 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