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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.155/1.155, allocations: 249.4 MB / 256.7 MB, free: 7.055 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.001035/0.001035, allocations: 181.3 kB / 316 MB, free: 3.578 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9843/0.9843, allocations: 205.1 MB / 0.5667 GB, free: 15.62 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.0008037/0.0008037, allocations: 90.25 kB / 0.671 GB, free: 4.754 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.64e-06/5.67e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1376, allocations: 106.3 MB / 0.8846 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3991/0.5367, allocations: 132.8 MB / 1.014 GB, free: 5.84 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002368/0.537, allocations: 79.5 kB / 1.014 GB, free: 5.793 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.01179/0.5488, allocations: 4.133 MB / 1.018 GB, free: 2.449 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.402e-06/0.5488, allocations: 3.938 kB / 1.018 GB, free: 2.445 MB / 0.6355 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.0002558/0.5491, allocations: 349.8 kB / 1.019 GB, free: 2.062 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.5491, allocations: 8.031 kB / 1.019 GB, free: 2.055 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.243e-05/0.5492, allocations: 4 kB / 1.019 GB, free: 2.051 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.495e-05/0.5493, allocations: 174.9 kB / 1.019 GB, free: 1.84 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.143e-05/0.5493, allocations: 0 / 1.019 GB, free: 1.84 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.018e-05/0.5493, allocations: 4 kB / 1.019 GB, free: 1.836 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.839e-05/0.5494, allocations: 15.38 kB / 1.019 GB, free: 1.824 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.876e-05/0.5494, allocations: 48.19 kB / 1.019 GB, free: 1.777 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.5495, allocations: 0 / 1.019 GB, free: 1.777 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.027e-06/0.5495, allocations: 0 / 1.019 GB, free: 1.777 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.5495, allocations: 4 kB / 1.019 GB, free: 1.773 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001292/0.5496, allocations: 137.9 kB / 1.019 GB, free: 1.605 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 5.816e-05/0.5497, allocations: 44.58 kB / 1.019 GB, free: 1.562 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.401e-05/0.5497, allocations: 23.23 kB / 1.019 GB, free: 1.543 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.957e-05/0.5497, allocations: 0 / 1.019 GB, free: 1.543 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.154e-05/0.5498, allocations: 30.56 kB / 1.019 GB, free: 1.504 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 8.82e-07/0.5498, allocations: 0 / 1.019 GB, free: 1.504 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.0007087/0.5505, allocations: 0.5194 MB / 1.02 GB, free: 0.9258 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.44e-05/0.5505, allocations: 55.39 kB / 1.02 GB, free: 0.8594 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.294e-05/0.5506, allocations: 91.94 kB / 1.02 GB, free: 0.7656 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.251e-05/0.5506, allocations: 25.7 kB / 1.02 GB, free: 0.7344 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 2.389e-05/0.5506, allocations: 84 kB / 1.02 GB, free: 0.6484 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.026e-05/0.5507, allocations: 38.27 kB / 1.02 GB, free: 0.6133 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.348e-06/0.5507, allocations: 0 / 1.02 GB, free: 0.6133 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 7.572e-05/0.5508, allocations: 318.9 kB / 1.02 GB, free: 304 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.021e-05/0.5508, allocations: 19.56 kB / 1.02 GB, free: 292 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.711e-05/0.5508, allocations: 15 kB / 1.02 GB, free: 276 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.89e-05/0.5509, allocations: 22.48 kB / 1.02 GB, free: 260 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.91e-07/0.5509, allocations: 0 / 1.02 GB, free: 260 kB / 0.6355 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000116/0.551, allocations: 92.53 kB / 1.02 GB, free: 176 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 8.797e-06/0.551, allocations: 4 kB / 1.02 GB, free: 172 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.246e-06/0.551, allocations: 0 / 1.02 GB, free: 172 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.083e-05/0.551, allocations: 3.984 kB / 1.02 GB, free: 168 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001026/0.5511, allocations: 23.94 kB / 1.02 GB, free: 144 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.867e-06/0.5512, allocations: 4 kB / 1.02 GB, free: 140 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.491e-05/0.5512, allocations: 4 kB / 1.02 GB, free: 136 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.646e-06/0.5512, allocations: 7.906 kB / 1.021 GB, free: 128 kB / 0.6355 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 5.493e-05/0.5513, allocations: 108 kB / 1.021 GB, free: 16 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.781e-05/0.5513, allocations: 16.03 kB / 1.021 GB, free: 16 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001612/0.5515, allocations: 98.33 kB / 1.021 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.5515, allocations: 0 / 1.021 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.5515, allocations: 0 / 1.021 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.5515, allocations: 8 kB / 1.021 GB, free: 15.9 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002943/0.5518, allocations: 324.2 kB / 1.021 GB, free: 15.56 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.5518, allocations: 0 / 1.021 GB, free: 15.56 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001107/0.5519, allocations: 23.92 kB / 1.021 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.5519, allocations: 4 kB / 1.021 GB, free: 15.53 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.975e-06/0.5519, allocations: 0 / 1.021 GB, free: 15.53 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.5519, allocations: 0 / 1.021 GB, free: 15.53 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.5519, allocations: 0 / 1.021 GB, free: 15.53 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001812/0.5521, allocations: 206 kB / 1.021 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 2.863e-05/0.5522, allocations: 85.02 kB / 1.021 GB, free: 15.23 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.398e-05/0.5522, allocations: 0 / 1.021 GB, free: 15.23 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.144e-05/0.5523, allocations: 0 / 1.021 GB, free: 15.23 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.782e-05/0.5523, allocations: 12.03 kB / 1.021 GB, free: 15.22 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-06/0.5523, allocations: 7.812 kB / 1.021 GB, free: 15.22 MB / 0.6511 GB Notification: Performance of sort global known variables: time 2.426e-05/0.5523, allocations: 75.28 kB / 1.021 GB, free: 15.14 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002374/0.5526, allocations: 39.94 kB / 1.021 GB, free: 15.11 MB / 0.6511 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.0001785/0.5528, allocations: 143.2 kB / 1.022 GB, free: 14.96 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001069/0.5529, allocations: 52.36 kB / 1.022 GB, free: 14.92 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.5529, allocations: 3.938 kB / 1.022 GB, free: 14.91 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 3.701e-05/0.5529, allocations: 37.12 kB / 1.022 GB, free: 14.89 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001233/0.5531, allocations: 4.844 kB / 1.022 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003688/0.5534, allocations: 208.8 kB / 1.022 GB, free: 14.66 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002062/0.5536, allocations: 0.6997 MB / 1.023 GB, free: 13.93 MB / 0.6511 GB Notification: Performance of SimCode: time 2.3e-07/0.5537, allocations: 0 / 1.023 GB, free: 13.93 MB / 0.6511 GB Notification: Performance of Templates: time 0.00267/0.5563, allocations: 1.066 MB / 1.024 GB, free: 12.91 MB / 0.6511 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