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_DerivativeCheck.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_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.378/1.378, allocations: 249.3 MB / 261.8 MB, free: 5.891 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001028/0.001029, allocations: 175.9 kB / 321.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.206/1.206, allocations: 205.2 MB / 0.572 GB, free: 10.7 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.0009316/0.0009316, allocations: 86.48 kB / 0.6764 GB, free: 15.67 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 2.607e-05/2.617e-05, allocations: 4 kB / 0.7879 GB, free: 97.11 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.15/0.15, allocations: 106.3 MB / 0.8918 GB, free: 6.684 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5433/0.6933, allocations: 132.4 MB / 1.021 GB, free: 2.348 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002306/0.6936, allocations: 87.75 kB / 1.021 GB, free: 2.293 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01131/0.7049, allocations: 4.002 MB / 1.025 GB, free: 14.92 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.533e-06/0.705, allocations: 0 / 1.025 GB, free: 14.92 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 6.292e-06/0.705, allocations: 0 / 1.025 GB, free: 14.92 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.000293/0.7053, allocations: 342.2 kB / 1.025 GB, free: 14.55 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.7053, allocations: 8.031 kB / 1.025 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.086e-05/0.7054, allocations: 0 / 1.025 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.7055, allocations: 171 kB / 1.026 GB, free: 14.33 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.066e-05/0.7055, allocations: 0 / 1.026 GB, free: 14.33 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.011e-05/0.7055, allocations: 0 / 1.026 GB, free: 14.33 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001103/0.7056, allocations: 37.39 kB / 1.026 GB, free: 14.29 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.7057, allocations: 3.938 kB / 1.026 GB, free: 14.29 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.151e-05/0.7057, allocations: 4 kB / 1.026 GB, free: 14.29 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.7057, allocations: 4 kB / 1.026 GB, free: 14.28 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.236e-05/0.7057, allocations: 15.48 kB / 1.026 GB, free: 14.27 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001863/0.7059, allocations: 165.5 kB / 1.026 GB, free: 14.06 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001538/0.7061, allocations: 37.45 kB / 1.026 GB, free: 14.02 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.501e-05/0.7061, allocations: 24.17 kB / 1.026 GB, free: 14 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.624e-05/0.7062, allocations: 0 / 1.026 GB, free: 14 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.397e-05/0.7062, allocations: 46.44 kB / 1.026 GB, free: 13.95 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=4): time 8.22e-07/0.7062, allocations: 0 / 1.026 GB, free: 13.95 MB / 0.6511 GB Notification: Performance of matching and sorting (n=6): time 0.0005548/0.7068, allocations: 296.9 kB / 1.026 GB, free: 13.62 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.901e-05/0.7068, allocations: 51.41 kB / 1.026 GB, free: 13.56 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.76e-05/0.7069, allocations: 92.98 kB / 1.026 GB, free: 13.46 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.374e-05/0.7069, allocations: 28.7 kB / 1.026 GB, free: 13.43 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 3.792e-05/0.7069, allocations: 80.14 kB / 1.026 GB, free: 13.35 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.514e-05/0.707, allocations: 19.44 kB / 1.026 GB, free: 13.34 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.916e-06/0.707, allocations: 4 kB / 1.026 GB, free: 13.33 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001016/0.7071, allocations: 326.7 kB / 1.027 GB, free: 13.01 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.066e-05/0.7071, allocations: 4 kB / 1.027 GB, free: 13 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.178e-05/0.7071, allocations: 15.8 kB / 1.027 GB, free: 12.99 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.647e-05/0.7072, allocations: 14.94 kB / 1.027 GB, free: 12.98 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.31e-07/0.7072, allocations: 0 / 1.027 GB, free: 12.98 MB / 0.6511 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001153/0.7073, allocations: 68.22 kB / 1.027 GB, free: 12.91 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.7073, allocations: 4 kB / 1.027 GB, free: 12.91 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.7073, allocations: 0 / 1.027 GB, free: 12.91 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.538e-06/0.7073, allocations: 0 / 1.027 GB, free: 12.91 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.141e-05/0.7074, allocations: 19.98 kB / 1.027 GB, free: 12.89 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5e-06/0.7074, allocations: 0 / 1.027 GB, free: 12.89 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.682e-05/0.7074, allocations: 2.438 kB / 1.027 GB, free: 12.89 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.793e-06/0.7075, allocations: 4 kB / 1.027 GB, free: 12.89 MB / 0.6511 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 (7): * Single equations (assignments): 7 * 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 5.602e-05/0.7075, allocations: 107.8 kB / 1.027 GB, free: 12.78 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.257e-06/0.7075, allocations: 0 / 1.027 GB, free: 12.78 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001321/0.7077, allocations: 71.16 kB / 1.027 GB, free: 12.71 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.7077, allocations: 0 / 1.027 GB, free: 12.71 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.7077, allocations: 7.984 kB / 1.027 GB, free: 12.7 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.604e-06/0.7077, allocations: 0 / 1.027 GB, free: 12.7 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000293/0.708, allocations: 314.7 kB / 1.027 GB, free: 12.35 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.708, allocations: 4.188 kB / 1.027 GB, free: 12.34 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.162e-05/0.7081, allocations: 14.75 kB / 1.027 GB, free: 12.33 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.7081, allocations: 0 / 1.027 GB, free: 12.33 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.367e-06/0.7081, allocations: 4 kB / 1.027 GB, free: 12.33 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.7081, allocations: 3.938 kB / 1.027 GB, free: 12.32 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.7081, allocations: 3.984 kB / 1.027 GB, free: 12.32 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00017/0.7083, allocations: 193.8 kB / 1.028 GB, free: 12.12 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.288e-05/0.7084, allocations: 77.11 kB / 1.028 GB, free: 12.03 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.728e-05/0.7084, allocations: 8.016 kB / 1.028 GB, free: 12.02 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.145e-05/0.7084, allocations: 6.812 kB / 1.028 GB, free: 12.02 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.15e-05/0.7085, allocations: 7.953 kB / 1.028 GB, free: 12.01 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.21e-06/0.7085, allocations: 4.062 kB / 1.028 GB, free: 12 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 3.848e-05/0.7085, allocations: 82.53 kB / 1.028 GB, free: 11.93 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7085, allocations: 0 / 1.028 GB, free: 11.93 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002329/0.7088, allocations: 27.98 kB / 1.028 GB, free: 11.9 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (m_flow_comp) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.0001953/0.709, allocations: 127.2 kB / 1.028 GB, free: 11.77 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 8.651e-05/0.7091, allocations: 35 kB / 1.028 GB, free: 11.74 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.7091, allocations: 3.938 kB / 1.028 GB, free: 11.73 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 3.239e-05/0.7091, allocations: 15.19 kB / 1.028 GB, free: 11.72 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001251/0.7092, allocations: 8.047 kB / 1.028 GB, free: 11.71 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000291/0.7095, allocations: 152.6 kB / 1.028 GB, free: 11.55 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002308/0.7098, allocations: 0.6848 MB / 1.029 GB, free: 10.84 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 3.403e-05/0.7098, allocations: 11.98 kB / 1.029 GB, free: 10.83 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.73e-05/0.7098, allocations: 7.438 kB / 1.029 GB, free: 10.83 MB / 0.6511 GB Notification: Performance of SimCode: time 3.11e-07/0.7099, allocations: 0 / 1.029 GB, free: 10.83 MB / 0.6511 GB Notification: Performance of Templates: time 0.002411/0.7123, allocations: 0.5805 MB / 1.029 GB, free: 10.28 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches