Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.34/1.34, allocations: 252 MB / 266.9 MB, free: 11.06 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001086/0.001086, allocations: 187.4 kB / 326.5 MB, free: 2.27 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.693/1.693, allocations: 205.4 MB / 0.5775 GB, free: 20.29 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009037/0.0009037, allocations: 99.67 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003151/0.0003152, allocations: 10.84 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2056/0.2059, allocations: 106.3 MB / 0.9001 GB, free: 63.96 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1587/0.3647, allocations: 132.6 MB / 1.03 GB, free: 11.18 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000238/0.365, allocations: 83.88 kB / 1.03 GB, free: 11.1 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01275/0.3777, allocations: 4.507 MB / 1.034 GB, free: 6.586 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.904e-06/0.3778, allocations: 0 / 1.034 GB, free: 6.586 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 8.436e-06/0.3778, allocations: 4 kB / 1.034 GB, free: 6.582 MB / 0.6823 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.0003139/0.3781, allocations: 359.2 kB / 1.034 GB, free: 6.184 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.3781, allocations: 12.03 kB / 1.034 GB, free: 6.172 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.139e-05/0.3782, allocations: 0 / 1.034 GB, free: 6.172 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001011/0.3783, allocations: 167 kB / 1.035 GB, free: 5.969 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.3783, allocations: 8 kB / 1.035 GB, free: 5.961 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.259e-05/0.3783, allocations: 4 kB / 1.035 GB, free: 5.957 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001154/0.3785, allocations: 45.67 kB / 1.035 GB, free: 5.906 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.3785, allocations: 7.844 kB / 1.035 GB, free: 5.898 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.457e-05/0.3785, allocations: 12 kB / 1.035 GB, free: 5.887 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.3785, allocations: 0 / 1.035 GB, free: 5.887 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.053e-05/0.3786, allocations: 19.98 kB / 1.035 GB, free: 5.867 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001828/0.3788, allocations: 165.6 kB / 1.035 GB, free: 5.656 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 9.247e-05/0.3789, allocations: 54.56 kB / 1.035 GB, free: 5.594 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.27e-05/0.3789, allocations: 240 / 1.035 GB, free: 5.594 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.575e-05/0.3789, allocations: 34.55 kB / 1.035 GB, free: 5.551 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 8.52e-07/0.3789, allocations: 7.938 kB / 1.035 GB, free: 5.543 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11): time 0.001067/0.38, allocations: 0.5837 MB / 1.035 GB, free: 4.867 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.91e-05/0.38, allocations: 55.41 kB / 1.036 GB, free: 4.801 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.676e-05/0.3801, allocations: 92.98 kB / 1.036 GB, free: 4.703 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.655e-05/0.3801, allocations: 33.7 kB / 1.036 GB, free: 4.664 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 3.132e-05/0.3802, allocations: 84.06 kB / 1.036 GB, free: 4.578 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.749e-05/0.3802, allocations: 39.44 kB / 1.036 GB, free: 4.539 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.531e-06/0.3802, allocations: 4 kB / 1.036 GB, free: 4.535 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001052/0.3803, allocations: 318.8 kB / 1.036 GB, free: 4.215 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.856e-05/0.3804, allocations: 23.98 kB / 1.036 GB, free: 4.191 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.363e-05/0.3804, allocations: 19.98 kB / 1.036 GB, free: 4.172 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.944e-05/0.3805, allocations: 34.38 kB / 1.036 GB, free: 4.141 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.72e-07/0.3805, allocations: 4.219 kB / 1.036 GB, free: 4.137 MB / 0.6823 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001279/0.3806, allocations: 97.47 kB / 1.036 GB, free: 4.035 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.3806, allocations: 4 kB / 1.036 GB, free: 4.031 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-06/0.3806, allocations: 0 / 1.036 GB, free: 4.031 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.3807, allocations: 4 kB / 1.036 GB, free: 4.027 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001059/0.3808, allocations: 19.98 kB / 1.036 GB, free: 4.008 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.3808, allocations: 0 / 1.036 GB, free: 4.008 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.618e-05/0.3808, allocations: 4 kB / 1.036 GB, free: 4.004 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.963e-06/0.3808, allocations: 4 kB / 1.036 GB, free: 4 MB / 0.6823 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.584e-05/0.3809, allocations: 121.8 kB / 1.036 GB, free: 3.871 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.252e-05/0.3809, allocations: 4 kB / 1.036 GB, free: 3.867 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001875/0.3811, allocations: 117.5 kB / 1.037 GB, free: 3.746 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.3811, allocations: 0 / 1.037 GB, free: 3.746 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.3811, allocations: 0 / 1.037 GB, free: 3.746 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.3811, allocations: 0 / 1.037 GB, free: 3.746 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003507/0.3815, allocations: 354.4 kB / 1.037 GB, free: 3.344 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.3815, allocations: 0 / 1.037 GB, free: 3.344 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001039/0.3816, allocations: 19.98 kB / 1.037 GB, free: 3.324 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.586e-06/0.3816, allocations: 12 kB / 1.037 GB, free: 3.312 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/0.3817, allocations: 4 kB / 1.037 GB, free: 3.309 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.3817, allocations: 0 / 1.037 GB, free: 3.309 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.3817, allocations: 0 / 1.037 GB, free: 3.309 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002022/0.3819, allocations: 207.4 kB / 1.037 GB, free: 3.09 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.461e-05/0.3819, allocations: 89.03 kB / 1.037 GB, free: 2.984 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.603e-05/0.3819, allocations: 4 kB / 1.037 GB, free: 2.98 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.317e-05/0.382, allocations: 8.062 kB / 1.037 GB, free: 2.973 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.012e-05/0.3821, allocations: 7.938 kB / 1.037 GB, free: 2.965 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.927e-06/0.3821, allocations: 7.984 kB / 1.037 GB, free: 2.957 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 2.669e-05/0.3821, allocations: 79.28 kB / 1.037 GB, free: 2.879 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3821, allocations: 0 / 1.037 GB, free: 2.879 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002666/0.3824, allocations: 39.94 kB / 1.037 GB, free: 2.84 MB / 0.6823 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.0001954/0.3826, allocations: 143.1 kB / 1.037 GB, free: 2.691 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0001249/0.3827, allocations: 63.91 kB / 1.038 GB, free: 2.629 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.3827, allocations: 8.031 kB / 1.038 GB, free: 2.621 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 4.413e-05/0.3828, allocations: 28 kB / 1.038 GB, free: 2.594 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001248/0.3829, allocations: 9.984 kB / 1.038 GB, free: 2.586 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000478/0.3834, allocations: 336.6 kB / 1.038 GB, free: 2.223 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002101/0.3836, allocations: 0.6926 MB / 1.039 GB, free: 1.504 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 4.245e-05/0.3837, allocations: 4 kB / 1.039 GB, free: 1.5 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.631e-05/0.3837, allocations: 15.44 kB / 1.039 GB, free: 1.484 MB / 0.6823 GB Notification: Performance of SimCode: time 2.2e-07/0.3837, allocations: 0 / 1.039 GB, free: 1.484 MB / 0.6823 GB Notification: Performance of Templates: time 0.002644/0.3864, allocations: 0.8625 MB / 1.039 GB, free: 0.6562 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","../files/Buildings_maint.7.0.x_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