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.001561/0.001561, allocations: 115.2 kB / 16.42 MB, free: 6.449 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.001792/0.001793, allocations: 183.9 kB / 17.35 MB, free: 5.738 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.333/1.333, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.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.4/2.4, allocations: 437 MB / 0.7112 GB, free: 4.426 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 59.91 kB / 1.019 GB, free: 9.434 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6953/0.6966, allocations: 151.6 MB / 1.167 GB, free: 3.848 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002091/0.6988, allocations: 1.286 MB / 1.169 GB, free: 2.555 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.000954/0.6997, allocations: 0.6212 MB / 1.169 GB, free: 1.934 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.403e-05/0.6998, allocations: 0 / 1.169 GB, free: 1.934 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 1.686e-05/0.6998, allocations: 0 / 1.169 GB, free: 1.934 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 3.218e-05/0.6998, allocations: 3.938 kB / 1.169 GB, free: 1.93 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004941/0.7003, allocations: 155.4 kB / 1.169 GB, free: 1.777 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 5.312e-05/0.7004, allocations: 27.91 kB / 1.169 GB, free: 1.75 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 3.808e-05/0.7004, allocations: 4 kB / 1.169 GB, free: 1.746 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 2.1e-05/0.7005, allocations: 7.938 kB / 1.169 GB, free: 1.738 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.578e-05/0.7005, allocations: 15.92 kB / 1.169 GB, free: 1.723 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.464e-05/0.7005, allocations: 4 kB / 1.169 GB, free: 1.719 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004771/0.701, allocations: 347.3 kB / 1.17 GB, free: 1.379 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.204e-05/0.701, allocations: 4 kB / 1.17 GB, free: 1.375 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.606e-05/0.7011, allocations: 19.91 kB / 1.17 GB, free: 1.355 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002413/0.7013, allocations: 155.4 kB / 1.17 GB, free: 1.207 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.7013, allocations: 3.984 kB / 1.17 GB, free: 1.203 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.152e-06/0.7013, allocations: 0 / 1.17 GB, free: 1.203 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.158e-06/0.7013, allocations: 0 / 1.17 GB, free: 1.203 MB / 0.8887 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.0004152/0.7018, allocations: 361.3 kB / 1.17 GB, free: 0.8008 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.7018, allocations: 12.91 kB / 1.17 GB, free: 0.7891 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.542e-05/0.7018, allocations: 8.844 kB / 1.17 GB, free: 0.7812 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.833e-05/0.7019, allocations: 164.3 kB / 1.17 GB, free: 0.582 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.4e-05/0.702, allocations: 12.38 kB / 1.17 GB, free: 0.5703 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.984e-05/0.702, allocations: 384 / 1.17 GB, free: 0.5703 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001094/0.7021, allocations: 50.25 kB / 1.17 GB, free: 0.5156 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.7021, allocations: 192 / 1.17 GB, free: 0.5156 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.162e-05/0.7021, allocations: 3.938 kB / 1.17 GB, free: 0.5117 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.7021, allocations: 4 kB / 1.17 GB, free: 0.5078 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.611e-05/0.7022, allocations: 15.98 kB / 1.17 GB, free: 0.4922 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001612/0.7024, allocations: 173.6 kB / 1.171 GB, free: 280 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 9.839e-05/0.7025, allocations: 66.48 kB / 1.171 GB, free: 204 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.209e-05/0.7025, allocations: 28.84 kB / 1.171 GB, free: 172 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.824e-05/0.7025, allocations: 3.938 kB / 1.171 GB, free: 168 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.361e-05/0.7026, allocations: 34.56 kB / 1.171 GB, free: 124 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.7026, allocations: 0 / 1.171 GB, free: 124 kB / 0.8887 GB Notification: Performance of matching and sorting (n=11): time 0.00106/0.7036, allocations: 0.5955 MB / 1.171 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.761e-05/0.7037, allocations: 51.41 kB / 1.171 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.1e-05/0.7038, allocations: 93.86 kB / 1.172 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.838e-05/0.7038, allocations: 29.7 kB / 1.172 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 3.308e-05/0.7038, allocations: 84.08 kB / 1.172 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.991e-05/0.7039, allocations: 35.45 kB / 1.172 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.325e-05/0.7039, allocations: 33.83 kB / 1.172 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001001/0.704, allocations: 318.8 kB / 1.172 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.926e-05/0.7041, allocations: 19.98 kB / 1.172 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.974e-05/0.7041, allocations: 25.06 kB / 1.172 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.068e-05/0.7042, allocations: 54.22 kB / 1.172 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.01e-07/0.7042, allocations: 0 / 1.172 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001404/0.7044, allocations: 105.5 kB / 1.172 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.208e-05/0.7044, allocations: 4 kB / 1.172 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.7044, allocations: 0 / 1.172 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.7044, allocations: 4 kB / 1.172 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001065/0.7045, allocations: 27.92 kB / 1.172 GB, free: 14.51 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.7045, allocations: 0 / 1.172 GB, free: 14.51 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.632e-05/0.7046, allocations: 4 kB / 1.172 GB, free: 14.51 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.095e-06/0.7046, allocations: 4 kB / 1.172 GB, free: 14.5 MB / 0.9044 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.226e-05/0.7046, allocations: 109.8 kB / 1.172 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.807e-05/0.7047, allocations: 11.92 kB / 1.172 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001941/0.7049, allocations: 109.6 kB / 1.172 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.7049, allocations: 4 kB / 1.172 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.7049, allocations: 0 / 1.172 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.687e-05/0.7049, allocations: 81.02 kB / 1.173 GB, free: 14.15 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.708e-05/0.7049, allocations: 7.984 kB / 1.173 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.856e-05/0.705, allocations: 4 kB / 1.173 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.921e-05/0.705, allocations: 4.094 kB / 1.173 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002246/0.7053, allocations: 184.8 kB / 1.173 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002721/0.7056, allocations: 302.6 kB / 1.173 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 5.009e-05/0.7056, allocations: 28.02 kB / 1.173 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.235e-05/0.7057, allocations: 79.27 kB / 1.173 GB, free: 13.53 MB / 0.9044 GB Notification: Performance of Backend: time 2.3e-07/0.7057, allocations: 0 / 1.173 GB, free: 13.53 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0005311/0.7062, allocations: 179.9 kB / 1.173 GB, free: 13.35 MB / 0.9044 GB Notification: Performance of SimCode: time 0.0005981/0.7068, allocations: 0.7051 MB / 1.174 GB, free: 12.6 MB / 0.9044 GB Notification: Performance of Templates: time 0.003779/0.7106, allocations: 1.535 MB / 1.175 GB, free: 11.1 MB / 0.9044 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/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) "" 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