Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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_DerivativeCheck2,fileNamePrefix="Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",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.001123/0.001123, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.008803/0.008804, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.362/1.362, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.592/2.592, allocations: 437.8 MB / 0.7121 GB, free: 6.996 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003666/0.0003664, allocations: 16 kB / 0.8729 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6054/0.6058, allocations: 153.8 MB / 1.023 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.001188/0.6071, allocations: 1.016 MB / 1.024 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0009709/0.608, allocations: 0.6152 MB / 1.025 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.455e-05/0.6081, allocations: 0 / 1.025 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.225e-05/0.6081, allocations: 0 / 1.025 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 3.386e-05/0.6081, allocations: 0 / 1.025 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004438/0.6086, allocations: 131.6 kB / 1.025 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.26e-05/0.6086, allocations: 27.86 kB / 1.025 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.611e-05/0.6087, allocations: 0 / 1.025 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 2.691e-05/0.6087, allocations: 19.92 kB / 1.025 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.365e-05/0.6088, allocations: 15.92 kB / 1.025 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.333e-05/0.6088, allocations: 4 kB / 1.025 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004794/0.6093, allocations: 335.3 kB / 1.025 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.86e-05/0.6093, allocations: 11.97 kB / 1.025 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.095e-05/0.6094, allocations: 41.64 kB / 1.025 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002382/0.6096, allocations: 150 kB / 1.025 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.6096, allocations: 0 / 1.025 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.956e-06/0.6096, allocations: 4 kB / 1.025 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.939e-06/0.6096, allocations: 3.938 kB / 1.025 GB, free: 13.61 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004093/0.6101, allocations: 372.9 kB / 1.026 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.6101, allocations: 8.031 kB / 1.026 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.451e-05/0.6101, allocations: 30.75 kB / 1.026 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.82e-05/0.6102, allocations: 4.938 kB / 1.026 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001169/0.6103, allocations: 160.4 kB / 1.026 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.39e-05/0.6103, allocations: 8.375 kB / 1.026 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.342e-05/0.6104, allocations: 4.281 kB / 1.026 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001258/0.6105, allocations: 62.16 kB / 1.026 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.6105, allocations: 3.938 kB / 1.026 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/0.6105, allocations: 4 kB / 1.026 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.6105, allocations: 4 kB / 1.026 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.474e-05/0.6106, allocations: 19.92 kB / 1.026 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001749/0.6108, allocations: 161.7 kB / 1.026 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001124/0.6109, allocations: 58.56 kB / 1.026 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.491e-05/0.6109, allocations: 28.84 kB / 1.026 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.162e-05/0.611, allocations: 0 / 1.026 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.867e-05/0.611, allocations: 42.56 kB / 1.026 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 7.52e-07/0.611, allocations: 0 / 1.026 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.001163/0.6122, allocations: 0.6033 MB / 1.027 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.471e-05/0.6122, allocations: 51.41 kB / 1.027 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.676e-05/0.6123, allocations: 101.8 kB / 1.027 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.912e-05/0.6123, allocations: 29.7 kB / 1.027 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.275e-05/0.6124, allocations: 80.14 kB / 1.027 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.918e-05/0.6124, allocations: 35.45 kB / 1.027 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.437e-05/0.6125, allocations: 17.72 kB / 1.027 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001012/0.6126, allocations: 322.8 kB / 1.028 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.053e-05/0.6126, allocations: 16.09 kB / 1.028 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.763e-05/0.6127, allocations: 27.92 kB / 1.028 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.702e-05/0.6127, allocations: 56.23 kB / 1.028 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.31e-07/0.6128, allocations: 0 / 1.028 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001457/0.6129, allocations: 105.5 kB / 1.028 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.6129, allocations: 8 kB / 1.028 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.6129, allocations: 0 / 1.028 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.035e-05/0.613, allocations: 0 / 1.028 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001017/0.6131, allocations: 19.98 kB / 1.028 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.6131, allocations: 4 kB / 1.028 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.562e-05/0.6131, allocations: 4 kB / 1.028 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.155e-06/0.6131, allocations: 4 kB / 1.028 GB, free: 10.88 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 (13): * Single equations (assignments): 13 * 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.208e-05/0.6132, allocations: 114.4 kB / 1.028 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.852e-05/0.6132, allocations: 15.84 kB / 1.028 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001863/0.6134, allocations: 109.5 kB / 1.028 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.6134, allocations: 7.984 kB / 1.028 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.6135, allocations: 0 / 1.028 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.6135, allocations: 0 / 1.028 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003853/0.6138, allocations: 358.4 kB / 1.028 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.6139, allocations: 4 kB / 1.028 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001018/0.614, allocations: 16 kB / 1.028 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.614, allocations: 0 / 1.028 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.614, allocations: 7.984 kB / 1.028 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.614, allocations: 0 / 1.028 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.614, allocations: 0 / 1.028 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002344/0.6142, allocations: 211.4 kB / 1.029 GB, free: 9.961 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.572e-05/0.6143, allocations: 85.05 kB / 1.029 GB, free: 9.859 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.558e-05/0.6143, allocations: 8.062 kB / 1.029 GB, free: 9.852 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.379e-05/0.6144, allocations: 3.984 kB / 1.029 GB, free: 9.848 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.633e-05/0.6144, allocations: 4 kB / 1.029 GB, free: 9.844 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.628e-06/0.6144, allocations: 11.94 kB / 1.029 GB, free: 9.832 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.721e-05/0.6145, allocations: 79.28 kB / 1.029 GB, free: 9.754 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6145, allocations: 0 / 1.029 GB, free: 9.754 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002577/0.6147, allocations: 39.92 kB / 1.029 GB, free: 9.715 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_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 (11): * Single equations (assignments): 11 * 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.0005752/0.6153, allocations: 0.7788 MB / 1.03 GB, free: 8.906 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001433/0.6155, allocations: 63.92 kB / 1.03 GB, free: 8.844 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.6155, allocations: 3.938 kB / 1.03 GB, free: 8.84 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 4.875e-05/0.6155, allocations: 36.47 kB / 1.03 GB, free: 8.805 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002195/0.6158, allocations: 8 kB / 1.03 GB, free: 8.797 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001416/0.6172, allocations: 1.556 MB / 1.031 GB, free: 7.164 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000273/0.6175, allocations: 0.6848 MB / 1.032 GB, free: 6.453 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.538e-05/0.6175, allocations: 7.984 kB / 1.032 GB, free: 6.445 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.938e-05/0.6176, allocations: 19.44 kB / 1.032 GB, free: 6.426 MB / 0.7794 GB Notification: Performance of SimCode: time 2.71e-07/0.6176, allocations: 4 kB / 1.032 GB, free: 6.422 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01069/0.6283, allocations: 1.838 MB / 1.034 GB, free: 4.793 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000179/0.6285, allocations: 246.2 kB / 1.034 GB, free: 4.539 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.711/2.339, allocations: 0 / 1.034 GB, free: 4.539 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.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,m_flow_turbulent,der(m_flow),der(m_flow_comp),err_m_flow,err_der_m_flow Variables in the result:der(der(dp)),der(der_m_flow),der(der_m_flow_comp),der(dp),der(m_flow),der(m_flow_comp),der_m_flow,der_m_flow_comp,dp,err_der_m_flow,err_m_flow,k,m_flow,m_flow_comp,m_flow_turbulent,time