Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001095/0.001095, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.008604/0.008604, allocations: 168.9 kB / 16.26 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.667/1.667, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 3.331/3.331, allocations: 470.6 MB / 0.7442 GB, free: 8.867 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000562/0.0005625, allocations: 10.77 kB / 0.9123 GB, free: 34.21 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4506/0.4512, allocations: 161.4 MB / 1.07 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002051/0.4533, allocations: 1.01 MB / 1.071 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00155/0.4549, allocations: 0.6168 MB / 1.071 GB, free: 9.762 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.942e-05/0.4549, allocations: 0 / 1.071 GB, free: 9.762 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.267e-05/0.4549, allocations: 0 / 1.071 GB, free: 9.762 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.038e-05/0.455, allocations: 11.97 kB / 1.071 GB, free: 9.75 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006221/0.4556, allocations: 128.4 kB / 1.072 GB, free: 9.625 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.398e-05/0.4557, allocations: 31.84 kB / 1.072 GB, free: 9.594 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 6.254e-05/0.4558, allocations: 7.984 kB / 1.072 GB, free: 9.586 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 2.914e-05/0.4558, allocations: 8 kB / 1.072 GB, free: 9.578 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.178e-05/0.4559, allocations: 11.92 kB / 1.072 GB, free: 9.566 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.667e-05/0.4559, allocations: 4 kB / 1.072 GB, free: 9.562 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007631/0.4567, allocations: 343.3 kB / 1.072 GB, free: 9.227 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.274e-05/0.4567, allocations: 8 kB / 1.072 GB, free: 9.219 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.747e-05/0.4568, allocations: 41.62 kB / 1.072 GB, free: 9.172 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003678/0.4572, allocations: 155.9 kB / 1.072 GB, free: 9.02 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.4572, allocations: 0 / 1.072 GB, free: 9.02 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.214e-06/0.4572, allocations: 0 / 1.072 GB, free: 9.02 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.13e-06/0.4572, allocations: 0 / 1.072 GB, free: 9.02 MB / 0.8262 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.0006244/0.4578, allocations: 363.4 kB / 1.073 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.4579, allocations: 8.031 kB / 1.073 GB, free: 8.605 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.548e-05/0.4579, allocations: 8.844 kB / 1.073 GB, free: 8.598 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001706/0.4581, allocations: 164.4 kB / 1.073 GB, free: 8.398 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.106e-05/0.4581, allocations: 384 / 1.073 GB, free: 8.398 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.387e-05/0.4582, allocations: 12.38 kB / 1.073 GB, free: 8.387 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001555/0.4584, allocations: 46.25 kB / 1.073 GB, free: 8.336 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.4584, allocations: 4.188 kB / 1.073 GB, free: 8.332 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.686e-05/0.4584, allocations: 3.938 kB / 1.073 GB, free: 8.328 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.6e-06/0.4584, allocations: 3.938 kB / 1.073 GB, free: 8.324 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.143e-05/0.4585, allocations: 23.92 kB / 1.073 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002633/0.4588, allocations: 169.6 kB / 1.073 GB, free: 8.086 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001553/0.4589, allocations: 62.55 kB / 1.073 GB, free: 8.016 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.581e-05/0.459, allocations: 28.86 kB / 1.073 GB, free: 7.984 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.838e-05/0.4591, allocations: 0 / 1.073 GB, free: 7.984 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.041e-05/0.4591, allocations: 34.56 kB / 1.073 GB, free: 7.941 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 3.627e-06/0.4591, allocations: 3.984 kB / 1.073 GB, free: 7.938 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.001749/0.4609, allocations: 0.5954 MB / 1.074 GB, free: 7.25 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.695e-05/0.461, allocations: 51.41 kB / 1.074 GB, free: 7.188 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001061/0.4611, allocations: 101.8 kB / 1.074 GB, free: 7.078 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.224e-05/0.4612, allocations: 25.7 kB / 1.074 GB, free: 7.047 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.268e-05/0.4612, allocations: 80.14 kB / 1.074 GB, free: 6.965 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.955e-05/0.4613, allocations: 43.39 kB / 1.074 GB, free: 6.922 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.472e-05/0.4613, allocations: 17.72 kB / 1.074 GB, free: 6.898 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001749/0.4615, allocations: 319 kB / 1.074 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.487e-05/0.4616, allocations: 20 kB / 1.074 GB, free: 6.559 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.488e-05/0.4617, allocations: 24.61 kB / 1.074 GB, free: 6.535 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001535/0.4618, allocations: 54.36 kB / 1.074 GB, free: 6.48 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.4619, allocations: 0 / 1.074 GB, free: 6.48 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002391/0.4621, allocations: 106.3 kB / 1.074 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.4621, allocations: 8 kB / 1.074 GB, free: 6.363 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.4621, allocations: 0 / 1.074 GB, free: 6.363 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.4622, allocations: 0 / 1.074 GB, free: 6.363 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001443/0.4623, allocations: 23.98 kB / 1.075 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.4623, allocations: 0 / 1.075 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.534e-05/0.4624, allocations: 4 kB / 1.075 GB, free: 6.336 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.295e-05/0.4624, allocations: 0 / 1.075 GB, free: 6.336 MB / 0.8262 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.0001382/0.4626, allocations: 121.8 kB / 1.075 GB, free: 6.207 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.689e-05/0.4626, allocations: 11.84 kB / 1.075 GB, free: 6.195 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002624/0.4629, allocations: 109.7 kB / 1.075 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.4629, allocations: 4 kB / 1.075 GB, free: 6.078 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.4629, allocations: 4 kB / 1.075 GB, free: 6.074 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.4629, allocations: 0 / 1.075 GB, free: 6.074 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004945/0.4634, allocations: 354.4 kB / 1.075 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.4634, allocations: 0 / 1.075 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001117/0.4635, allocations: 24 kB / 1.075 GB, free: 5.648 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.392e-06/0.4635, allocations: 3.984 kB / 1.075 GB, free: 5.645 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.236e-06/0.4636, allocations: 0 / 1.075 GB, free: 5.645 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.4636, allocations: 4 kB / 1.075 GB, free: 5.641 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.4636, allocations: 4 kB / 1.075 GB, free: 5.637 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002809/0.4639, allocations: 223.2 kB / 1.075 GB, free: 5.402 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.252e-05/0.4639, allocations: 81.14 kB / 1.075 GB, free: 5.305 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.446e-05/0.4639, allocations: 0 / 1.075 GB, free: 5.305 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/0.4641, allocations: 7.984 kB / 1.075 GB, free: 5.297 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.498e-05/0.4641, allocations: 4 kB / 1.075 GB, free: 5.293 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.466e-06/0.4641, allocations: 4 kB / 1.075 GB, free: 5.289 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.739e-05/0.4642, allocations: 79.27 kB / 1.076 GB, free: 5.211 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4642, allocations: 160 / 1.076 GB, free: 5.211 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002709/0.4644, allocations: 40 kB / 1.076 GB, free: 5.172 MB / 0.8262 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.0002758/0.4647, allocations: 131.2 kB / 1.076 GB, free: 5.035 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001601/0.4649, allocations: 67.84 kB / 1.076 GB, free: 4.969 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.4649, allocations: 0 / 1.076 GB, free: 4.969 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.136e-05/0.465, allocations: 31.98 kB / 1.076 GB, free: 4.938 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002252/0.4652, allocations: 4 kB / 1.076 GB, free: 4.934 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007022/0.4659, allocations: 349.2 kB / 1.076 GB, free: 4.562 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005565/0.4665, allocations: 0.6848 MB / 1.077 GB, free: 3.852 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.085e-05/0.4665, allocations: 7.984 kB / 1.077 GB, free: 3.844 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.655e-05/0.4666, allocations: 15.44 kB / 1.077 GB, free: 3.828 MB / 0.8262 GB Notification: Performance of SimCode: time 3.41e-07/0.4666, allocations: 4 kB / 1.077 GB, free: 3.824 MB / 0.8262 GB Notification: Performance of Templates: time 0.004345/0.4709, allocations: 0.9191 MB / 1.078 GB, free: 2.941 MB / 0.8262 GB make -j1 -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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