Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_DerivativeCheck,fileNamePrefix="Buildings_10_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_10_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.00118/0.00118, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001214/0.001214, allocations: 190.6 kB / 16.25 MB, free: 6.59 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.413/1.413, allocations: 222.9 MB / 239.9 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.694/2.694, allocations: 437 MB / 0.7101 GB, free: 5.238 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 67.89 kB / 0.8689 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8873/0.8885, allocations: 151.6 MB / 1.017 GB, free: 2.719 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002381/0.891, allocations: 1.339 MB / 1.018 GB, free: 1.367 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0009438/0.8919, allocations: 0.5994 MB / 1.019 GB, free: 0.7656 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.564e-05/0.8919, allocations: 0 / 1.019 GB, free: 0.7656 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.138e-05/0.892, allocations: 4 kB / 1.019 GB, free: 0.7617 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 2.605e-05/0.892, allocations: 7.984 kB / 1.019 GB, free: 0.7539 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004211/0.8924, allocations: 143 kB / 1.019 GB, free: 0.6172 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.16e-05/0.8925, allocations: 15.92 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 5.125e-05/0.8926, allocations: 8 kB / 1.019 GB, free: 0.5938 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 3.068e-05/0.8926, allocations: 7.938 kB / 1.019 GB, free: 0.5859 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.379e-05/0.8926, allocations: 11.97 kB / 1.019 GB, free: 0.5742 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.098e-05/0.8927, allocations: 0 / 1.019 GB, free: 0.5742 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004317/0.8931, allocations: 343.3 kB / 1.019 GB, free: 244 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.282e-05/0.8931, allocations: 15.92 kB / 1.019 GB, free: 228 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 1.897e-05/0.8931, allocations: 4 kB / 1.019 GB, free: 224 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0002357/0.8934, allocations: 142 kB / 1.019 GB, free: 84 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 6.321e-06/0.8934, allocations: 7.922 kB / 1.019 GB, free: 76 kB / 0.7637 GB Notification: Performance of FrontEnd: time 8.62e-07/0.8934, allocations: 0 / 1.019 GB, free: 76 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.709e-06/0.8934, allocations: 0 / 1.019 GB, free: 76 kB / 0.7637 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.0003791/0.8938, allocations: 357.5 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.8938, allocations: 15.97 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.357e-05/0.8939, allocations: 30.75 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.178e-05/0.8939, allocations: 0.9375 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001055/0.894, allocations: 180.2 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.606e-06/0.894, allocations: 4.375 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.652e-05/0.8941, allocations: 4.359 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001012/0.8942, allocations: 42.25 kB / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.194e-06/0.8942, allocations: 3.938 kB / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.564e-06/0.8942, allocations: 0 / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.8942, allocations: 0 / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.51e-05/0.8942, allocations: 11.94 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001575/0.8944, allocations: 157.7 kB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001553/0.8946, allocations: 42.61 kB / 1.02 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.617e-05/0.8946, allocations: 20.94 kB / 1.02 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.82e-05/0.8946, allocations: 0 / 1.02 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.487e-05/0.8947, allocations: 38.56 kB / 1.02 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 8.72e-07/0.8947, allocations: 0 / 1.02 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0005821/0.8953, allocations: 310.2 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.648e-05/0.8953, allocations: 51.41 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.108e-05/0.8954, allocations: 101.8 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.498e-05/0.8954, allocations: 25.7 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.045e-05/0.8954, allocations: 84.14 kB / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.794e-05/0.8955, allocations: 19.66 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.512e-05/0.8955, allocations: 25.7 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001022/0.8956, allocations: 310.8 kB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.568e-05/0.8956, allocations: 15.98 kB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.205e-05/0.8957, allocations: 20 kB / 1.021 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.118e-05/0.8957, allocations: 28.86 kB / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.51e-07/0.8957, allocations: 0 / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.424e-05/0.8958, allocations: 77.55 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/0.8959, allocations: 4 kB / 1.021 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.396e-06/0.8959, allocations: 0 / 1.021 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.337e-06/0.8959, allocations: 0 / 1.021 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.883e-05/0.8959, allocations: 15.98 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.8959, allocations: 0 / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.741e-05/0.896, allocations: 4 kB / 1.021 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.203e-06/0.896, allocations: 7.938 kB / 1.021 GB, free: 13.82 MB / 0.7794 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.145e-05/0.8961, allocations: 110.4 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.383e-05/0.8961, allocations: 11.84 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001341/0.8962, allocations: 78.31 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.8962, allocations: 0 / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.8962, allocations: 0 / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.913e-06/0.8962, allocations: 0 / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002928/0.8965, allocations: 319.4 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.111e-06/0.8966, allocations: 7.984 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.504e-05/0.8966, allocations: 8 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.8966, allocations: 0 / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.739e-06/0.8966, allocations: 7.984 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.8966, allocations: 0 / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.8966, allocations: 0 / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001645/0.8968, allocations: 180.5 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.593e-05/0.8969, allocations: 89.03 kB / 1.022 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.261e-05/0.8969, allocations: 4 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.879e-05/0.897, allocations: 4 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.275e-05/0.897, allocations: 4 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.054e-06/0.897, allocations: 7.984 kB / 1.022 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.974e-05/0.897, allocations: 75.28 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.11e-07/0.897, allocations: 0 / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002325/0.8973, allocations: 28.06 kB / 1.022 GB, free: 12.8 MB / 0.7794 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.0004888/0.8978, allocations: 0.7327 MB / 1.023 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001001/0.8979, allocations: 31.98 kB / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.8979, allocations: 0 / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 2.838e-05/0.8979, allocations: 24 kB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002306/0.8982, allocations: 4.562 kB / 1.023 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001082/0.8993, allocations: 1.339 MB / 1.024 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000236/0.8995, allocations: 0.6807 MB / 1.025 GB, free: 9.844 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.814e-05/0.8995, allocations: 7.938 kB / 1.025 GB, free: 9.836 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.936e-05/0.8996, allocations: 15.44 kB / 1.025 GB, free: 9.82 MB / 0.7794 GB Notification: Performance of SimCode: time 2.01e-07/0.8996, allocations: 0 / 1.025 GB, free: 9.82 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01138/0.911, allocations: 1.494 MB / 1.027 GB, free: 8.531 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002619/0.9113, allocations: 250.1 kB / 1.027 GB, free: 8.273 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.874/2.785, allocations: 0 / 1.027 GB, free: 8.273 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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