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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.247/2.247, allocations: 390.3 MB / 402.8 MB, free: 6.703 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001242/0.001243, allocations: 168.9 kB / 496.1 MB, free: 12.89 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.64/1.64, allocations: 221.3 MB / 0.7915 GB, free: 5.449 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 87.97 kB / 0.9317 GB, free: 5.773 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.808e-05/4.817e-05, allocations: 0 / 1.079 GB, free: 140.6 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2881/0.2882, allocations: 143 MB / 1.219 GB, free: 13.54 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9462/1.234, allocations: 150.9 MB / 1.366 GB, free: 3.113 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002764/1.235, allocations: 83.94 kB / 1.366 GB, free: 3.062 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01361/1.248, allocations: 4.559 MB / 1.371 GB, free: 15.22 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.184e-06/1.248, allocations: 0 / 1.371 GB, free: 15.22 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.896e-06/1.248, allocations: 4 kB / 1.371 GB, free: 15.22 MB / 0.8386 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.0003729/1.249, allocations: 333.8 kB / 1.371 GB, free: 14.85 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.104e-05/1.249, allocations: 16.03 kB / 1.371 GB, free: 14.84 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.825e-05/1.249, allocations: 12.56 kB / 1.371 GB, free: 14.82 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001472/1.249, allocations: 167 kB / 1.371 GB, free: 14.62 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.694e-05/1.249, allocations: 7.562 kB / 1.371 GB, free: 14.62 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.75e-05/1.249, allocations: 7.906 kB / 1.371 GB, free: 14.61 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001282/1.249, allocations: 51.88 kB / 1.371 GB, free: 14.56 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/1.249, allocations: 0 / 1.371 GB, free: 14.56 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.198e-05/1.249, allocations: 0 / 1.371 GB, free: 14.56 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/1.249, allocations: 0 / 1.371 GB, free: 14.56 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.283e-05/1.249, allocations: 18.56 kB / 1.371 GB, free: 14.55 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001945/1.25, allocations: 171.7 kB / 1.371 GB, free: 14.34 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 9.825e-05/1.25, allocations: 52.02 kB / 1.372 GB, free: 14.29 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.371e-05/1.25, allocations: 30.78 kB / 1.372 GB, free: 14.26 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.373e-05/1.25, allocations: 4.234 kB / 1.372 GB, free: 14.26 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.921e-05/1.25, allocations: 38.44 kB / 1.372 GB, free: 14.21 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.784e-06/1.25, allocations: 4 kB / 1.372 GB, free: 14.21 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.000992/1.251, allocations: 0.5524 MB / 1.372 GB, free: 13.61 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.358e-05/1.251, allocations: 51.41 kB / 1.372 GB, free: 13.55 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.661e-05/1.251, allocations: 92.95 kB / 1.372 GB, free: 13.45 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.383e-05/1.251, allocations: 28.58 kB / 1.372 GB, free: 13.42 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.208e-05/1.251, allocations: 84.27 kB / 1.372 GB, free: 13.33 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.407e-05/1.251, allocations: 45.19 kB / 1.372 GB, free: 13.29 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.308e-06/1.251, allocations: 0 / 1.372 GB, free: 13.29 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001231/1.251, allocations: 322.3 kB / 1.373 GB, free: 12.97 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.972e-05/1.251, allocations: 18.81 kB / 1.373 GB, free: 12.96 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.691e-05/1.251, allocations: 27.25 kB / 1.373 GB, free: 12.94 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.493e-05/1.251, allocations: 16.12 kB / 1.373 GB, free: 12.93 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.52e-07/1.251, allocations: 0 / 1.373 GB, free: 12.93 MB / 0.8386 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001554/1.252, allocations: 106.8 kB / 1.373 GB, free: 12.84 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/1.252, allocations: 4 kB / 1.373 GB, free: 12.84 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/1.252, allocations: 4.094 kB / 1.373 GB, free: 12.83 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/1.252, allocations: 3.938 kB / 1.373 GB, free: 12.83 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001414/1.252, allocations: 23.98 kB / 1.373 GB, free: 12.8 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/1.252, allocations: 0 / 1.373 GB, free: 12.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.544e-05/1.252, allocations: 3.938 kB / 1.373 GB, free: 12.8 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.234e-05/1.252, allocations: 7.953 kB / 1.373 GB, free: 12.79 MB / 0.8386 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 () * 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.528e-05/1.252, allocations: 105.5 kB / 1.373 GB, free: 12.69 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.638e-05/1.252, allocations: 10.47 kB / 1.373 GB, free: 12.68 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002139/1.252, allocations: 105 kB / 1.373 GB, free: 12.59 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/1.252, allocations: 0 / 1.373 GB, free: 12.59 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/1.252, allocations: 3.984 kB / 1.373 GB, free: 12.58 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/1.252, allocations: 0 / 1.373 GB, free: 12.58 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004248/1.253, allocations: 351.4 kB / 1.373 GB, free: 12.21 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/1.253, allocations: 0 / 1.373 GB, free: 12.21 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001118/1.253, allocations: 24 kB / 1.373 GB, free: 12.18 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/1.253, allocations: 0 / 1.373 GB, free: 12.18 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.002e-05/1.253, allocations: 3.438 kB / 1.373 GB, free: 12.18 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/1.253, allocations: 7.984 kB / 1.374 GB, free: 12.18 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/1.253, allocations: 3.984 kB / 1.374 GB, free: 12.17 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002546/1.253, allocations: 216.2 kB / 1.374 GB, free: 11.97 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.618e-05/1.253, allocations: 85.12 kB / 1.374 GB, free: 11.87 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.516e-05/1.253, allocations: 0 / 1.374 GB, free: 11.87 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.895e-05/1.253, allocations: 7.125 kB / 1.374 GB, free: 11.86 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.034e-05/1.253, allocations: 7.984 kB / 1.374 GB, free: 11.86 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.773e-06/1.253, allocations: 0 / 1.374 GB, free: 11.86 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.464e-05/1.253, allocations: 90.73 kB / 1.374 GB, free: 11.77 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.81e-07/1.253, allocations: 0 / 1.374 GB, free: 11.77 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.00029/1.254, allocations: 39.44 kB / 1.374 GB, free: 11.73 MB / 0.8386 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 () * 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.0002684/1.254, allocations: 146.9 kB / 1.374 GB, free: 11.59 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001381/1.254, allocations: 58.38 kB / 1.374 GB, free: 11.54 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/1.254, allocations: 0 / 1.374 GB, free: 11.54 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.84e-05/1.254, allocations: 39.05 kB / 1.374 GB, free: 11.51 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001469/1.254, allocations: 14.73 kB / 1.374 GB, free: 11.5 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004516/1.255, allocations: 217.7 kB / 1.374 GB, free: 11.27 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002716/1.255, allocations: 0.6926 MB / 1.375 GB, free: 10.55 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.224e-05/1.255, allocations: 15.92 kB / 1.375 GB, free: 10.54 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.11e-05/1.255, allocations: 11.44 kB / 1.375 GB, free: 10.53 MB / 0.8386 GB Notification: Performance of SimCode: time 1.523e-06/1.255, allocations: 0 / 1.375 GB, free: 10.53 MB / 0.8386 GB Notification: Performance of Templates: time 0.003269/1.258, allocations: 0.8601 MB / 1.376 GB, free: 9.715 MB / 0.8386 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