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.001138/0.001138, allocations: 99.55 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.001281/0.001281, 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.316/1.316, allocations: 223.2 MB / 239.9 MB, free: 5.238 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.49/2.49, allocations: 436.5 MB / 0.7104 GB, free: 7.859 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003145/0.0003146, allocations: 8 kB / 0.8708 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6169/0.6172, allocations: 153.6 MB / 1.021 GB, free: 1.137 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.00154/0.6188, allocations: 1 MB / 1.022 GB, free: 128 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0006597/0.6195, allocations: 339.2 kB / 1.022 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.323e-05/0.6195, allocations: 3.938 kB / 1.022 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.181e-05/0.6196, allocations: 7.938 kB / 1.022 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 3.326e-05/0.6196, allocations: 4 kB / 1.022 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003513/0.6199, allocations: 79.75 kB / 1.022 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.258e-05/0.62, allocations: 19.97 kB / 1.022 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 3.997e-05/0.6201, allocations: 0 / 1.022 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 2.556e-05/0.6201, allocations: 11.94 kB / 1.022 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.951e-05/0.6202, allocations: 11.98 kB / 1.022 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.26e-05/0.6202, allocations: 3.938 kB / 1.022 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003021/0.6205, allocations: 187.7 kB / 1.022 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.11e-05/0.6205, allocations: 8 kB / 1.022 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.07e-05/0.6205, allocations: 33.64 kB / 1.022 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001187/0.6207, allocations: 49.91 kB / 1.023 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.6207, allocations: 0 / 1.023 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.106e-06/0.6207, allocations: 4 kB / 1.023 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.389e-06/0.6207, allocations: 3.938 kB / 1.023 GB, free: 15.37 MB / 0.7794 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.0003853/0.6211, allocations: 351.2 kB / 1.023 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.6211, allocations: 11.98 kB / 1.023 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.26e-05/0.6212, allocations: 4 kB / 1.023 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001073/0.6213, allocations: 163.1 kB / 1.023 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.179e-05/0.6213, allocations: 4 kB / 1.023 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.287e-05/0.6213, allocations: 4 kB / 1.023 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000114/0.6214, allocations: 61.61 kB / 1.023 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.6215, allocations: 0 / 1.023 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.121e-05/0.6215, allocations: 0 / 1.023 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.6215, allocations: 0 / 1.023 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.972e-05/0.6215, allocations: 23.92 kB / 1.023 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001828/0.6217, allocations: 169.6 kB / 1.023 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 9.867e-05/0.6218, allocations: 58.56 kB / 1.023 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.098e-05/0.6219, allocations: 4 kB / 1.023 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.362e-05/0.6219, allocations: 30.56 kB / 1.023 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.112e-06/0.6219, allocations: 0 / 1.023 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.001144/0.623, allocations: 0.5995 MB / 1.024 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.446e-05/0.6231, allocations: 51.41 kB / 1.024 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.135e-05/0.6232, allocations: 97.84 kB / 1.024 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.73e-05/0.6232, allocations: 29.7 kB / 1.024 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.365e-05/0.6232, allocations: 80.14 kB / 1.024 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.503e-05/0.6233, allocations: 39.45 kB / 1.024 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.863e-06/0.6233, allocations: 8.219 kB / 1.024 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.917e-05/0.6234, allocations: 314.8 kB / 1.025 GB, free: 13 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.001e-05/0.6234, allocations: 23.98 kB / 1.025 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.399e-05/0.6235, allocations: 19.12 kB / 1.025 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.658e-05/0.6235, allocations: 27.98 kB / 1.025 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.51e-07/0.6235, allocations: 0 / 1.025 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001479/0.6237, allocations: 105.5 kB / 1.025 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.6237, allocations: 4 kB / 1.025 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.6237, allocations: 0 / 1.025 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.6237, allocations: 0 / 1.025 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001144/0.6239, allocations: 31.92 kB / 1.025 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.6239, allocations: 0 / 1.025 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.483e-05/0.6239, allocations: 0 / 1.025 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.896e-06/0.6239, allocations: 4 kB / 1.025 GB, free: 12.79 MB / 0.7794 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 7.605e-05/0.624, allocations: 109.8 kB / 1.025 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.254e-05/0.624, allocations: 7.953 kB / 1.025 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002137/0.6242, allocations: 117.5 kB / 1.025 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.6243, allocations: 4 kB / 1.025 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.6243, allocations: 4 kB / 1.025 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.6243, allocations: 0 / 1.025 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004098/0.6247, allocations: 346.5 kB / 1.025 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.6247, allocations: 4 kB / 1.025 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001105/0.6248, allocations: 23.92 kB / 1.025 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.205e-06/0.6248, allocations: 0 / 1.025 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.076e-05/0.6248, allocations: 4 kB / 1.025 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.6249, allocations: 4 kB / 1.025 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.6249, allocations: 0 / 1.025 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000247/0.6251, allocations: 207.5 kB / 1.026 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.287e-05/0.6252, allocations: 88.91 kB / 1.026 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.642e-05/0.6252, allocations: 8.016 kB / 1.026 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.546e-05/0.6253, allocations: 0 / 1.026 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.661e-05/0.6253, allocations: 15.92 kB / 1.026 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.899e-06/0.6253, allocations: 7.984 kB / 1.026 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.933e-05/0.6254, allocations: 75.34 kB / 1.026 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.6254, allocations: 4.094 kB / 1.026 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002639/0.6256, allocations: 35.94 kB / 1.026 GB, free: 11.63 MB / 0.7794 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.0002046/0.6259, allocations: 141.7 kB / 1.026 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001253/0.626, allocations: 55.92 kB / 1.026 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.626, allocations: 7.938 kB / 1.026 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 4.483e-05/0.626, allocations: 31.98 kB / 1.026 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001417/0.6262, allocations: 0 / 1.026 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005023/0.6267, allocations: 344.6 kB / 1.026 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002404/0.627, allocations: 0.6887 MB / 1.027 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.124e-05/0.627, allocations: 11.98 kB / 1.027 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.127e-05/0.627, allocations: 15.44 kB / 1.027 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of SimCode: time 2.2e-07/0.627, allocations: 0 / 1.027 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of Templates: time 0.00297/0.63, allocations: 0.8896 MB / 1.028 GB, free: 9.426 MB / 0.7794 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","../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