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_m_flow_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_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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.153/1.153, allocations: 249.4 MB / 256.7 MB, free: 0.7812 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009632/0.0009632, allocations: 179.2 kB / 316 MB, free: 8.965 MB / 258.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9607/0.9607, allocations: 205.1 MB / 0.5667 GB, free: 13.43 MB / 434.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000814/0.0008141, allocations: 94.67 kB / 0.671 GB, free: 51.66 MB / 498.8 MB Notification: Performance of FrontEnd - loaded program: time 5.43e-06/5.46e-06, allocations: 0 / 0.7807 GB, free: 9.941 MB / 0.5496 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3719/0.372, allocations: 106.3 MB / 0.8846 GB, free: 89.13 MB / 0.6434 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1242/0.4962, allocations: 132.4 MB / 1.014 GB, free: 13.23 MB / 0.659 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001943/0.4964, allocations: 75.95 kB / 1.014 GB, free: 13.15 MB / 0.659 GB Notification: Performance of FrontEnd: time 0.0119/0.5083, allocations: 3.914 MB / 1.018 GB, free: 9.336 MB / 0.659 GB Notification: Performance of Transformations before backend: time 5.61e-06/0.5083, allocations: 0 / 1.018 GB, free: 9.336 MB / 0.659 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0003693/0.5087, allocations: 373 kB / 1.018 GB, free: 8.934 MB / 0.659 GB Notification: Performance of prepare preOptimizeDAE: time 3e-05/0.5088, allocations: 12.03 kB / 1.018 GB, free: 8.922 MB / 0.659 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.092e-05/0.5088, allocations: 7.906 kB / 1.018 GB, free: 8.914 MB / 0.659 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001021/0.5089, allocations: 163.6 kB / 1.018 GB, free: 8.715 MB / 0.659 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.224e-05/0.5089, allocations: 4.719 kB / 1.018 GB, free: 8.711 MB / 0.659 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.845e-05/0.509, allocations: 7.906 kB / 1.018 GB, free: 8.703 MB / 0.659 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.183e-05/0.509, allocations: 30.83 kB / 1.018 GB, free: 8.676 MB / 0.659 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001001/0.5091, allocations: 57.69 kB / 1.018 GB, free: 8.613 MB / 0.659 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.5092, allocations: 6.469 kB / 1.018 GB, free: 8.613 MB / 0.659 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.028e-05/0.5092, allocations: 0 / 1.018 GB, free: 8.613 MB / 0.659 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.5092, allocations: 0 / 1.018 GB, free: 8.613 MB / 0.659 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004385/0.5096, allocations: 303.8 kB / 1.019 GB, free: 8.281 MB / 0.659 GB Notification: Performance of preOpt comSubExp (simulation): time 6.039e-05/0.5097, allocations: 35.06 kB / 1.019 GB, free: 8.242 MB / 0.659 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.893e-05/0.5097, allocations: 21 kB / 1.019 GB, free: 8.219 MB / 0.659 GB Notification: Performance of preOpt evalFunc (simulation): time 2.27e-05/0.5098, allocations: 8.734 kB / 1.019 GB, free: 8.211 MB / 0.659 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.844e-05/0.5098, allocations: 38.5 kB / 1.019 GB, free: 8.164 MB / 0.659 GB Notification: Performance of pre-optimization done (n=7): time 1.041e-06/0.5098, allocations: 0 / 1.019 GB, free: 8.164 MB / 0.659 GB Notification: Performance of matching and sorting (n=11): time 0.0007479/0.5106, allocations: 0.522 MB / 1.019 GB, free: 7.551 MB / 0.659 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.103e-05/0.5106, allocations: 51.41 kB / 1.019 GB, free: 7.488 MB / 0.659 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.226e-05/0.5107, allocations: 89 kB / 1.019 GB, free: 7.395 MB / 0.659 GB Notification: Performance of collectPreVariables (initialization): time 1.424e-05/0.5107, allocations: 25.7 kB / 1.019 GB, free: 7.363 MB / 0.659 GB Notification: Performance of collectInitialEqns (initialization): time 4.031e-05/0.5107, allocations: 96.05 kB / 1.02 GB, free: 7.266 MB / 0.659 GB Notification: Performance of collectInitialBindings (initialization): time 3.414e-05/0.5108, allocations: 35.45 kB / 1.02 GB, free: 7.23 MB / 0.659 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.869e-06/0.5108, allocations: 0 / 1.02 GB, free: 7.23 MB / 0.659 GB Notification: Performance of setup shared object (initialization): time 8.629e-05/0.5109, allocations: 322.7 kB / 1.02 GB, free: 6.906 MB / 0.659 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.46e-05/0.5109, allocations: 16 kB / 1.02 GB, free: 6.891 MB / 0.659 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.128e-05/0.5109, allocations: 20 kB / 1.02 GB, free: 6.871 MB / 0.659 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.907e-05/0.511, allocations: 24.11 kB / 1.02 GB, free: 6.848 MB / 0.659 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-07/0.511, allocations: 0 / 1.02 GB, free: 6.848 MB / 0.659 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001365/0.5111, allocations: 94.16 kB / 1.02 GB, free: 6.75 MB / 0.659 GB Notification: Performance of prepare postOptimizeDAE: time 1.006e-05/0.5111, allocations: 12 kB / 1.02 GB, free: 6.738 MB / 0.659 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.5112, allocations: 0 / 1.02 GB, free: 6.738 MB / 0.659 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.047e-06/0.5112, allocations: 0 / 1.02 GB, free: 6.738 MB / 0.659 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001527/0.5113, allocations: 31.97 kB / 1.02 GB, free: 6.707 MB / 0.659 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.569e-06/0.5113, allocations: 0 / 1.02 GB, free: 6.707 MB / 0.659 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.639e-05/0.5114, allocations: 10.5 kB / 1.02 GB, free: 6.699 MB / 0.659 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.118e-05/0.5114, allocations: 4 kB / 1.02 GB, free: 6.695 MB / 0.659 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.555e-05/0.5115, allocations: 108.9 kB / 1.02 GB, free: 6.582 MB / 0.659 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.164e-05/0.5115, allocations: 12.45 kB / 1.02 GB, free: 6.57 MB / 0.659 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001812/0.5117, allocations: 98.55 kB / 1.02 GB, free: 6.473 MB / 0.659 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.5117, allocations: 3.984 kB / 1.02 GB, free: 6.469 MB / 0.659 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.5117, allocations: 0 / 1.02 GB, free: 6.469 MB / 0.659 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.5117, allocations: 0 / 1.02 GB, free: 6.469 MB / 0.659 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003058/0.512, allocations: 334.9 kB / 1.021 GB, free: 6.098 MB / 0.659 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.5121, allocations: 5.828 kB / 1.021 GB, free: 6.094 MB / 0.659 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001704/0.5122, allocations: 35.97 kB / 1.021 GB, free: 6.059 MB / 0.659 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.5122, allocations: 0 / 1.021 GB, free: 6.059 MB / 0.659 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.847e-06/0.5123, allocations: 0 / 1.021 GB, free: 6.059 MB / 0.659 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.5123, allocations: 0 / 1.021 GB, free: 6.059 MB / 0.659 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.5123, allocations: 6.906 kB / 1.021 GB, free: 6.055 MB / 0.659 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000207/0.5125, allocations: 216 kB / 1.021 GB, free: 5.828 MB / 0.659 GB Notification: Performance of postOpt removeConstants (simulation): time 2.814e-05/0.5125, allocations: 85.05 kB / 1.021 GB, free: 5.727 MB / 0.659 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.528e-05/0.5126, allocations: 3.906 kB / 1.021 GB, free: 5.723 MB / 0.659 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001307/0.5127, allocations: 7.984 kB / 1.021 GB, free: 5.715 MB / 0.659 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.516e-05/0.5127, allocations: 8 kB / 1.021 GB, free: 5.707 MB / 0.659 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.034e-05/0.5127, allocations: 7.984 kB / 1.021 GB, free: 5.699 MB / 0.659 GB Notification: Performance of sort global known variables: time 2.773e-05/0.5128, allocations: 79.28 kB / 1.021 GB, free: 5.621 MB / 0.659 GB Notification: Performance of remove unused functions: time 0.000242/0.513, allocations: 35.94 kB / 1.021 GB, free: 5.586 MB / 0.659 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_dp_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.0001766/0.5132, allocations: 148.6 kB / 1.021 GB, free: 5.434 MB / 0.659 GB Notification: Performance of simCode: created initialization part: time 0.000113/0.5133, allocations: 57.81 kB / 1.021 GB, free: 5.379 MB / 0.659 GB Notification: Performance of simCode: created event and clocks part: time 1.313e-06/0.5133, allocations: 4 kB / 1.021 GB, free: 5.375 MB / 0.659 GB Notification: Performance of simCode: created simulation system equations: time 5.123e-05/0.5134, allocations: 34.39 kB / 1.021 GB, free: 5.344 MB / 0.659 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001485/0.5135, allocations: 12.16 kB / 1.021 GB, free: 5.336 MB / 0.659 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004044/0.5139, allocations: 231.2 kB / 1.022 GB, free: 5.102 MB / 0.659 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002414/0.5142, allocations: 0.7152 MB / 1.022 GB, free: 4.359 MB / 0.659 GB Notification: Performance of SimCode: time 2.3e-07/0.5142, allocations: 0 / 1.022 GB, free: 4.359 MB / 0.659 GB Notification: Performance of Templates: time 0.002987/0.5172, allocations: 1.247 MB / 1.023 GB, free: 3.184 MB / 0.659 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches