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.001526/0.001526, 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.001701/0.001701, allocations: 196 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.326/1.326, allocations: 222.9 MB / 240.2 MB, free: 4.398 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.45/2.45, allocations: 437.1 MB / 0.7104 GB, free: 5.082 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 63.91 kB / 0.8694 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5007/0.502, allocations: 151.6 MB / 1.017 GB, free: 2.469 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002322/0.5043, allocations: 1.272 MB / 1.019 GB, free: 1.184 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0009247/0.5053, allocations: 0.6111 MB / 1.019 GB, free: 0.5703 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.193e-05/0.5053, allocations: 0 / 1.019 GB, free: 0.5703 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.377e-05/0.5053, allocations: 0 / 1.019 GB, free: 0.5703 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.071e-05/0.5054, allocations: 7.938 kB / 1.019 GB, free: 0.5625 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005186/0.5059, allocations: 151.3 kB / 1.019 GB, free: 424 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 4.684e-05/0.506, allocations: 19.92 kB / 1.019 GB, free: 404 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.969e-05/0.506, allocations: 4 kB / 1.019 GB, free: 400 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 3.648e-05/0.5061, allocations: 11.94 kB / 1.019 GB, free: 388 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.178e-05/0.5061, allocations: 7.984 kB / 1.019 GB, free: 380 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.124e-05/0.5061, allocations: 0 / 1.019 GB, free: 380 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004737/0.5066, allocations: 347.3 kB / 1.02 GB, free: 32 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.187e-05/0.5066, allocations: 3.938 kB / 1.02 GB, free: 28 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.2e-05/0.5067, allocations: 8 kB / 1.02 GB, free: 20 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0002602/0.5069, allocations: 146 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.5069, allocations: 0 / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.273e-06/0.5069, allocations: 0 / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.208e-06/0.507, allocations: 4 kB / 1.02 GB, free: 15.87 MB / 0.7794 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.00036/0.5073, allocations: 363.2 kB / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.5074, allocations: 8.031 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.118e-05/0.5074, allocations: 34.75 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.456e-05/0.5074, allocations: 0.9375 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.99e-05/0.5075, allocations: 172.2 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.041e-05/0.5075, allocations: 8.375 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.812e-05/0.5076, allocations: 4.312 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.657e-05/0.5077, allocations: 46.25 kB / 1.021 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.5077, allocations: 3.938 kB / 1.021 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.115e-06/0.5077, allocations: 0 / 1.021 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.5077, allocations: 0 / 1.021 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.75e-05/0.5077, allocations: 8 kB / 1.021 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001441/0.5079, allocations: 157.7 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001632/0.5081, allocations: 42.55 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.622e-05/0.5081, allocations: 24.92 kB / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.426e-05/0.5081, allocations: 4 kB / 1.021 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.132e-05/0.5082, allocations: 34.56 kB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.5082, allocations: 0 / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.000566/0.5087, allocations: 306.2 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.763e-05/0.5088, allocations: 51.41 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.497e-05/0.5088, allocations: 101.8 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.339e-05/0.5089, allocations: 29.7 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.01e-05/0.5089, allocations: 88.12 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.514e-05/0.5089, allocations: 19.66 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.48e-05/0.509, allocations: 25.7 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.61e-05/0.5091, allocations: 310.8 kB / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.632e-05/0.5091, allocations: 8 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.484e-05/0.5091, allocations: 19.92 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.438e-05/0.5092, allocations: 32.8 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.61e-07/0.5092, allocations: 4 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.71e-05/0.5093, allocations: 69.62 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.165e-05/0.5093, allocations: 4 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.5093, allocations: 64 / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.5093, allocations: 4 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.526e-05/0.5094, allocations: 15.98 kB / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.5094, allocations: 3.938 kB / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.708e-05/0.5094, allocations: 0 / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.402e-06/0.5094, allocations: 0 / 1.022 GB, free: 13.63 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 6.299e-05/0.5095, allocations: 121.8 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.457e-05/0.5095, allocations: 7.844 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001257/0.5097, allocations: 69.66 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.5097, allocations: 3.984 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.5097, allocations: 0 / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.5097, allocations: 0 / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002795/0.51, allocations: 315.3 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.51, allocations: 4 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.959e-05/0.5101, allocations: 12 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.5101, allocations: 4.031 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.997e-06/0.5101, allocations: 4 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.549e-06/0.5101, allocations: 4.219 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.5101, allocations: 3.938 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00017/0.5103, allocations: 176.3 kB / 1.023 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.475e-05/0.5103, allocations: 89.03 kB / 1.023 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.241e-05/0.5104, allocations: 64 / 1.023 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.271e-05/0.5104, allocations: 8 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.678e-05/0.5105, allocations: 4 kB / 1.023 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-06/0.5105, allocations: 4.188 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.06e-05/0.5105, allocations: 79.78 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.9e-07/0.5105, allocations: 0 / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002486/0.5108, allocations: 20 kB / 1.023 GB, free: 12.61 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.0004655/0.5112, allocations: 0.7444 MB / 1.023 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 9.681e-05/0.5113, allocations: 35.92 kB / 1.024 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.5113, allocations: 0 / 1.024 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 2.826e-05/0.5114, allocations: 16 kB / 1.024 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002174/0.5116, allocations: 4.562 kB / 1.024 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001191/0.5128, allocations: 1.338 MB / 1.025 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002434/0.5131, allocations: 0.6807 MB / 1.025 GB, free: 9.645 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.768e-05/0.5131, allocations: 4.062 kB / 1.025 GB, free: 9.641 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.847e-05/0.5131, allocations: 15.44 kB / 1.026 GB, free: 9.625 MB / 0.7794 GB Notification: Performance of SimCode: time 2.61e-07/0.5131, allocations: 0 / 1.026 GB, free: 9.625 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01852/0.5317, allocations: 1.575 MB / 1.027 GB, free: 8.211 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.188/9.719, allocations: 4.391 kB / 1.027 GB, free: 8.207 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