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.001291/0.001291, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001336/0.001336, allocations: 197.8 kB / 16.14 MB, free: 6.648 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.398/1.398, allocations: 222.9 MB / 239.8 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.634/2.634, allocations: 461.8 MB / 0.7342 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 68.64 kB / 0.8985 GB, free: 36.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2819/0.2831, allocations: 157.4 MB / 1.052 GB, free: 8.215 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002433/0.2856, allocations: 1.339 MB / 1.054 GB, free: 6.859 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001021/0.2866, allocations: 0.6307 MB / 1.054 GB, free: 6.227 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.734e-05/0.2867, allocations: 0 / 1.054 GB, free: 6.227 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.817e-05/0.2867, allocations: 0 / 1.054 GB, free: 6.227 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.456e-05/0.2868, allocations: 4 kB / 1.054 GB, free: 6.223 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005003/0.2873, allocations: 130.4 kB / 1.054 GB, free: 6.098 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.884e-05/0.2873, allocations: 15.94 kB / 1.054 GB, free: 6.082 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.963e-05/0.2874, allocations: 3.938 kB / 1.054 GB, free: 6.078 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.533e-05/0.2874, allocations: 11.92 kB / 1.054 GB, free: 6.066 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.337e-05/0.2875, allocations: 4 kB / 1.054 GB, free: 6.062 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.337e-05/0.2875, allocations: 4 kB / 1.054 GB, free: 6.059 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005117/0.288, allocations: 351.2 kB / 1.055 GB, free: 5.715 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.4e-05/0.288, allocations: 4 kB / 1.055 GB, free: 5.711 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.044e-05/0.2881, allocations: 11.92 kB / 1.055 GB, free: 5.699 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002717/0.2883, allocations: 140 kB / 1.055 GB, free: 5.562 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2884, allocations: 3.938 kB / 1.055 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.072e-06/0.2884, allocations: 0 / 1.055 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.197e-06/0.2884, allocations: 0 / 1.055 GB, free: 5.559 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.0004033/0.2888, allocations: 363.4 kB / 1.055 GB, free: 5.152 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.2888, allocations: 16.03 kB / 1.055 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.234e-05/0.2889, allocations: 30.75 kB / 1.055 GB, free: 5.098 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.873e-05/0.2889, allocations: 4.938 kB / 1.055 GB, free: 5.094 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001174/0.289, allocations: 168.3 kB / 1.055 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.997e-06/0.289, allocations: 384 / 1.055 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.806e-05/0.2891, allocations: 384 / 1.055 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001091/0.2892, allocations: 46.23 kB / 1.055 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.2892, allocations: 3.938 kB / 1.055 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.959e-06/0.2892, allocations: 0 / 1.055 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.2892, allocations: 4 kB / 1.055 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.325e-05/0.2893, allocations: 23.92 kB / 1.055 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000161/0.2894, allocations: 153.7 kB / 1.056 GB, free: 4.609 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000176/0.2896, allocations: 38.56 kB / 1.056 GB, free: 4.562 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.323e-05/0.2897, allocations: 16.86 kB / 1.056 GB, free: 4.543 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.635e-05/0.2897, allocations: 0 / 1.056 GB, free: 4.543 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.262e-05/0.2897, allocations: 38.56 kB / 1.056 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 9.21e-07/0.2897, allocations: 4 kB / 1.056 GB, free: 4.492 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0006271/0.2904, allocations: 314.2 kB / 1.056 GB, free: 4.133 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.196e-05/0.2904, allocations: 51.41 kB / 1.056 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.937e-05/0.2905, allocations: 97.86 kB / 1.056 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.343e-05/0.2905, allocations: 25.7 kB / 1.056 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.629e-05/0.2905, allocations: 84.14 kB / 1.056 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.006e-05/0.2906, allocations: 23.69 kB / 1.056 GB, free: 3.824 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.596e-05/0.2906, allocations: 25.72 kB / 1.056 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001026/0.2907, allocations: 314.8 kB / 1.057 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.699e-05/0.2907, allocations: 8 kB / 1.057 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.312e-05/0.2908, allocations: 12 kB / 1.057 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.502e-05/0.2908, allocations: 32.84 kB / 1.057 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.81e-07/0.2909, allocations: 3.938 kB / 1.057 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001048/0.291, allocations: 69.58 kB / 1.057 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.291, allocations: 7.984 kB / 1.057 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.291, allocations: 0 / 1.057 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.668e-06/0.291, allocations: 7.938 kB / 1.057 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.243e-05/0.2911, allocations: 12 kB / 1.057 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.08e-06/0.2911, allocations: 0 / 1.057 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.837e-05/0.2911, allocations: 0 / 1.057 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.963e-06/0.2911, allocations: 4 kB / 1.057 GB, free: 3.312 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 7.914e-05/0.2912, allocations: 109.8 kB / 1.057 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.7e-05/0.2912, allocations: 11.84 kB / 1.057 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001374/0.2914, allocations: 73.58 kB / 1.057 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-06/0.2914, allocations: 4.516 kB / 1.057 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.2914, allocations: 0 / 1.057 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.2914, allocations: 0 / 1.057 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003136/0.2917, allocations: 323.5 kB / 1.057 GB, free: 2.727 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.2917, allocations: 4 kB / 1.057 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.276e-05/0.2918, allocations: 11.98 kB / 1.057 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.2918, allocations: 0 / 1.057 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.091e-05/0.2918, allocations: 7.984 kB / 1.057 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.2918, allocations: 0 / 1.057 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.2918, allocations: 4.031 kB / 1.057 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001873/0.292, allocations: 184.3 kB / 1.057 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.161e-05/0.2921, allocations: 85.05 kB / 1.057 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.388e-05/0.2921, allocations: 0 / 1.057 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.664e-05/0.2922, allocations: 8 kB / 1.057 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.807e-05/0.2922, allocations: 3.984 kB / 1.057 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.372e-06/0.2922, allocations: 4 kB / 1.058 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.443e-05/0.2923, allocations: 79.34 kB / 1.058 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2923, allocations: 0 / 1.058 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002538/0.2925, allocations: 27.94 kB / 1.058 GB, free: 2.277 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.0005059/0.293, allocations: 0.7328 MB / 1.058 GB, free: 1.516 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 9.452e-05/0.2931, allocations: 31.98 kB / 1.058 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2932, allocations: 0 / 1.058 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 3.225e-05/0.2932, allocations: 23.92 kB / 1.058 GB, free: 1.461 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002212/0.2934, allocations: 4 kB / 1.058 GB, free: 1.457 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001181/0.2946, allocations: 1.337 MB / 1.06 GB, free: 36 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002473/0.2949, allocations: 0.6809 MB / 1.06 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.346e-05/0.2949, allocations: 8.062 kB / 1.06 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.689e-05/0.2949, allocations: 19.42 kB / 1.06 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of SimCode: time 3.4e-07/0.295, allocations: 7.938 kB / 1.06 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01145/0.3064, allocations: 1.438 MB / 1.062 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000196/0.3066, allocations: 257.2 kB / 1.062 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.681/1.988, allocations: 0 / 1.062 GB, free: 13.77 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