Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.001243/0.001243, 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.001252/0.001252, allocations: 198.4 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.29/1.29, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.302/2.302, allocations: 390.2 MB / 0.6643 GB, free: 0.5664 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 59.91 kB / 0.812 GB, free: 14.75 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5065/0.5077, allocations: 140.4 MB / 0.949 GB, free: 9.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.001812/0.5096, allocations: 1.333 MB / 0.9503 GB, free: 8.09 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007642/0.5104, allocations: 0.6323 MB / 0.951 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.357e-05/0.5104, allocations: 1.344 kB / 0.951 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.403e-05/0.5104, allocations: 0 / 0.951 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.478e-05/0.5104, allocations: 3.938 kB / 0.951 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003516/0.5108, allocations: 115.4 kB / 0.9511 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.581e-05/0.5108, allocations: 21.7 kB / 0.9511 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.382e-05/0.5109, allocations: 5.438 kB / 0.9511 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.705e-05/0.5109, allocations: 8.172 kB / 0.9511 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.509e-05/0.511, allocations: 10.86 kB / 0.9511 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.188e-06/0.511, allocations: 1.594 kB / 0.9511 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003846/0.5114, allocations: 345.1 kB / 0.9515 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.267e-06/0.5114, allocations: 4 kB / 0.9515 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.216e-05/0.5114, allocations: 8.062 kB / 0.9515 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002023/0.5116, allocations: 150.6 kB / 0.9516 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.5116, allocations: 0 / 0.9516 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.683e-06/0.5116, allocations: 0.9375 kB / 0.9516 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.846e-06/0.5116, allocations: 0 / 0.9516 GB, free: 7.195 MB / 0.7169 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.0002709/0.5119, allocations: 363.5 kB / 0.952 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.286e-05/0.5119, allocations: 12.67 kB / 0.952 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.016e-05/0.512, allocations: 36.41 kB / 0.952 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.211e-05/0.512, allocations: 2.156 kB / 0.952 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.729e-05/0.5121, allocations: 165.4 kB / 0.9522 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.063e-06/0.5121, allocations: 1.688 kB / 0.9522 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.581e-05/0.5121, allocations: 2.906 kB / 0.9522 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.869e-05/0.5122, allocations: 48.48 kB / 0.9522 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.992e-06/0.5122, allocations: 7.938 kB / 0.9522 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.314e-06/0.5122, allocations: 0 / 0.9522 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-06/0.5122, allocations: 5.156 kB / 0.9522 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.315e-05/0.5122, allocations: 14.33 kB / 0.9522 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.994e-05/0.5124, allocations: 163.2 kB / 0.9524 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001453/0.5125, allocations: 39.62 kB / 0.9524 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.746e-05/0.5125, allocations: 15.42 kB / 0.9525 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.539e-05/0.5126, allocations: 5.531 kB / 0.9525 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.253e-05/0.5126, allocations: 39.97 kB / 0.9525 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.052e-06/0.5126, allocations: 0 / 0.9525 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0004667/0.5131, allocations: 307.7 kB / 0.9528 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.53e-05/0.5131, allocations: 51.41 kB / 0.9528 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.554e-05/0.5131, allocations: 101.9 kB / 0.9529 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.765e-06/0.5131, allocations: 27.3 kB / 0.953 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.238e-05/0.5131, allocations: 84.14 kB / 0.953 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.056e-05/0.5132, allocations: 26.27 kB / 0.9531 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.734e-05/0.5132, allocations: 19.38 kB / 0.9531 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.104e-05/0.5132, allocations: 310.8 kB / 0.9534 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.308e-05/0.5133, allocations: 14.89 kB / 0.9534 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.973e-05/0.5133, allocations: 10.41 kB / 0.9534 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.824e-05/0.5133, allocations: 40.03 kB / 0.9534 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.5134, allocations: 5.391 kB / 0.9534 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.201e-05/0.5134, allocations: 67.91 kB / 0.9535 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.02e-05/0.5135, allocations: 5.469 kB / 0.9535 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.317e-06/0.5135, allocations: 0 / 0.9535 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.5135, allocations: 5.547 kB / 0.9535 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.727e-05/0.5135, allocations: 9.781 kB / 0.9535 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.5135, allocations: 0 / 0.9535 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.632e-05/0.5136, allocations: 0 / 0.9535 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.029e-06/0.5136, allocations: 2.156 kB / 0.9535 GB, free: 5.16 MB / 0.7169 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 4.046e-05/0.5136, allocations: 112.5 kB / 0.9536 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.157e-05/0.5136, allocations: 12.94 kB / 0.9537 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001236/0.5138, allocations: 75.11 kB / 0.9537 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.5138, allocations: 1.703 kB / 0.9537 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.5138, allocations: 0 / 0.9537 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.5138, allocations: 0 / 0.9537 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002004/0.514, allocations: 316.7 kB / 0.954 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.514, allocations: 0 / 0.954 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.833e-05/0.5141, allocations: 18.55 kB / 0.954 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.5141, allocations: 5.266 kB / 0.9541 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.104e-06/0.5141, allocations: 9.25 kB / 0.9541 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.5141, allocations: 0 / 0.9541 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.5141, allocations: 1.406 kB / 0.9541 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001278/0.5142, allocations: 180.9 kB / 0.9542 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.407e-05/0.5143, allocations: 79.42 kB / 0.9543 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.106e-05/0.5143, allocations: 1.344 kB / 0.9543 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.091e-05/0.5143, allocations: 10.66 kB / 0.9543 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.654e-05/0.5144, allocations: 5.266 kB / 0.9543 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.17e-06/0.5144, allocations: 2.75 kB / 0.9543 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.729e-05/0.5144, allocations: 78.09 kB / 0.9544 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5144, allocations: 0 / 0.9544 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002342/0.5146, allocations: 23.47 kB / 0.9544 GB, free: 4.254 MB / 0.7169 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.0002995/0.5149, allocations: 0.7433 MB / 0.9552 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 8.15e-05/0.515, allocations: 35.75 kB / 0.9552 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.515, allocations: 1.125 kB / 0.9552 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.584e-05/0.5151, allocations: 18.38 kB / 0.9552 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002084/0.5153, allocations: 9.797 kB / 0.9552 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007629/0.5161, allocations: 1.334 MB / 0.9565 GB, free: 2.199 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.76e-05/0.5162, allocations: 0.6795 MB / 0.9572 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.824e-05/0.5162, allocations: 11.02 kB / 0.9572 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.256e-05/0.5162, allocations: 15.75 kB / 0.9572 GB, free: 1.48 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.5162, allocations: 0 / 0.9572 GB, free: 1.48 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4913/1.008, allocations: 1.445 MB / 0.9586 GB, free: 0.8086 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001491/1.008, allocations: 237.5 kB / 0.9588 GB, free: 0.5586 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.571/2.578, allocations: 4 kB / 0.9588 GB, free: 0.5547 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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