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.009124/0.009124, allocations: 101.2 kB / 15.73 MB, free: 6.055 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.001643/0.001643, allocations: 200.5 kB / 16.68 MB, free: 5.984 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.47/1.47, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.698/2.698, allocations: 461.9 MB / 0.7348 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 60.12 kB / 1.054 GB, free: 7.184 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2916/0.2929, allocations: 157.4 MB / 1.208 GB, free: 9.68 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002692/0.2957, allocations: 1.291 MB / 1.209 GB, free: 8.375 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001212/0.2969, allocations: 0.6149 MB / 1.21 GB, free: 7.758 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.12e-05/0.297, allocations: 0 / 1.21 GB, free: 7.758 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.476e-05/0.297, allocations: 3.938 kB / 1.21 GB, free: 7.754 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.048e-05/0.2971, allocations: 8 kB / 1.21 GB, free: 7.746 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007017/0.2978, allocations: 147.3 kB / 1.21 GB, free: 7.602 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 7.014e-05/0.2978, allocations: 27.91 kB / 1.21 GB, free: 7.574 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 6.182e-05/0.2979, allocations: 4 kB / 1.21 GB, free: 7.57 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 4.141e-05/0.298, allocations: 15.94 kB / 1.21 GB, free: 7.555 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.406e-05/0.298, allocations: 11.92 kB / 1.21 GB, free: 7.543 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.274e-05/0.298, allocations: 0 / 1.21 GB, free: 7.543 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005366/0.2986, allocations: 347.3 kB / 1.21 GB, free: 7.203 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.827e-05/0.2986, allocations: 8 kB / 1.21 GB, free: 7.195 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.893e-05/0.2987, allocations: 23.91 kB / 1.21 GB, free: 7.172 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002941/0.299, allocations: 139.7 kB / 1.21 GB, free: 7.035 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.299, allocations: 0 / 1.21 GB, free: 7.035 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.803e-06/0.299, allocations: 3.938 kB / 1.21 GB, free: 7.031 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.68e-06/0.299, allocations: 4 kB / 1.21 GB, free: 7.027 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006096/0.2996, allocations: 363.3 kB / 1.211 GB, free: 6.621 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.2997, allocations: 12.62 kB / 1.211 GB, free: 6.609 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.472e-05/0.2997, allocations: 4.922 kB / 1.211 GB, free: 6.605 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001581/0.2999, allocations: 172.4 kB / 1.211 GB, free: 6.398 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.587e-05/0.2999, allocations: 384 / 1.211 GB, free: 6.398 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.005e-05/0.3, allocations: 8.312 kB / 1.211 GB, free: 6.391 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001437/0.3001, allocations: 50.25 kB / 1.211 GB, free: 6.336 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.6e-05/0.3001, allocations: 4.172 kB / 1.211 GB, free: 6.332 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.435e-05/0.3001, allocations: 3.938 kB / 1.211 GB, free: 6.328 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.3002, allocations: 0 / 1.211 GB, free: 6.328 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.759e-05/0.3002, allocations: 23.92 kB / 1.211 GB, free: 6.305 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002589/0.3005, allocations: 177.5 kB / 1.211 GB, free: 6.082 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001137/0.3006, allocations: 58.56 kB / 1.211 GB, free: 6.016 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.6e-05/0.3007, allocations: 28.84 kB / 1.211 GB, free: 5.984 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.569e-05/0.3007, allocations: 4 kB / 1.211 GB, free: 5.98 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.097e-05/0.3007, allocations: 30.56 kB / 1.211 GB, free: 5.941 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.052e-06/0.3007, allocations: 0 / 1.211 GB, free: 5.941 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.001313/0.3021, allocations: 0.5956 MB / 1.212 GB, free: 5.254 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.759e-05/0.3021, allocations: 55.34 kB / 1.212 GB, free: 5.188 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.117e-05/0.3022, allocations: 97.86 kB / 1.212 GB, free: 5.082 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.767e-05/0.3022, allocations: 25.7 kB / 1.212 GB, free: 5.051 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.364e-05/0.3023, allocations: 88 kB / 1.212 GB, free: 4.961 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.929e-05/0.3024, allocations: 39.58 kB / 1.212 GB, free: 4.922 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.775e-05/0.3024, allocations: 33.7 kB / 1.212 GB, free: 4.883 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001217/0.3025, allocations: 314.8 kB / 1.212 GB, free: 4.566 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.564e-05/0.3026, allocations: 19.98 kB / 1.212 GB, free: 4.547 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.049e-05/0.3026, allocations: 22.38 kB / 1.212 GB, free: 4.527 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001665/0.3028, allocations: 60.84 kB / 1.213 GB, free: 4.465 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.3028, allocations: 0 / 1.213 GB, free: 4.465 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001559/0.303, allocations: 97.97 kB / 1.213 GB, free: 4.363 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.303, allocations: 4 kB / 1.213 GB, free: 4.359 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.303, allocations: 4 kB / 1.213 GB, free: 4.355 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.836e-05/0.303, allocations: 4 kB / 1.213 GB, free: 4.352 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001095/0.3032, allocations: 19.98 kB / 1.213 GB, free: 4.332 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.3032, allocations: 0 / 1.213 GB, free: 4.332 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.738e-05/0.3032, allocations: 4 kB / 1.213 GB, free: 4.328 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.124e-06/0.3032, allocations: 4 kB / 1.213 GB, free: 4.324 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 (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.793e-05/0.3033, allocations: 113.8 kB / 1.213 GB, free: 4.203 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.934e-05/0.3033, allocations: 11.92 kB / 1.213 GB, free: 4.191 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002131/0.3036, allocations: 113.5 kB / 1.213 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.3036, allocations: 0 / 1.213 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.3036, allocations: 0 / 1.213 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.3036, allocations: 4 kB / 1.213 GB, free: 4.066 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004553/0.3041, allocations: 358.3 kB / 1.213 GB, free: 3.66 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.3041, allocations: 0 / 1.213 GB, free: 3.66 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000111/0.3042, allocations: 24.08 kB / 1.213 GB, free: 3.637 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.3042, allocations: 3.938 kB / 1.213 GB, free: 3.633 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.028e-05/0.3042, allocations: 0 / 1.213 GB, free: 3.633 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.3042, allocations: 0 / 1.213 GB, free: 3.633 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3042, allocations: 0 / 1.213 GB, free: 3.633 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002888/0.3045, allocations: 227.7 kB / 1.213 GB, free: 3.395 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001079/0.3046, allocations: 84.95 kB / 1.214 GB, free: 3.293 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.948e-05/0.3047, allocations: 8.031 kB / 1.214 GB, free: 3.285 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.974e-05/0.3048, allocations: 3.984 kB / 1.214 GB, free: 3.281 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.46e-05/0.3048, allocations: 7.984 kB / 1.214 GB, free: 3.273 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.269e-05/0.3048, allocations: 8 kB / 1.214 GB, free: 3.266 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.863e-05/0.3049, allocations: 79.34 kB / 1.214 GB, free: 3.188 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.4e-07/0.3049, allocations: 3.938 kB / 1.214 GB, free: 3.184 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002908/0.3052, allocations: 32 kB / 1.214 GB, free: 3.152 MB / 0.9669 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.0002554/0.3054, allocations: 131.2 kB / 1.214 GB, free: 3.016 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001573/0.3056, allocations: 68.78 kB / 1.214 GB, free: 2.949 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.3056, allocations: 4 kB / 1.214 GB, free: 2.945 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 4.904e-05/0.3057, allocations: 27.98 kB / 1.214 GB, free: 2.918 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002282/0.3059, allocations: 10.44 kB / 1.214 GB, free: 2.91 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005928/0.3065, allocations: 289 kB / 1.214 GB, free: 2.602 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00024/0.3067, allocations: 0.6885 MB / 1.215 GB, free: 1.887 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.367e-05/0.3068, allocations: 8 kB / 1.215 GB, free: 1.879 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.587e-05/0.3068, allocations: 11.44 kB / 1.215 GB, free: 1.867 MB / 0.9669 GB Notification: Performance of SimCode: time 4.2e-07/0.3068, allocations: 0 / 1.215 GB, free: 1.867 MB / 0.9669 GB Notification: Performance of Templates: time 0.003431/0.3103, allocations: 0.9601 MB / 1.216 GB, free: 0.9453 MB / 0.9669 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/jenkins/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