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.006376/0.006376, allocations: 99.84 kB / 15.73 MB, free: 6.02 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.001294/0.001295, allocations: 204.5 kB / 16.68 MB, free: 5.938 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.428/1.428, allocations: 222.9 MB / 240.4 MB, free: 4.188 MB / 190.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.54/2.54, allocations: 390.2 MB / 0.6648 GB, free: 188 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 63.59 kB / 0.9508 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3172/0.3187, allocations: 140.4 MB / 1.088 GB, free: 1.516 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002556/0.3213, allocations: 1.285 MB / 1.089 GB, free: 224 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001083/0.3224, allocations: 0.6167 MB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.044e-05/0.3225, allocations: 0 / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.062e-05/0.3225, allocations: 0 / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.602e-05/0.3226, allocations: 7.922 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006901/0.3233, allocations: 147.4 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.557e-05/0.3233, allocations: 39.84 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.004e-05/0.3234, allocations: 0 / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.498e-05/0.3234, allocations: 11.98 kB / 1.09 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.836e-05/0.3235, allocations: 11.94 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.544e-05/0.3235, allocations: 4 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005558/0.3241, allocations: 343.3 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.036e-05/0.3241, allocations: 11.98 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.095e-05/0.3242, allocations: 7.938 kB / 1.09 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003417/0.3245, allocations: 159.5 kB / 1.09 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3245, allocations: 0 / 1.09 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.744e-06/0.3245, allocations: 0 / 1.09 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.216e-06/0.3246, allocations: 7.938 kB / 1.091 GB, free: 14.86 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.0005506/0.3251, allocations: 365.2 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 6.267e-05/0.3252, allocations: 8.031 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.884e-05/0.3252, allocations: 12.78 kB / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000156/0.3254, allocations: 168.3 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.678e-05/0.3254, allocations: 8.312 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.421e-05/0.3255, allocations: 4.375 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001711/0.3256, allocations: 54.23 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.3257, allocations: 4.188 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.607e-05/0.3257, allocations: 3.938 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.3257, allocations: 4 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.634e-05/0.3258, allocations: 15.98 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000226/0.326, allocations: 165.7 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001194/0.3261, allocations: 62.5 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.012e-05/0.3262, allocations: 28.84 kB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.747e-05/0.3262, allocations: 4 kB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.613e-05/0.3263, allocations: 30.56 kB / 1.091 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.553e-06/0.3263, allocations: 4 kB / 1.091 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.001336/0.3276, allocations: 0.5876 MB / 1.092 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.646e-05/0.3277, allocations: 59.41 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.469e-05/0.3278, allocations: 97.84 kB / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.157e-05/0.3278, allocations: 29.7 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.122e-05/0.3278, allocations: 80.14 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.781e-05/0.3279, allocations: 31.47 kB / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.94e-05/0.328, allocations: 29.7 kB / 1.092 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001393/0.3281, allocations: 318.8 kB / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.099e-05/0.3282, allocations: 20.11 kB / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.594e-05/0.3282, allocations: 31.98 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001139/0.3283, allocations: 59.92 kB / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.3284, allocations: 0 / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001561/0.3285, allocations: 97.7 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.298e-05/0.3285, allocations: 11.94 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.3286, allocations: 0 / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.3286, allocations: 0 / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001111/0.3287, allocations: 23.92 kB / 1.093 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.3287, allocations: 4 kB / 1.093 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.944e-05/0.3287, allocations: 4 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.167e-06/0.3288, allocations: 8 kB / 1.093 GB, free: 12.16 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 9.817e-05/0.3289, allocations: 109.8 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.858e-05/0.3289, allocations: 11.84 kB / 1.093 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002017/0.3291, allocations: 97.58 kB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.3291, allocations: 4 kB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.3291, allocations: 7.922 kB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.3291, allocations: 0 / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004232/0.3296, allocations: 362.5 kB / 1.093 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.3296, allocations: 0 / 1.093 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001034/0.3297, allocations: 16 kB / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.57e-06/0.3297, allocations: 3.984 kB / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.378e-06/0.3297, allocations: 3.938 kB / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.3297, allocations: 7.984 kB / 1.093 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.3297, allocations: 80 / 1.093 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002556/0.33, allocations: 215.4 kB / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.94e-05/0.33, allocations: 81.2 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.532e-05/0.3301, allocations: 4 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/0.3302, allocations: 4 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.604e-05/0.3302, allocations: 11.92 kB / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.725e-06/0.3302, allocations: 4 kB / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.713e-05/0.3303, allocations: 83.28 kB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of sort global known variables: time 3.21e-07/0.3303, allocations: 0 / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002773/0.3306, allocations: 39.92 kB / 1.094 GB, free: 11 MB / 0.8575 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.0002265/0.3308, allocations: 131.3 kB / 1.094 GB, free: 10.86 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000157/0.331, allocations: 63.91 kB / 1.094 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.331, allocations: 0 / 1.094 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 5.384e-05/0.331, allocations: 39.92 kB / 1.094 GB, free: 10.76 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002261/0.3313, allocations: 5.016 kB / 1.094 GB, free: 10.76 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005788/0.3318, allocations: 297.3 kB / 1.094 GB, free: 10.44 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002789/0.3321, allocations: 0.6846 MB / 1.095 GB, free: 9.73 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.942e-05/0.3322, allocations: 15.86 kB / 1.095 GB, free: 9.715 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.951e-05/0.3322, allocations: 19.38 kB / 1.095 GB, free: 9.695 MB / 0.8575 GB Notification: Performance of SimCode: time 2.9e-07/0.3322, allocations: 0 / 1.095 GB, free: 9.695 MB / 0.8575 GB Notification: Performance of Templates: time 0.003644/0.3359, allocations: 0.9508 MB / 1.096 GB, free: 8.781 MB / 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/jenkins/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