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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001339/0.00134, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.001858/0.001858, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 223.2 MB / 239.9 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.44/2.44, allocations: 390.3 MB / 0.6653 GB, free: 3.02 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003905/0.0003906, allocations: 8 kB / 0.8145 GB, free: 14.33 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7081/0.7085, allocations: 142.3 MB / 0.9535 GB, free: 8.078 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.0009669/0.7095, allocations: 0.9884 MB / 0.9545 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0004809/0.71, allocations: 342.8 kB / 0.9548 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.847e-05/0.7101, allocations: 0 / 0.9548 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.128e-05/0.7101, allocations: 5 kB / 0.9548 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.018e-05/0.7101, allocations: 3.984 kB / 0.9548 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002825/0.7104, allocations: 84.67 kB / 0.9549 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.203e-05/0.7105, allocations: 19.84 kB / 0.9549 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.306e-05/0.7105, allocations: 1.5 kB / 0.9549 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.018e-05/0.7105, allocations: 14.89 kB / 0.9549 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.482e-05/0.7106, allocations: 12.36 kB / 0.9549 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.061e-05/0.7106, allocations: 1.469 kB / 0.9549 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002494/0.7108, allocations: 181.6 kB / 0.9551 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.016e-05/0.7109, allocations: 10.28 kB / 0.9551 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.894e-05/0.7109, allocations: 33.36 kB / 0.9552 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001035/0.711, allocations: 53.98 kB / 0.9552 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 1.934e-06/0.711, allocations: 1.562 kB / 0.9552 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.303e-06/0.711, allocations: 0 / 0.9552 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.486e-06/0.711, allocations: 0 / 0.9552 GB, free: 6.77 MB / 0.7169 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.0002466/0.7113, allocations: 351.7 kB / 0.9555 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.852e-05/0.7113, allocations: 13.31 kB / 0.9556 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.814e-05/0.7113, allocations: 6.266 kB / 0.9556 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.088e-05/0.7114, allocations: 164.2 kB / 0.9557 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.918e-06/0.7114, allocations: 9.266 kB / 0.9557 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.128e-05/0.7114, allocations: 7.469 kB / 0.9557 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.353e-05/0.7115, allocations: 57.17 kB / 0.9558 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.7116, allocations: 1 kB / 0.9558 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.736e-06/0.7116, allocations: 0 / 0.9558 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.7116, allocations: 1.062 kB / 0.9558 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.239e-05/0.7116, allocations: 23.16 kB / 0.9558 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001177/0.7118, allocations: 166 kB / 0.956 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.342e-05/0.7118, allocations: 59.41 kB / 0.956 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.729e-05/0.7119, allocations: 1.438 kB / 0.956 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.525e-05/0.7119, allocations: 39.94 kB / 0.9561 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 9.32e-07/0.7119, allocations: 0 / 0.9561 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0008914/0.7128, allocations: 0.5874 MB / 0.9566 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.117e-05/0.7128, allocations: 56.55 kB / 0.9567 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.495e-05/0.7129, allocations: 97.16 kB / 0.9568 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.758e-06/0.7129, allocations: 29.7 kB / 0.9568 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.346e-05/0.7129, allocations: 81.2 kB / 0.9569 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.662e-05/0.7129, allocations: 35.7 kB / 0.9569 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.739e-06/0.7129, allocations: 5.406 kB / 0.9569 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.394e-05/0.713, allocations: 315.8 kB / 0.9572 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.788e-05/0.713, allocations: 23.8 kB / 0.9573 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.352e-05/0.7131, allocations: 26.83 kB / 0.9573 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.381e-05/0.7131, allocations: 25.84 kB / 0.9573 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.21e-07/0.7131, allocations: 0 / 0.9573 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001214/0.7132, allocations: 94.81 kB / 0.9574 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.12e-05/0.7133, allocations: 5.344 kB / 0.9574 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.557e-06/0.7133, allocations: 0 / 0.9574 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.027e-06/0.7133, allocations: 1.375 kB / 0.9574 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.845e-05/0.7134, allocations: 33.2 kB / 0.9574 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.7134, allocations: 1.25 kB / 0.9574 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.436e-05/0.7134, allocations: 3.953 kB / 0.9574 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-06/0.7134, allocations: 3.719 kB / 0.9574 GB, free: 4.52 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.487e-05/0.7135, allocations: 111.9 kB / 0.9576 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.165e-05/0.7135, allocations: 3.094 kB / 0.9576 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001739/0.7137, allocations: 110.6 kB / 0.9577 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.7137, allocations: 1.156 kB / 0.9577 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.7137, allocations: 5.062 kB / 0.9577 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.7137, allocations: 0 / 0.9577 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002748/0.714, allocations: 356.1 kB / 0.958 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.714, allocations: 0.9062 kB / 0.958 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001078/0.7141, allocations: 21.39 kB / 0.958 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.7141, allocations: 0 / 0.958 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-06/0.7141, allocations: 10.16 kB / 0.958 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.7141, allocations: 0 / 0.958 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.7141, allocations: 5.172 kB / 0.958 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001828/0.7143, allocations: 216.6 kB / 0.9582 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.564e-05/0.7144, allocations: 86.28 kB / 0.9583 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.374e-05/0.7144, allocations: 1.344 kB / 0.9583 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.51e-05/0.7145, allocations: 1.312 kB / 0.9583 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.968e-05/0.7145, allocations: 16.38 kB / 0.9583 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.755e-06/0.7145, allocations: 2.594 kB / 0.9584 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.514e-05/0.7145, allocations: 80.81 kB / 0.9584 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7145, allocations: 4.094 kB / 0.9584 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000255/0.7148, allocations: 40.38 kB / 0.9585 GB, free: 3.559 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001541/0.7149, allocations: 137.7 kB / 0.9586 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001162/0.7151, allocations: 59.14 kB / 0.9587 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.7151, allocations: 0 / 0.9587 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.947e-05/0.7151, allocations: 31.92 kB / 0.9587 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001339/0.7153, allocations: 2.562 kB / 0.9587 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004253/0.7157, allocations: 348.1 kB / 0.959 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001062/0.7158, allocations: 0.6883 MB / 0.9597 GB, free: 2.41 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.297e-05/0.7159, allocations: 17.61 kB / 0.9597 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.998e-05/0.7159, allocations: 13.47 kB / 0.9597 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of SimCode: time 3.31e-07/0.7159, allocations: 0 / 0.9597 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of Templates: time 0.002691/0.7186, allocations: 0.8853 MB / 0.9606 GB, free: 1.965 MB / 0.7169 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","../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