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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001483/0.001483, allocations: 116.4 kB / 16.37 MB, free: 5.984 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.001667/0.001667, allocations: 193.5 kB / 17.31 MB, free: 5.602 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.43/1.43, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.365/2.365, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 60.81 kB / 0.8773 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2761/0.2775, allocations: 153 MB / 1.027 GB, free: 2.062 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002487/0.28, allocations: 1.284 MB / 1.028 GB, free: 0.7656 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0009949/0.281, allocations: 0.6211 MB / 1.029 GB, free: 148 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.375e-05/0.281, allocations: 0 / 1.029 GB, free: 148 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 1.724e-05/0.2811, allocations: 0 / 1.029 GB, free: 148 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.122e-05/0.2811, allocations: 3.938 kB / 1.029 GB, free: 144 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005908/0.2817, allocations: 151.4 kB / 1.029 GB, free: 15.99 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.346e-05/0.2818, allocations: 27.92 kB / 1.029 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.124e-05/0.2818, allocations: 7.922 kB / 1.029 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.442e-05/0.2819, allocations: 12 kB / 1.029 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.479e-05/0.2819, allocations: 11.92 kB / 1.029 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.224e-05/0.2819, allocations: 0 / 1.029 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004712/0.2824, allocations: 347.3 kB / 1.029 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.893e-05/0.2825, allocations: 11.94 kB / 1.029 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.802e-05/0.2825, allocations: 15.92 kB / 1.029 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002634/0.2828, allocations: 155.6 kB / 1.029 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.2828, allocations: 0 / 1.029 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.392e-06/0.2828, allocations: 0 / 1.029 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.619e-06/0.2828, allocations: 0 / 1.029 GB, free: 15.41 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.0004408/0.2832, allocations: 363.4 kB / 1.03 GB, free: 15.01 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.2833, allocations: 8.031 kB / 1.03 GB, free: 15 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.033e-05/0.2833, allocations: 16.83 kB / 1.03 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000112/0.2834, allocations: 168.3 kB / 1.03 GB, free: 14.78 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.093e-05/0.2835, allocations: 384 / 1.03 GB, free: 14.78 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.156e-05/0.2835, allocations: 8.375 kB / 1.03 GB, free: 14.77 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001084/0.2836, allocations: 54.23 kB / 1.03 GB, free: 14.71 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.2836, allocations: 192 / 1.03 GB, free: 14.71 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.354e-05/0.2836, allocations: 3.938 kB / 1.03 GB, free: 14.71 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.513e-06/0.2836, allocations: 4 kB / 1.03 GB, free: 14.71 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.815e-05/0.2837, allocations: 15.98 kB / 1.03 GB, free: 14.69 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000167/0.2839, allocations: 165.6 kB / 1.03 GB, free: 14.48 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000106/0.284, allocations: 66.48 kB / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.225e-05/0.284, allocations: 28.86 kB / 1.03 GB, free: 14.38 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.947e-05/0.2841, allocations: 0 / 1.03 GB, free: 14.38 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.604e-05/0.2841, allocations: 34.55 kB / 1.03 GB, free: 14.33 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.002e-06/0.2841, allocations: 0 / 1.03 GB, free: 14.33 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.001098/0.2852, allocations: 0.5839 MB / 1.031 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.654e-05/0.2853, allocations: 59.39 kB / 1.031 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.196e-05/0.2853, allocations: 93.95 kB / 1.031 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.954e-05/0.2854, allocations: 33.64 kB / 1.031 GB, free: 13.45 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.72e-05/0.2854, allocations: 84 kB / 1.031 GB, free: 13.36 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.225e-05/0.2854, allocations: 43.39 kB / 1.031 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.152e-05/0.2855, allocations: 21.72 kB / 1.031 GB, free: 13.29 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001037/0.2856, allocations: 323 kB / 1.031 GB, free: 12.96 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.77e-05/0.2857, allocations: 19.98 kB / 1.031 GB, free: 12.95 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.579e-05/0.2857, allocations: 27.94 kB / 1.031 GB, free: 12.92 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.069e-05/0.2858, allocations: 64.78 kB / 1.032 GB, free: 12.85 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.31e-07/0.2858, allocations: 0 / 1.032 GB, free: 12.85 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.00014/0.286, allocations: 92.62 kB / 1.032 GB, free: 12.76 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/0.286, allocations: 8 kB / 1.032 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.286, allocations: 0 / 1.032 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.286, allocations: 4 kB / 1.032 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001028/0.2861, allocations: 27.92 kB / 1.032 GB, free: 12.72 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.312e-05/0.2861, allocations: 4 kB / 1.032 GB, free: 12.71 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.571e-05/0.2862, allocations: 4 kB / 1.032 GB, free: 12.71 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.693e-06/0.2862, allocations: 0 / 1.032 GB, free: 12.71 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 7.093e-05/0.2862, allocations: 117.8 kB / 1.032 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.772e-05/0.2863, allocations: 11.84 kB / 1.032 GB, free: 12.57 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001929/0.2865, allocations: 109.6 kB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.2865, allocations: 4 kB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.2865, allocations: 0 / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.2865, allocations: 4 kB / 1.032 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000362/0.2869, allocations: 350.5 kB / 1.032 GB, free: 12.05 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.2869, allocations: 3.984 kB / 1.032 GB, free: 12.05 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001064/0.287, allocations: 27.92 kB / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.287, allocations: 0 / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.077e-06/0.287, allocations: 0 / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.997e-06/0.287, allocations: 4 kB / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.287, allocations: 0 / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002411/0.2873, allocations: 219.3 kB / 1.032 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.536e-05/0.2873, allocations: 85.12 kB / 1.033 GB, free: 11.69 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.594e-05/0.2873, allocations: 4 kB / 1.033 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.733e-05/0.2874, allocations: 0 / 1.033 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.995e-05/0.2875, allocations: 7.984 kB / 1.033 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.137e-05/0.2875, allocations: 8 kB / 1.033 GB, free: 11.67 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.015e-05/0.2875, allocations: 75.28 kB / 1.033 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.61e-07/0.2875, allocations: 7.938 kB / 1.033 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002684/0.2878, allocations: 36.16 kB / 1.033 GB, free: 11.55 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.0002059/0.288, allocations: 135.1 kB / 1.033 GB, free: 11.41 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001477/0.2882, allocations: 63.92 kB / 1.033 GB, free: 11.34 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.2882, allocations: 3.938 kB / 1.033 GB, free: 11.34 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 5.614e-05/0.2882, allocations: 31.92 kB / 1.033 GB, free: 11.31 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002307/0.2885, allocations: 8 kB / 1.033 GB, free: 11.3 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005311/0.289, allocations: 293 kB / 1.033 GB, free: 10.99 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002357/0.2893, allocations: 0.6846 MB / 1.034 GB, free: 10.28 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 4.192e-05/0.2893, allocations: 11.98 kB / 1.034 GB, free: 10.27 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.516e-05/0.2893, allocations: 11.44 kB / 1.034 GB, free: 10.25 MB / 0.8106 GB Notification: Performance of SimCode: time 2.21e-07/0.2893, allocations: 0 / 1.034 GB, free: 10.25 MB / 0.8106 GB Notification: Performance of Templates: time 0.003078/0.2924, allocations: 0.9519 MB / 1.035 GB, free: 9.34 MB / 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 -s gbode -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