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.361/1.361, allocations: 251.9 MB / 266.9 MB, free: 11.01 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.001111/0.001111, allocations: 185.9 kB / 326.5 MB, free: 2.238 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.58/1.58, allocations: 205.4 MB / 0.5775 GB, free: 20.23 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.0009125/0.0009125, allocations: 82.42 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003471/0.0003471, allocations: 8.469 kB / 0.7962 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2111/0.2115, allocations: 106.3 MB / 0.9001 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1744/0.3859, allocations: 132.5 MB / 1.029 GB, free: 11.26 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002014/0.3862, allocations: 75.94 kB / 1.03 GB, free: 11.19 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01149/0.3977, allocations: 4.008 MB / 1.033 GB, free: 7.172 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.094e-06/0.3977, allocations: 0 / 1.033 GB, free: 7.172 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 8.996e-06/0.3977, allocations: 4 kB / 1.033 GB, free: 7.168 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003876/0.3981, allocations: 347.2 kB / 1.034 GB, free: 6.781 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.3982, allocations: 8.031 kB / 1.034 GB, free: 6.773 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.908e-05/0.3982, allocations: 4 kB / 1.034 GB, free: 6.77 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001399/0.3984, allocations: 171 kB / 1.034 GB, free: 6.562 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.311e-05/0.3984, allocations: 3.938 kB / 1.034 GB, free: 6.559 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.493e-05/0.3984, allocations: 3.984 kB / 1.034 GB, free: 6.555 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001149/0.3985, allocations: 41.7 kB / 1.034 GB, free: 6.508 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.116e-06/0.3986, allocations: 0 / 1.034 GB, free: 6.508 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.164e-05/0.3986, allocations: 3.938 kB / 1.034 GB, free: 6.504 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.498e-06/0.3986, allocations: 7.969 kB / 1.034 GB, free: 6.496 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.427e-05/0.3986, allocations: 12 kB / 1.034 GB, free: 6.484 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001828/0.3988, allocations: 157.6 kB / 1.034 GB, free: 6.281 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001771/0.399, allocations: 42.55 kB / 1.034 GB, free: 6.23 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.491e-05/0.3991, allocations: 8 kB / 1.034 GB, free: 6.223 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.382e-05/0.3991, allocations: 34.56 kB / 1.034 GB, free: 6.18 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=4): time 1.062e-06/0.3991, allocations: 0 / 1.034 GB, free: 6.18 MB / 0.6823 GB Notification: Performance of matching and sorting (n=6): time 0.0006666/0.3998, allocations: 306.3 kB / 1.035 GB, free: 5.828 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.959e-05/0.3998, allocations: 51.41 kB / 1.035 GB, free: 5.766 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.163e-05/0.3999, allocations: 93 kB / 1.035 GB, free: 5.668 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.704e-05/0.3999, allocations: 29.7 kB / 1.035 GB, free: 5.633 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 4.532e-05/0.4, allocations: 80.14 kB / 1.035 GB, free: 5.551 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.724e-05/0.4, allocations: 31.62 kB / 1.035 GB, free: 5.52 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.707e-06/0.4, allocations: 0 / 1.035 GB, free: 5.52 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001295/0.4002, allocations: 318.8 kB / 1.035 GB, free: 5.199 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.289e-05/0.4002, allocations: 8 kB / 1.035 GB, free: 5.191 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.193e-05/0.4002, allocations: 15.98 kB / 1.035 GB, free: 5.176 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.203e-05/0.4002, allocations: 11.94 kB / 1.035 GB, free: 5.164 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.51e-07/0.4003, allocations: 4 kB / 1.035 GB, free: 5.16 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001009/0.4004, allocations: 65.69 kB / 1.035 GB, free: 5.09 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.4004, allocations: 4 kB / 1.035 GB, free: 5.086 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.4004, allocations: 4 kB / 1.035 GB, free: 5.082 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.4004, allocations: 0 / 1.035 GB, free: 5.082 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.321e-05/0.4005, allocations: 8 kB / 1.035 GB, free: 5.074 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.724e-06/0.4005, allocations: 3.938 kB / 1.035 GB, free: 5.07 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.735e-05/0.4005, allocations: 64 / 1.035 GB, free: 5.07 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.547e-06/0.4005, allocations: 8 kB / 1.035 GB, free: 5.062 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 (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 8.396e-05/0.4006, allocations: 121.7 kB / 1.035 GB, free: 4.934 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.02e-05/0.4006, allocations: 8 kB / 1.035 GB, free: 4.926 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001506/0.4008, allocations: 65.66 kB / 1.035 GB, free: 4.855 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.4008, allocations: 0 / 1.035 GB, free: 4.855 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.4008, allocations: 0 / 1.035 GB, free: 4.855 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.4008, allocations: 7.938 kB / 1.035 GB, free: 4.848 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003333/0.4012, allocations: 323.2 kB / 1.036 GB, free: 4.473 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.4012, allocations: 0 / 1.036 GB, free: 4.473 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.158e-05/0.4012, allocations: 12 kB / 1.036 GB, free: 4.461 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.4013, allocations: 0 / 1.036 GB, free: 4.461 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.514e-06/0.4013, allocations: 8.031 kB / 1.036 GB, free: 4.453 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.4013, allocations: 0 / 1.036 GB, free: 4.453 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.4013, allocations: 0 / 1.036 GB, free: 4.453 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001963/0.4015, allocations: 190 kB / 1.036 GB, free: 4.242 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.079e-05/0.4015, allocations: 81.14 kB / 1.036 GB, free: 4.145 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.446e-05/0.4016, allocations: 3.984 kB / 1.036 GB, free: 4.141 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.912e-05/0.4016, allocations: 12.58 kB / 1.036 GB, free: 4.129 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.78e-05/0.4017, allocations: 0 / 1.036 GB, free: 4.129 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.596e-06/0.4017, allocations: 7.953 kB / 1.036 GB, free: 4.121 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 4.277e-05/0.4017, allocations: 83.27 kB / 1.036 GB, free: 4.039 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4017, allocations: 0 / 1.036 GB, free: 4.039 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002479/0.402, allocations: 31.92 kB / 1.036 GB, free: 4.008 MB / 0.6823 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 () * Number of clocked 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.0002063/0.4022, allocations: 119.2 kB / 1.036 GB, free: 3.883 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.000103/0.4023, allocations: 39.92 kB / 1.036 GB, free: 3.844 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.4023, allocations: 0 / 1.036 GB, free: 3.844 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 2.948e-05/0.4024, allocations: 16.19 kB / 1.036 GB, free: 3.828 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001447/0.4025, allocations: 10.97 kB / 1.036 GB, free: 3.82 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004305/0.4029, allocations: 229.4 kB / 1.037 GB, free: 3.562 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002727/0.4032, allocations: 0.6809 MB / 1.037 GB, free: 2.855 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 3.773e-05/0.4033, allocations: 12.28 kB / 1.037 GB, free: 2.844 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.972e-05/0.4033, allocations: 11.44 kB / 1.037 GB, free: 2.832 MB / 0.6823 GB Notification: Performance of SimCode: time 2.4e-07/0.4033, allocations: 4 kB / 1.037 GB, free: 2.828 MB / 0.6823 GB Notification: Performance of Templates: time 0.002655/0.406, allocations: 0.5698 MB / 1.038 GB, free: 2.289 MB / 0.6823 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