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.001321/0.001321, 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.001283/0.001283, 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.268/1.268, allocations: 222.9 MB / 241.1 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.486/2.486, allocations: 461.9 MB / 0.7355 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 59.91 kB / 1.055 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6817/0.6831, allocations: 157.4 MB / 1.208 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002107/0.6852, allocations: 1.288 MB / 1.21 GB, free: 12.36 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0009428/0.6862, allocations: 0.6149 MB / 1.21 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.2e-05/0.6862, allocations: 4 kB / 1.21 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.833e-05/0.6862, allocations: 3.938 kB / 1.21 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 3.194e-05/0.6863, allocations: 3.984 kB / 1.21 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004773/0.6867, allocations: 147.4 kB / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 5.929e-05/0.6868, allocations: 31.91 kB / 1.21 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.593e-05/0.6869, allocations: 7.938 kB / 1.21 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 2.277e-05/0.6869, allocations: 7.938 kB / 1.21 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 5.717e-05/0.6869, allocations: 19.92 kB / 1.211 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.226e-05/0.687, allocations: 4 kB / 1.211 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004556/0.6874, allocations: 343.4 kB / 1.211 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.121e-05/0.6874, allocations: 3.984 kB / 1.211 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.61e-05/0.6875, allocations: 11.94 kB / 1.211 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000229/0.6877, allocations: 155.5 kB / 1.211 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.636e-06/0.6877, allocations: 0 / 1.211 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.413e-06/0.6877, allocations: 0 / 1.211 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.478e-06/0.6877, allocations: 0 / 1.211 GB, free: 11.02 MB / 0.9356 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.0003878/0.6881, allocations: 369.3 kB / 1.211 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.205e-05/0.6882, allocations: 8.031 kB / 1.211 GB, free: 10.6 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.552e-05/0.6882, allocations: 12.84 kB / 1.211 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.997e-05/0.6883, allocations: 164.3 kB / 1.212 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.202e-05/0.6883, allocations: 4.375 kB / 1.212 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.235e-05/0.6884, allocations: 8.375 kB / 1.212 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001071/0.6885, allocations: 46.19 kB / 1.212 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.6885, allocations: 4.172 kB / 1.212 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.461e-05/0.6885, allocations: 11.94 kB / 1.212 GB, free: 10.31 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.6885, allocations: 0 / 1.212 GB, free: 10.31 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.783e-05/0.6886, allocations: 19.98 kB / 1.212 GB, free: 10.29 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001671/0.6887, allocations: 165.7 kB / 1.212 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 9.904e-05/0.6889, allocations: 58.5 kB / 1.212 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.351e-05/0.6889, allocations: 28.84 kB / 1.212 GB, free: 9.984 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.605e-05/0.6889, allocations: 3.938 kB / 1.212 GB, free: 9.98 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.386e-05/0.689, allocations: 38.56 kB / 1.212 GB, free: 9.934 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.062e-06/0.689, allocations: 0 / 1.212 GB, free: 9.934 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11): time 0.001039/0.69, allocations: 0.5917 MB / 1.212 GB, free: 9.25 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.258e-05/0.69, allocations: 51.41 kB / 1.213 GB, free: 9.188 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.862e-05/0.6901, allocations: 93.86 kB / 1.213 GB, free: 9.086 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.535e-05/0.6901, allocations: 25.83 kB / 1.213 GB, free: 9.055 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 2.7e-05/0.6902, allocations: 92.08 kB / 1.213 GB, free: 8.961 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.297e-05/0.6902, allocations: 35.45 kB / 1.213 GB, free: 8.926 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.962e-05/0.6902, allocations: 29.7 kB / 1.213 GB, free: 8.891 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.317e-05/0.6903, allocations: 314.8 kB / 1.213 GB, free: 8.574 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.037e-05/0.6904, allocations: 27.92 kB / 1.213 GB, free: 8.547 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.586e-05/0.6904, allocations: 19.98 kB / 1.213 GB, free: 8.527 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.786e-05/0.6905, allocations: 54.48 kB / 1.213 GB, free: 8.473 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.91e-07/0.6905, allocations: 0 / 1.213 GB, free: 8.473 MB / 0.9356 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001391/0.6907, allocations: 109.5 kB / 1.213 GB, free: 8.359 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/0.6907, allocations: 7.984 kB / 1.213 GB, free: 8.352 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.6907, allocations: 7.984 kB / 1.213 GB, free: 8.344 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/0.6907, allocations: 0 / 1.213 GB, free: 8.344 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.856e-05/0.6908, allocations: 23.94 kB / 1.213 GB, free: 8.32 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.6908, allocations: 0 / 1.213 GB, free: 8.32 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.227e-05/0.6908, allocations: 0 / 1.213 GB, free: 8.32 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.999e-06/0.6909, allocations: 8.094 kB / 1.213 GB, free: 8.312 MB / 0.9356 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.143e-05/0.6909, allocations: 121.8 kB / 1.213 GB, free: 8.184 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.468e-05/0.691, allocations: 7.938 kB / 1.213 GB, free: 8.176 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001809/0.6911, allocations: 105.5 kB / 1.214 GB, free: 8.059 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.6912, allocations: 0 / 1.214 GB, free: 8.059 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.6912, allocations: 0 / 1.214 GB, free: 8.059 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.67e-05/0.6912, allocations: 85 kB / 1.214 GB, free: 7.957 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.596e-05/0.6912, allocations: 8 kB / 1.214 GB, free: 7.949 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.219e-05/0.6913, allocations: 0 / 1.214 GB, free: 7.949 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.841e-05/0.6913, allocations: 7.984 kB / 1.214 GB, free: 7.941 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00021/0.6915, allocations: 176.9 kB / 1.214 GB, free: 7.762 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002538/0.6918, allocations: 297.7 kB / 1.214 GB, free: 7.457 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 5.404e-05/0.6918, allocations: 40.05 kB / 1.214 GB, free: 7.418 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 2.465e-05/0.6919, allocations: 75.28 kB / 1.214 GB, free: 7.344 MB / 0.9356 GB Notification: Performance of Backend: time 1.9e-07/0.6919, allocations: 0 / 1.214 GB, free: 7.344 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005041/0.6924, allocations: 188.2 kB / 1.214 GB, free: 7.156 MB / 0.9356 GB Notification: Performance of SimCode: time 0.0005535/0.693, allocations: 0.6972 MB / 1.215 GB, free: 6.41 MB / 0.9356 GB Notification: Performance of Templates: time 0.003583/0.6965, allocations: 1.534 MB / 1.217 GB, free: 4.91 MB / 0.9356 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/jenkins1/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