Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.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_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009166/0.009166, allocations: 99.88 kB / 15.73 MB, free: 6.047 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.001696/0.001696, allocations: 185.3 kB / 16.67 MB, free: 5.977 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.437/1.437, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.81/2.81, allocations: 461.9 MB / 0.7347 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001378/0.001378, allocations: 64.11 kB / 1.054 GB, free: 7.168 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3178/0.3192, allocations: 157.4 MB / 1.208 GB, free: 9.656 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002577/0.3218, allocations: 1.271 MB / 1.209 GB, free: 8.371 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001069/0.3229, allocations: 0.611 MB / 1.21 GB, free: 7.758 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.917e-05/0.323, allocations: 0 / 1.21 GB, free: 7.758 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.794e-05/0.323, allocations: 0 / 1.21 GB, free: 7.758 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.106e-05/0.3231, allocations: 3.938 kB / 1.21 GB, free: 7.754 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006492/0.3238, allocations: 153.4 kB / 1.21 GB, free: 7.605 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 6.014e-05/0.3238, allocations: 15.92 kB / 1.21 GB, free: 7.59 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.498e-05/0.3239, allocations: 4 kB / 1.21 GB, free: 7.586 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 4.162e-05/0.3239, allocations: 7.938 kB / 1.21 GB, free: 7.578 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.528e-05/0.324, allocations: 11.97 kB / 1.21 GB, free: 7.566 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.319e-05/0.324, allocations: 0 / 1.21 GB, free: 7.566 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004997/0.3245, allocations: 343.3 kB / 1.21 GB, free: 7.23 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.635e-05/0.3245, allocations: 11.92 kB / 1.21 GB, free: 7.219 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.364e-05/0.3246, allocations: 4 kB / 1.21 GB, free: 7.215 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002657/0.3248, allocations: 143.6 kB / 1.21 GB, free: 7.074 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 7.284e-06/0.3248, allocations: 8 kB / 1.21 GB, free: 7.066 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3249, allocations: 0 / 1.21 GB, free: 7.066 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.5e-06/0.3249, allocations: 0 / 1.21 GB, free: 7.066 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004435/0.3253, allocations: 367.3 kB / 1.211 GB, free: 6.656 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.3254, allocations: 8.625 kB / 1.211 GB, free: 6.648 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.756e-05/0.3254, allocations: 0.9375 kB / 1.211 GB, free: 6.648 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000117/0.3255, allocations: 168.4 kB / 1.211 GB, free: 6.445 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.284e-05/0.3255, allocations: 384 / 1.211 GB, free: 6.445 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.776e-05/0.3256, allocations: 4.375 kB / 1.211 GB, free: 6.441 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001128/0.3257, allocations: 42.27 kB / 1.211 GB, free: 6.395 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.3257, allocations: 4.172 kB / 1.211 GB, free: 6.391 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.522e-05/0.3257, allocations: 11.88 kB / 1.211 GB, free: 6.379 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.3257, allocations: 0 / 1.211 GB, free: 6.379 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.128e-05/0.3258, allocations: 8 kB / 1.211 GB, free: 6.371 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001742/0.326, allocations: 153.7 kB / 1.211 GB, free: 6.172 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002089/0.3262, allocations: 46.61 kB / 1.211 GB, free: 6.117 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.279e-05/0.3262, allocations: 24.92 kB / 1.211 GB, free: 6.09 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.317e-05/0.3263, allocations: 4 kB / 1.211 GB, free: 6.086 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.383e-05/0.3263, allocations: 34.5 kB / 1.211 GB, free: 6.043 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=4): time 1.162e-06/0.3263, allocations: 0 / 1.211 GB, free: 6.043 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6): time 0.000674/0.327, allocations: 314.1 kB / 1.211 GB, free: 5.684 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.45e-05/0.327, allocations: 59.34 kB / 1.211 GB, free: 5.613 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.374e-05/0.3271, allocations: 97.84 kB / 1.212 GB, free: 5.508 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.591e-05/0.3271, allocations: 33.7 kB / 1.212 GB, free: 5.469 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.005e-05/0.3272, allocations: 80.14 kB / 1.212 GB, free: 5.387 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.172e-05/0.3272, allocations: 11.81 kB / 1.212 GB, free: 5.375 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.961e-05/0.3272, allocations: 25.7 kB / 1.212 GB, free: 5.344 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001084/0.3274, allocations: 310.8 kB / 1.212 GB, free: 5.031 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.731e-05/0.3274, allocations: 12 kB / 1.212 GB, free: 5.02 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.233e-05/0.3274, allocations: 11.98 kB / 1.212 GB, free: 5.008 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.428e-05/0.3275, allocations: 28.86 kB / 1.212 GB, free: 4.977 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.11e-07/0.3275, allocations: 4 kB / 1.212 GB, free: 4.973 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001086/0.3276, allocations: 77.67 kB / 1.212 GB, free: 4.891 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.3276, allocations: 7.938 kB / 1.212 GB, free: 4.883 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.3276, allocations: 0 / 1.212 GB, free: 4.883 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.3277, allocations: 4 kB / 1.212 GB, free: 4.879 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.397e-05/0.3277, allocations: 8 kB / 1.212 GB, free: 4.871 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.346e-06/0.3277, allocations: 4.062 kB / 1.212 GB, free: 4.867 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.793e-05/0.3278, allocations: 3.938 kB / 1.212 GB, free: 4.863 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.546e-06/0.3278, allocations: 7.984 kB / 1.212 GB, free: 4.855 MB / 0.9669 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 (7): * Single equations (assignments): 7 * 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 6.746e-05/0.3278, allocations: 113.8 kB / 1.212 GB, free: 4.734 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.438e-05/0.3279, allocations: 7.938 kB / 1.212 GB, free: 4.727 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001436/0.328, allocations: 69.59 kB / 1.212 GB, free: 4.648 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.328, allocations: 0 / 1.212 GB, free: 4.648 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.328, allocations: 0 / 1.212 GB, free: 4.648 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.269e-06/0.328, allocations: 3.984 kB / 1.212 GB, free: 4.645 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003047/0.3283, allocations: 319.5 kB / 1.213 GB, free: 4.273 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-06/0.3284, allocations: 0 / 1.213 GB, free: 4.273 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.213e-05/0.3284, allocations: 12.03 kB / 1.213 GB, free: 4.262 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.3284, allocations: 4 kB / 1.213 GB, free: 4.258 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/0.3285, allocations: 4 kB / 1.213 GB, free: 4.254 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3285, allocations: 0 / 1.213 GB, free: 4.254 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3285, allocations: 0 / 1.213 GB, free: 4.254 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001816/0.3287, allocations: 188.2 kB / 1.213 GB, free: 4.051 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.745e-05/0.3287, allocations: 81.09 kB / 1.213 GB, free: 3.953 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.35e-05/0.3287, allocations: 8.062 kB / 1.213 GB, free: 3.945 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.062e-05/0.3288, allocations: 0 / 1.213 GB, free: 3.945 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.782e-05/0.3288, allocations: 0 / 1.213 GB, free: 3.945 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.484e-06/0.3288, allocations: 8 kB / 1.213 GB, free: 3.938 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.621e-05/0.3289, allocations: 83.78 kB / 1.213 GB, free: 3.855 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1e-07/0.3289, allocations: 0 / 1.213 GB, free: 3.855 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002518/0.3291, allocations: 19.94 kB / 1.213 GB, free: 3.836 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (6): * Single equations (assignments): 6 * 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.0001793/0.3293, allocations: 123.2 kB / 1.213 GB, free: 3.707 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001027/0.3294, allocations: 39.86 kB / 1.213 GB, free: 3.668 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3295, allocations: 0 / 1.213 GB, free: 3.668 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 2.614e-05/0.3295, allocations: 16 kB / 1.213 GB, free: 3.652 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000219/0.3297, allocations: 10.38 kB / 1.213 GB, free: 3.645 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004142/0.3301, allocations: 222 kB / 1.213 GB, free: 3.398 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002177/0.3304, allocations: 0.6807 MB / 1.214 GB, free: 2.691 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.05e-05/0.3304, allocations: 4 kB / 1.214 GB, free: 2.688 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.304e-05/0.3304, allocations: 15.42 kB / 1.214 GB, free: 2.672 MB / 0.9669 GB Notification: Performance of SimCode: time 1.834e-06/0.3304, allocations: 0 / 1.214 GB, free: 2.672 MB / 0.9669 GB Notification: Performance of Templates: time 0.002757/0.3332, allocations: 0.6464 MB / 1.215 GB, free: 2.062 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches