Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001067/0.001067, allocations: 118.6 kB / 16.42 MB, free: 6.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.001022/0.001022, allocations: 187.9 kB / 17.35 MB, free: 5.762 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.297/1.297, allocations: 222.9 MB / 241.1 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.171/2.171, allocations: 390.2 MB / 0.6655 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 63.91 kB / 0.9516 GB, free: 7.648 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6842/0.6855, allocations: 140.4 MB / 1.089 GB, free: 5.539 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.001857/0.6874, allocations: 1.277 MB / 1.09 GB, free: 4.648 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0008138/0.6882, allocations: 0.6252 MB / 1.09 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.134e-05/0.6883, allocations: 0 / 1.09 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.445e-05/0.6883, allocations: 7.938 kB / 1.09 GB, free: 4.207 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 3.616e-05/0.6883, allocations: 6.047 kB / 1.09 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004793/0.6888, allocations: 146.6 kB / 1.091 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 5.506e-05/0.6889, allocations: 25.48 kB / 1.091 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.406e-05/0.6889, allocations: 7.328 kB / 1.091 GB, free: 4.125 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 2.148e-05/0.6889, allocations: 11.69 kB / 1.091 GB, free: 4.121 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.504e-05/0.689, allocations: 19.42 kB / 1.091 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.152e-05/0.689, allocations: 1.219 kB / 1.091 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005101/0.6895, allocations: 346.6 kB / 1.091 GB, free: 4.008 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.296e-05/0.6896, allocations: 11.22 kB / 1.091 GB, free: 4 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.077e-05/0.6896, allocations: 14.88 kB / 1.091 GB, free: 3.992 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002527/0.6899, allocations: 157.2 kB / 1.091 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.6899, allocations: 0 / 1.091 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.443e-06/0.6899, allocations: 0 / 1.091 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.334e-06/0.6899, allocations: 1.094 kB / 1.091 GB, free: 3.941 MB / 0.8575 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.0002936/0.6902, allocations: 368.7 kB / 1.092 GB, free: 3.559 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.222e-05/0.6902, allocations: 8.969 kB / 1.092 GB, free: 3.559 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.259e-05/0.6903, allocations: 11.06 kB / 1.092 GB, free: 3.551 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.089e-05/0.6903, allocations: 162.8 kB / 1.092 GB, free: 3.355 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.18e-05/0.6903, allocations: 2.562 kB / 1.092 GB, free: 3.355 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.324e-05/0.6904, allocations: 6.594 kB / 1.092 GB, free: 3.352 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001014/0.6905, allocations: 50.61 kB / 1.092 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.6905, allocations: 1.734 kB / 1.092 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.6905, allocations: 5.188 kB / 1.092 GB, free: 3.309 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.6905, allocations: 0 / 1.092 GB, free: 3.309 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.607e-05/0.6906, allocations: 23.39 kB / 1.092 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001193/0.6907, allocations: 167.5 kB / 1.092 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 9.106e-05/0.6908, allocations: 59.75 kB / 1.092 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.071e-05/0.6908, allocations: 28.5 kB / 1.092 GB, free: 3.047 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.916e-05/0.6909, allocations: 1.625 kB / 1.092 GB, free: 3.047 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.553e-05/0.6909, allocations: 36.05 kB / 1.092 GB, free: 3.004 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.553e-06/0.6909, allocations: 0.8438 kB / 1.092 GB, free: 3.004 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0009727/0.6919, allocations: 0.5948 MB / 1.093 GB, free: 2.477 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.85e-05/0.6919, allocations: 52.92 kB / 1.093 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.686e-05/0.6919, allocations: 98.33 kB / 1.093 GB, free: 2.312 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.838e-06/0.6919, allocations: 26.64 kB / 1.093 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.325e-05/0.692, allocations: 85.88 kB / 1.093 GB, free: 2.195 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.08e-05/0.692, allocations: 38.53 kB / 1.093 GB, free: 2.164 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.91e-05/0.692, allocations: 28.7 kB / 1.093 GB, free: 2.141 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 3.754e-05/0.6921, allocations: 314.6 kB / 1.093 GB, free: 1.828 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.343e-05/0.6921, allocations: 22.16 kB / 1.093 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.993e-05/0.6922, allocations: 19.72 kB / 1.093 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.053e-05/0.6923, allocations: 61.97 kB / 1.093 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.12e-07/0.6923, allocations: 4.688 kB / 1.093 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001352/0.6924, allocations: 104.2 kB / 1.093 GB, free: 1.719 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/0.6924, allocations: 5.578 kB / 1.093 GB, free: 1.719 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.938e-06/0.6925, allocations: 0 / 1.093 GB, free: 1.719 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.6925, allocations: 0.9688 kB / 1.093 GB, free: 1.719 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001003/0.6926, allocations: 20.83 kB / 1.094 GB, free: 1.719 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.6926, allocations: 1.031 kB / 1.094 GB, free: 1.719 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.402e-05/0.6926, allocations: 0.9375 kB / 1.094 GB, free: 1.719 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.236e-06/0.6926, allocations: 3.859 kB / 1.094 GB, free: 1.719 MB / 0.8575 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 4.841e-05/0.6927, allocations: 116.6 kB / 1.094 GB, free: 1.598 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.542e-05/0.6927, allocations: 14.66 kB / 1.094 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001713/0.6929, allocations: 102.6 kB / 1.094 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.6929, allocations: 0 / 1.094 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.6929, allocations: 0.7969 kB / 1.094 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.538e-05/0.6929, allocations: 79.62 kB / 1.094 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.457e-05/0.6929, allocations: 5.109 kB / 1.094 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.756e-05/0.693, allocations: 10.45 kB / 1.094 GB, free: 1.418 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.844e-05/0.693, allocations: 10.27 kB / 1.094 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001946/0.6932, allocations: 191 kB / 1.094 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002159/0.6934, allocations: 287.9 kB / 1.094 GB, free: 1.035 MB / 0.8575 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 5.219e-05/0.6935, allocations: 27.8 kB / 1.094 GB, free: 1.027 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 1.47e-05/0.6935, allocations: 82.17 kB / 1.094 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of Backend: time 3.71e-07/0.6935, allocations: 0 / 1.094 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005137/0.694, allocations: 190.3 kB / 1.095 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of SimCode: time 0.0004329/0.6945, allocations: 0.6991 MB / 1.095 GB, free: 164 kB / 0.8575 GB Notification: Performance of Templates: time 0.004073/0.6986, allocations: 1.543 MB / 1.097 GB, free: 20 kB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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