Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") [: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 8.1.4-maint.8.1.x/package.mo): time 1.471/1.471, allocations: 289.8 MB / 297.1 MB, free: 6.691 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009957/0.0009957, allocations: 187.9 kB / 366.3 MB, free: 2.004 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.276/1.276, allocations: 205.1 MB / 0.6256 GB, free: 7.469 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001009/0.001008, allocations: 98.62 kB / 0.7396 GB, free: 39.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 9.938e-06/9.948e-06, allocations: 4 kB / 0.859 GB, free: 13.62 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6107/0.6107, allocations: 116.3 MB / 0.9726 GB, free: 76.33 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1734/0.7841, allocations: 138.9 MB / 1.108 GB, free: 11.58 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003024/0.7845, allocations: 81.03 kB / 1.108 GB, free: 11.5 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.0121/0.7966, allocations: 3.636 MB / 1.112 GB, free: 7.906 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 7.203e-06/0.7967, allocations: 1.562 kB / 1.112 GB, free: 7.906 MB / 0.7136 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.0003401/0.797, allocations: 330.4 kB / 1.112 GB, free: 7.539 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.7971, allocations: 8.031 kB / 1.112 GB, free: 7.531 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.643e-05/0.7971, allocations: 4.438 kB / 1.112 GB, free: 7.527 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001471/0.7973, allocations: 172 kB / 1.112 GB, free: 7.32 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.384e-05/0.7973, allocations: 0 / 1.112 GB, free: 7.32 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.768e-05/0.7973, allocations: 0 / 1.112 GB, free: 7.32 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.445e-05/0.7974, allocations: 12.78 kB / 1.112 GB, free: 7.309 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.597e-05/0.7975, allocations: 33.69 kB / 1.112 GB, free: 7.27 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.7975, allocations: 4.469 kB / 1.112 GB, free: 7.266 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.136e-05/0.7975, allocations: 0.5312 kB / 1.112 GB, free: 7.266 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.7975, allocations: 1.188 kB / 1.112 GB, free: 7.266 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001722/0.7977, allocations: 142.2 kB / 1.113 GB, free: 7.09 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002172/0.7979, allocations: 30.95 kB / 1.113 GB, free: 7.055 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.033e-05/0.798, allocations: 16.86 kB / 1.113 GB, free: 7.035 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.2e-05/0.798, allocations: 8.547 kB / 1.113 GB, free: 7.027 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.119e-05/0.798, allocations: 32.03 kB / 1.113 GB, free: 6.988 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=4): time 1.082e-06/0.798, allocations: 0 / 1.113 GB, free: 6.988 MB / 0.7136 GB Notification: Performance of matching and sorting (n=6): time 0.000546/0.7986, allocations: 280.9 kB / 1.113 GB, free: 6.664 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.331e-05/0.7986, allocations: 59.88 kB / 1.113 GB, free: 6.594 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.116e-05/0.7987, allocations: 93.69 kB / 1.113 GB, free: 6.496 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.543e-05/0.7987, allocations: 25.7 kB / 1.113 GB, free: 6.465 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.178e-05/0.7988, allocations: 80.83 kB / 1.113 GB, free: 6.383 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.763e-05/0.7988, allocations: 24.36 kB / 1.113 GB, free: 6.359 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.126e-06/0.7988, allocations: 0.9375 kB / 1.113 GB, free: 6.359 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001264/0.799, allocations: 315.5 kB / 1.113 GB, free: 6.043 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.923e-05/0.799, allocations: 12.59 kB / 1.113 GB, free: 6.031 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.589e-05/0.799, allocations: 10.19 kB / 1.113 GB, free: 6.023 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.971e-05/0.7991, allocations: 15.98 kB / 1.114 GB, free: 6.008 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.91e-07/0.7991, allocations: 0 / 1.114 GB, free: 6.008 MB / 0.7136 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.719e-05/0.7992, allocations: 49.7 kB / 1.114 GB, free: 5.953 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.7992, allocations: 15.89 kB / 1.114 GB, free: 5.938 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.481e-06/0.7992, allocations: 0 / 1.114 GB, free: 5.938 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.7992, allocations: 0 / 1.114 GB, free: 5.938 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.829e-05/0.7993, allocations: 14.53 kB / 1.114 GB, free: 5.926 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.7993, allocations: 3.938 kB / 1.114 GB, free: 5.922 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.793e-05/0.7993, allocations: 4 kB / 1.114 GB, free: 5.918 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.7e-06/0.7993, allocations: 4 kB / 1.114 GB, free: 5.914 MB / 0.7136 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 6.485e-05/0.7994, allocations: 101 kB / 1.114 GB, free: 5.809 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.247e-05/0.7994, allocations: 7.906 kB / 1.114 GB, free: 5.801 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001506/0.7996, allocations: 65.73 kB / 1.114 GB, free: 5.723 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.7996, allocations: 0 / 1.114 GB, free: 5.723 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.7996, allocations: 0 / 1.114 GB, free: 5.723 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.7996, allocations: 0 / 1.114 GB, free: 5.723 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003158/0.7999, allocations: 289.6 kB / 1.114 GB, free: 5.395 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.7999, allocations: 4.031 kB / 1.114 GB, free: 5.391 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.373e-05/0.8, allocations: 11.98 kB / 1.114 GB, free: 5.379 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.8, allocations: 4 kB / 1.114 GB, free: 5.375 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.073e-06/0.8, allocations: 0 / 1.114 GB, free: 5.375 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.8, allocations: 1.797 kB / 1.114 GB, free: 5.375 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.8, allocations: 0 / 1.114 GB, free: 5.375 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001855/0.8002, allocations: 197.5 kB / 1.114 GB, free: 5.16 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 6.443e-05/0.8003, allocations: 89 kB / 1.114 GB, free: 5.055 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.502e-05/0.8003, allocations: 0 / 1.114 GB, free: 5.055 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.139e-05/0.8004, allocations: 4 kB / 1.114 GB, free: 5.051 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.704e-05/0.8004, allocations: 3.938 kB / 1.114 GB, free: 5.047 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.552e-06/0.8004, allocations: 4 kB / 1.114 GB, free: 5.043 MB / 0.7136 GB Notification: Performance of sort global known variables: time 3.46e-05/0.8005, allocations: 75.66 kB / 1.114 GB, free: 4.969 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002479/0.8007, allocations: 32.05 kB / 1.114 GB, free: 4.938 MB / 0.7136 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.0002107/0.8009, allocations: 127.2 kB / 1.115 GB, free: 4.805 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 9.411e-05/0.801, allocations: 27.94 kB / 1.115 GB, free: 4.777 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.8011, allocations: 0 / 1.115 GB, free: 4.777 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 2.819e-05/0.8011, allocations: 21.8 kB / 1.115 GB, free: 4.758 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001411/0.8012, allocations: 0 / 1.115 GB, free: 4.758 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003276/0.8016, allocations: 147.1 kB / 1.115 GB, free: 4.59 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003014/0.8019, allocations: 0.6958 MB / 1.115 GB, free: 3.867 MB / 0.7136 GB Notification: Performance of SimCode: time 2.6e-07/0.8019, allocations: 0 / 1.115 GB, free: 3.867 MB / 0.7136 GB Notification: Performance of Templates: time 0.002613/0.8045, allocations: 0.6446 MB / 1.116 GB, free: 3.262 MB / 0.7136 GB make -j1 -f Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)