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.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: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp|m_flow_turbulent|der.m_flow.|der.m_flow_comp.|err_m_flow|err_der_m_flow",fileNamePrefix="Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp|m_flow_turbulent|der.m_flow.|der.m_flow_comp.|err_m_flow|err_der_m_flow",fileNamePrefix="Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001544/0.001544, allocations: 107.4 kB / 15.34 MB, free: 0.5 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.001745/0.001745, allocations: 194.7 kB / 16.26 MB, free: 6.637 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.434/1.434, allocations: 222.9 MB / 239.9 MB, free: 4.543 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.693/2.693, allocations: 437 MB / 0.71 GB, free: 5.219 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 67.89 kB / 0.8687 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6958/0.697, allocations: 151.6 MB / 1.017 GB, free: 2.672 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002531/0.6996, allocations: 1.354 MB / 1.018 GB, free: 1.305 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0009633/0.7006, allocations: 0.6034 MB / 1.019 GB, free: 0.6992 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.307e-05/0.7006, allocations: 0 / 1.019 GB, free: 0.6992 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.951e-05/0.7007, allocations: 0 / 1.019 GB, free: 0.6992 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.119e-05/0.7007, allocations: 11.92 kB / 1.019 GB, free: 0.6875 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005081/0.7012, allocations: 135.6 kB / 1.019 GB, free: 0.5547 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 4.955e-05/0.7013, allocations: 23.92 kB / 1.019 GB, free: 0.5312 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.431e-05/0.7013, allocations: 4 kB / 1.019 GB, free: 0.5273 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 2.721e-05/0.7014, allocations: 19.91 kB / 1.019 GB, free: 0.5078 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.595e-05/0.7014, allocations: 11.92 kB / 1.019 GB, free: 0.4961 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.191e-05/0.7014, allocations: 4 kB / 1.019 GB, free: 0.4922 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004368/0.7019, allocations: 343.3 kB / 1.019 GB, free: 160 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.169e-05/0.7019, allocations: 8 kB / 1.019 GB, free: 152 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.583e-05/0.7019, allocations: 15.94 kB / 1.019 GB, free: 136 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0002446/0.7022, allocations: 157.6 kB / 1.019 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.7022, allocations: 0 / 1.019 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.203e-06/0.7022, allocations: 0 / 1.019 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.659e-06/0.7022, allocations: 0 / 1.019 GB, free: 15.98 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.0004492/0.7027, allocations: 371.3 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.7027, allocations: 8.031 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.124e-05/0.7028, allocations: 8.938 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001327/0.7029, allocations: 168.3 kB / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.708e-06/0.7029, allocations: 8.375 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.674e-05/0.703, allocations: 4.281 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00013/0.7031, allocations: 54.19 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.7031, allocations: 4.125 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.315e-05/0.7031, allocations: 3.938 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.7031, allocations: 4 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.015e-05/0.7032, allocations: 15.98 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00019/0.7034, allocations: 161.7 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001092/0.7035, allocations: 66.55 kB / 1.02 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.184e-05/0.7036, allocations: 28.8 kB / 1.02 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.722e-05/0.7036, allocations: 240 / 1.02 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.804e-05/0.7036, allocations: 42.53 kB / 1.02 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 8.41e-07/0.7036, allocations: 0 / 1.02 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.00114/0.7048, allocations: 0.5837 MB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.092e-05/0.7048, allocations: 55.39 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.24e-05/0.7049, allocations: 97.86 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.396e-05/0.7049, allocations: 25.7 kB / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.965e-05/0.705, allocations: 80.14 kB / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.182e-05/0.705, allocations: 43.56 kB / 1.021 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.933e-05/0.7051, allocations: 25.72 kB / 1.021 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.00012/0.7052, allocations: 322.8 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.038e-05/0.7052, allocations: 19.98 kB / 1.022 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.578e-05/0.7053, allocations: 20 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.138e-05/0.7054, allocations: 64.78 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.41e-07/0.7054, allocations: 0 / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001325/0.7055, allocations: 97.03 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/0.7055, allocations: 8 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.7055, allocations: 4 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.031e-05/0.7056, allocations: 0 / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001043/0.7057, allocations: 24.08 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.7057, allocations: 3.938 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.61e-05/0.7057, allocations: 4 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.077e-06/0.7057, allocations: 4 kB / 1.022 GB, free: 13.28 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.374e-05/0.7058, allocations: 114.3 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.798e-05/0.7058, allocations: 11.84 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002004/0.706, allocations: 117.7 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.706, allocations: 4 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.7061, allocations: 4 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.7061, allocations: 0 / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000387/0.7064, allocations: 350.5 kB / 1.022 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.7065, allocations: 3.938 kB / 1.022 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001127/0.7066, allocations: 19.98 kB / 1.022 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.023e-06/0.7066, allocations: 0 / 1.022 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/0.7066, allocations: 8 kB / 1.022 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.7066, allocations: 0 / 1.022 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.7066, allocations: 4 kB / 1.022 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002972/0.7069, allocations: 211.3 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.401e-05/0.707, allocations: 85.12 kB / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.637e-05/0.707, allocations: 4 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.03e-05/0.7071, allocations: 4 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.068e-05/0.7071, allocations: 3.984 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.022e-05/0.7071, allocations: 8 kB / 1.023 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.132e-05/0.7072, allocations: 87.28 kB / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7072, allocations: 0 / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002763/0.7075, allocations: 39.94 kB / 1.023 GB, free: 12.11 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.0002053/0.7077, allocations: 131.1 kB / 1.023 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001599/0.7078, allocations: 63.92 kB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.7078, allocations: 0 / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 4.965e-05/0.7079, allocations: 39.92 kB / 1.023 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002209/0.7081, allocations: 8.094 kB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000547/0.7087, allocations: 305 kB / 1.023 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003205/0.709, allocations: 0.6846 MB / 1.024 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.01e-05/0.7091, allocations: 15.94 kB / 1.024 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.423e-05/0.7091, allocations: 11.44 kB / 1.024 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of SimCode: time 1.593e-06/0.7091, allocations: 0 / 1.024 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of Templates: time 0.003272/0.7124, allocations: 0.9415 MB / 1.025 GB, free: 9.895 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (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 & ./Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" 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(m_flow),der(m_flow_comp),err_der_m_flow,err_m_flow,k,m_flow,m_flow_comp,m_flow_turbulent,time