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.325/2.325, allocations: 393.5 MB / 408.4 MB, free: 11.08 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.001201/0.001201, allocations: 187.9 kB / 0.4902 GB, free: 2.273 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.699/1.699, allocations: 223.2 MB / 0.7992 GB, free: 14.7 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.001059/0.001059, allocations: 94.39 kB / 0.9396 GB, free: 1.859 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004946/0.000495, allocations: 10.31 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4239/0.4244, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2211/0.6456, allocations: 151 MB / 1.377 GB, free: 2.453 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002411/0.6459, allocations: 79.95 kB / 1.377 GB, free: 2.375 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01315/0.6591, allocations: 4.57 MB / 1.381 GB, free: 13.8 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.493e-06/0.6591, allocations: 0 / 1.381 GB, free: 13.8 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 7.134e-06/0.6591, allocations: 0 / 1.381 GB, free: 13.8 MB / 0.8855 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.0003779/0.6595, allocations: 343.4 kB / 1.382 GB, free: 13.41 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/0.6596, allocations: 8.562 kB / 1.382 GB, free: 13.41 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.891e-05/0.6596, allocations: 23.78 kB / 1.382 GB, free: 13.38 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001289/0.6598, allocations: 167 kB / 1.382 GB, free: 13.18 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.718e-05/0.6598, allocations: 8 kB / 1.382 GB, free: 13.17 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.596e-05/0.6598, allocations: 0 / 1.382 GB, free: 13.17 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001334/0.66, allocations: 49.69 kB / 1.382 GB, free: 13.12 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.66, allocations: 0 / 1.382 GB, free: 13.12 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.185e-05/0.66, allocations: 0 / 1.382 GB, free: 13.12 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.141e-06/0.66, allocations: 4 kB / 1.382 GB, free: 13.11 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.372e-05/0.6601, allocations: 15.98 kB / 1.382 GB, free: 13.1 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000201/0.6603, allocations: 177.6 kB / 1.382 GB, free: 12.88 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001152/0.6604, allocations: 58.5 kB / 1.382 GB, free: 12.81 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.062e-05/0.6604, allocations: 4 kB / 1.382 GB, free: 12.8 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.898e-05/0.6605, allocations: 30.56 kB / 1.382 GB, free: 12.77 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 8.81e-07/0.6605, allocations: 3.938 kB / 1.382 GB, free: 12.76 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11): time 0.00116/0.6617, allocations: 0.5876 MB / 1.383 GB, free: 12.08 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.62e-05/0.6617, allocations: 51.41 kB / 1.383 GB, free: 12.02 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.845e-05/0.6618, allocations: 89 kB / 1.383 GB, free: 11.93 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.55e-05/0.6618, allocations: 29.7 kB / 1.383 GB, free: 11.89 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 3.801e-05/0.6618, allocations: 80.14 kB / 1.383 GB, free: 11.81 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 4.941e-05/0.6619, allocations: 47.48 kB / 1.383 GB, free: 11.76 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.416e-06/0.6619, allocations: 4.094 kB / 1.383 GB, free: 11.76 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001157/0.662, allocations: 326.7 kB / 1.383 GB, free: 11.43 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.087e-05/0.6621, allocations: 20 kB / 1.383 GB, free: 11.41 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.884e-05/0.6621, allocations: 23.98 kB / 1.383 GB, free: 11.39 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.042e-05/0.6622, allocations: 31.25 kB / 1.383 GB, free: 11.36 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.52e-07/0.6622, allocations: 0 / 1.383 GB, free: 11.36 MB / 0.8855 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001421/0.6623, allocations: 89.67 kB / 1.383 GB, free: 11.27 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.6624, allocations: 6.188 kB / 1.383 GB, free: 11.26 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.6624, allocations: 0 / 1.383 GB, free: 11.26 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.6624, allocations: 4 kB / 1.383 GB, free: 11.26 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001129/0.6625, allocations: 27.94 kB / 1.383 GB, free: 11.23 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.368e-06/0.6625, allocations: 3.984 kB / 1.383 GB, free: 11.23 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.371e-05/0.6626, allocations: 0 / 1.383 GB, free: 11.23 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.147e-06/0.6626, allocations: 4 kB / 1.383 GB, free: 11.22 MB / 0.8855 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 9.183e-05/0.6627, allocations: 117.8 kB / 1.384 GB, free: 11.1 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.263e-05/0.6627, allocations: 3.906 kB / 1.384 GB, free: 11.09 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001995/0.6629, allocations: 109.8 kB / 1.384 GB, free: 10.98 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.6629, allocations: 4 kB / 1.384 GB, free: 10.98 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.6629, allocations: 0 / 1.384 GB, free: 10.98 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/0.6629, allocations: 7.969 kB / 1.384 GB, free: 10.97 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004098/0.6634, allocations: 350.5 kB / 1.384 GB, free: 10.57 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.6634, allocations: 3.938 kB / 1.384 GB, free: 10.57 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001084/0.6635, allocations: 19.94 kB / 1.384 GB, free: 10.55 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.6635, allocations: 0 / 1.384 GB, free: 10.55 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.316e-05/0.6635, allocations: 8 kB / 1.384 GB, free: 10.54 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.6635, allocations: 0 / 1.384 GB, free: 10.54 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.6635, allocations: 7.984 kB / 1.384 GB, free: 10.53 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002395/0.6638, allocations: 211.4 kB / 1.384 GB, free: 10.31 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 3.977e-05/0.6638, allocations: 81.14 kB / 1.384 GB, free: 10.21 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.561e-05/0.6638, allocations: 0 / 1.384 GB, free: 10.21 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.941e-05/0.6639, allocations: 0 / 1.384 GB, free: 10.21 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.56e-05/0.664, allocations: 11.98 kB / 1.384 GB, free: 10.2 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.017e-05/0.664, allocations: 4 kB / 1.384 GB, free: 10.2 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 3.265e-05/0.664, allocations: 87.22 kB / 1.384 GB, free: 10.11 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.21e-07/0.664, allocations: 4 kB / 1.384 GB, free: 10.11 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002847/0.6643, allocations: 47.88 kB / 1.384 GB, free: 10.06 MB / 0.8855 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.0002403/0.6646, allocations: 147.9 kB / 1.385 GB, free: 9.902 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0001488/0.6647, allocations: 55.98 kB / 1.385 GB, free: 9.848 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.6647, allocations: 0 / 1.385 GB, free: 9.848 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 4.82e-05/0.6648, allocations: 36.36 kB / 1.385 GB, free: 9.812 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001402/0.6649, allocations: 4.219 kB / 1.385 GB, free: 9.809 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005615/0.6655, allocations: 344.5 kB / 1.385 GB, free: 9.438 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002605/0.6658, allocations: 0.6926 MB / 1.386 GB, free: 8.719 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 5.391e-05/0.6658, allocations: 11.98 kB / 1.386 GB, free: 8.707 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.211e-05/0.6659, allocations: 11.44 kB / 1.386 GB, free: 8.699 MB / 0.8855 GB Notification: Performance of SimCode: time 2.4e-07/0.6659, allocations: 0 / 1.386 GB, free: 8.699 MB / 0.8855 GB Notification: Performance of Templates: time 0.003102/0.669, allocations: 0.8471 MB / 1.387 GB, free: 7.887 MB / 0.8855 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