Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001654/0.001654, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002081/0.002082, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.433/1.433, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.776/2.776, allocations: 461.9 MB / 0.7342 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.003173/0.003173, allocations: 68.92 kB / 0.8984 GB, free: 37.3 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4359/0.4391, allocations: 157.4 MB / 1.052 GB, free: 8.902 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002721/0.4419, allocations: 1.349 MB / 1.053 GB, free: 7.535 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001114/0.443, allocations: 0.6384 MB / 1.054 GB, free: 6.895 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.643e-05/0.443, allocations: 4 kB / 1.054 GB, free: 6.891 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.239e-05/0.4431, allocations: 3.938 kB / 1.054 GB, free: 6.887 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.693e-05/0.4431, allocations: 0 / 1.054 GB, free: 6.887 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000481/0.4436, allocations: 131.5 kB / 1.054 GB, free: 6.758 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.338e-05/0.4437, allocations: 27.92 kB / 1.054 GB, free: 6.73 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 5.9e-05/0.4438, allocations: 3.938 kB / 1.054 GB, free: 6.727 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.41e-05/0.4438, allocations: 12 kB / 1.054 GB, free: 6.715 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.584e-05/0.4439, allocations: 15.91 kB / 1.054 GB, free: 6.699 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.331e-05/0.4439, allocations: 0 / 1.054 GB, free: 6.699 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005819/0.4445, allocations: 343.4 kB / 1.055 GB, free: 6.363 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.962e-05/0.4445, allocations: 4 kB / 1.055 GB, free: 6.359 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.561e-05/0.4446, allocations: 23.91 kB / 1.055 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003319/0.4449, allocations: 147.9 kB / 1.055 GB, free: 6.191 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.234e-06/0.4449, allocations: 0 / 1.055 GB, free: 6.191 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.918e-06/0.4449, allocations: 0 / 1.055 GB, free: 6.191 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.811e-06/0.4449, allocations: 3.938 kB / 1.055 GB, free: 6.188 MB / 0.8106 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.0006669/0.4456, allocations: 367.4 kB / 1.055 GB, free: 5.777 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 6.59e-05/0.4457, allocations: 12.03 kB / 1.055 GB, free: 5.766 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.896e-05/0.4458, allocations: 8.938 kB / 1.055 GB, free: 5.758 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001968/0.446, allocations: 168.2 kB / 1.055 GB, free: 5.555 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.625e-05/0.446, allocations: 4.375 kB / 1.055 GB, free: 5.551 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.862e-05/0.446, allocations: 4.375 kB / 1.055 GB, free: 5.547 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001902/0.4462, allocations: 50.23 kB / 1.055 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.975e-05/0.4463, allocations: 4.188 kB / 1.055 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.115e-05/0.4463, allocations: 7.922 kB / 1.055 GB, free: 5.48 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.159e-05/0.4463, allocations: 3.984 kB / 1.055 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.994e-05/0.4464, allocations: 16 kB / 1.055 GB, free: 5.461 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003924/0.4468, allocations: 173.6 kB / 1.056 GB, free: 5.242 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002184/0.447, allocations: 58.5 kB / 1.056 GB, free: 5.176 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.249e-05/0.4471, allocations: 28.84 kB / 1.056 GB, free: 5.145 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 4.242e-05/0.4471, allocations: 4 kB / 1.056 GB, free: 5.141 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.813e-05/0.4472, allocations: 30.56 kB / 1.056 GB, free: 5.102 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.052e-06/0.4472, allocations: 0 / 1.056 GB, free: 5.102 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.001758/0.449, allocations: 0.5879 MB / 1.056 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.839e-05/0.449, allocations: 51.41 kB / 1.056 GB, free: 4.359 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001073/0.4492, allocations: 97.86 kB / 1.056 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.397e-05/0.4492, allocations: 25.7 kB / 1.056 GB, free: 4.223 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.775e-05/0.4492, allocations: 88.12 kB / 1.056 GB, free: 4.133 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.189e-05/0.4493, allocations: 47.3 kB / 1.056 GB, free: 4.086 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.735e-05/0.4494, allocations: 29.7 kB / 1.057 GB, free: 4.051 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001603/0.4495, allocations: 318.8 kB / 1.057 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.611e-05/0.4496, allocations: 19.98 kB / 1.057 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.693e-05/0.4496, allocations: 27.11 kB / 1.057 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001054/0.4498, allocations: 52.86 kB / 1.057 GB, free: 3.633 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.21e-07/0.4498, allocations: 0 / 1.057 GB, free: 3.633 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001651/0.4499, allocations: 101.6 kB / 1.057 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.45, allocations: 4 kB / 1.057 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.45, allocations: 3.984 kB / 1.057 GB, free: 3.52 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.937e-05/0.45, allocations: 3.938 kB / 1.057 GB, free: 3.516 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001185/0.4501, allocations: 23.94 kB / 1.057 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.366e-05/0.4502, allocations: 3.984 kB / 1.057 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.813e-05/0.4502, allocations: 4 kB / 1.057 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.021e-05/0.4502, allocations: 4 kB / 1.057 GB, free: 3.48 MB / 0.8106 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 0.0001079/0.4503, allocations: 117.8 kB / 1.057 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.82e-05/0.4503, allocations: 11.84 kB / 1.057 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002425/0.4506, allocations: 105.6 kB / 1.057 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-06/0.4506, allocations: 4 kB / 1.057 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.4506, allocations: 0 / 1.057 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.4506, allocations: 3.984 kB / 1.057 GB, free: 3.227 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006354/0.4513, allocations: 350.5 kB / 1.058 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.4513, allocations: 0 / 1.058 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001146/0.4514, allocations: 23.92 kB / 1.058 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.4514, allocations: 0 / 1.058 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.363e-05/0.4514, allocations: 8.094 kB / 1.058 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.4515, allocations: 3.938 kB / 1.058 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.4515, allocations: 0 / 1.058 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003126/0.4518, allocations: 223.3 kB / 1.058 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.019e-05/0.4518, allocations: 77.11 kB / 1.058 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.229e-05/0.4519, allocations: 4 kB / 1.058 GB, free: 2.461 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.739e-05/0.452, allocations: 4.031 kB / 1.058 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.81e-05/0.452, allocations: 12.05 kB / 1.058 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.879e-06/0.452, allocations: 4 kB / 1.058 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.658e-05/0.4521, allocations: 79.28 kB / 1.058 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4521, allocations: 3.938 kB / 1.058 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003533/0.4524, allocations: 35.98 kB / 1.058 GB, free: 2.324 MB / 0.8106 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.0003015/0.4528, allocations: 135.2 kB / 1.058 GB, free: 2.184 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001936/0.453, allocations: 63.91 kB / 1.058 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.453, allocations: 96 / 1.058 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 5.553e-05/0.453, allocations: 40.31 kB / 1.058 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002495/0.4533, allocations: 8.203 kB / 1.058 GB, free: 2.074 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007123/0.454, allocations: 306.6 kB / 1.059 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003424/0.4544, allocations: 0.6848 MB / 1.059 GB, free: 1.035 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 5.377e-05/0.4544, allocations: 8 kB / 1.059 GB, free: 1.027 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.875e-05/0.4545, allocations: 11.44 kB / 1.059 GB, free: 1.016 MB / 0.8106 GB Notification: Performance of SimCode: time 1.9e-07/0.4545, allocations: 0 / 1.059 GB, free: 1.016 MB / 0.8106 GB Notification: Performance of Templates: time 0.004016/0.4585, allocations: 0.9276 MB / 1.06 GB, free: 128 kB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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