Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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/BuildingSystems 2.0.0-master/package.mo): time 0.7308/0.7308, allocations: 141.8 MB / 149.1 MB, free: 13.14 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00119/0.00119, allocations: 174 kB / 181.9 MB, free: 9.809 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.394/1.394, allocations: 221.4 MB / 436 MB, free: 2.234 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 95.48 kB / 0.507 GB, free: 10.98 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001837/0.001836, allocations: 272.2 kB / 0.5884 GB, free: 7.82 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 9.027e-06/9.067e-06, allocations: 4 kB / 0.6759 GB, free: 14.17 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4331/0.4331, allocations: 82.77 MB / 0.7567 GB, free: 138.9 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.121/0.5542, allocations: 108.7 MB / 0.8628 GB, free: 30.13 MB / 0.5575 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002282/0.5545, allocations: 83.75 kB / 0.8629 GB, free: 30.05 MB / 0.5575 GB Notification: Performance of FrontEnd: time 0.01052/0.565, allocations: 3.684 MB / 0.8665 GB, free: 26.39 MB / 0.5575 GB Notification: Performance of Transformations before backend: time 1.128e-05/0.5651, allocations: 11.88 kB / 0.8665 GB, free: 26.38 MB / 0.5575 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.0003978/0.5655, allocations: 331.1 kB / 0.8668 GB, free: 26.01 MB / 0.5575 GB Notification: Performance of prepare preOptimizeDAE: time 6.424e-05/0.5656, allocations: 12.56 kB / 0.8668 GB, free: 26 MB / 0.5575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.022e-05/0.5656, allocations: 11.88 kB / 0.8669 GB, free: 25.98 MB / 0.5575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001561/0.5658, allocations: 163.7 kB / 0.867 GB, free: 25.79 MB / 0.5575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.172e-05/0.5658, allocations: 4 kB / 0.867 GB, free: 25.78 MB / 0.5575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.315e-05/0.5659, allocations: 0.5625 kB / 0.867 GB, free: 25.78 MB / 0.5575 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001108/0.566, allocations: 12.84 kB / 0.867 GB, free: 25.77 MB / 0.5575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001016/0.5661, allocations: 33.69 kB / 0.8671 GB, free: 25.73 MB / 0.5575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.5661, allocations: 5.188 kB / 0.8671 GB, free: 25.73 MB / 0.5575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.812e-05/0.5661, allocations: 3.906 kB / 0.8671 GB, free: 25.72 MB / 0.5575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.5662, allocations: 0 / 0.8671 GB, free: 25.72 MB / 0.5575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002191/0.5664, allocations: 138.7 kB / 0.8672 GB, free: 25.55 MB / 0.5575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001825/0.5666, allocations: 30.78 kB / 0.8672 GB, free: 25.52 MB / 0.5575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.323e-05/0.5666, allocations: 17.67 kB / 0.8673 GB, free: 25.5 MB / 0.5575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.122e-05/0.5667, allocations: 4.594 kB / 0.8673 GB, free: 25.49 MB / 0.5575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.401e-05/0.5667, allocations: 35.47 kB / 0.8673 GB, free: 25.45 MB / 0.5575 GB Notification: Performance of pre-optimization done (n=4): time 1.663e-06/0.5667, allocations: 0 / 0.8673 GB, free: 25.45 MB / 0.5575 GB Notification: Performance of matching and sorting (n=6): time 0.0007114/0.5674, allocations: 279.3 kB / 0.8676 GB, free: 25.12 MB / 0.5575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.404e-05/0.5675, allocations: 52.22 kB / 0.8676 GB, free: 25.06 MB / 0.5575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.507e-05/0.5676, allocations: 93.66 kB / 0.8677 GB, free: 24.96 MB / 0.5575 GB Notification: Performance of collectPreVariables (initialization): time 1.581e-05/0.5676, allocations: 25.7 kB / 0.8677 GB, free: 24.93 MB / 0.5575 GB Notification: Performance of collectInitialEqns (initialization): time 3.191e-05/0.5677, allocations: 81.8 kB / 0.8678 GB, free: 24.85 MB / 0.5575 GB Notification: Performance of collectInitialBindings (initialization): time 4.392e-05/0.5677, allocations: 27.64 kB / 0.8678 GB, free: 24.82 MB / 0.5575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.939e-06/0.5677, allocations: 0 / 0.8678 GB, free: 24.82 MB / 0.5575 GB Notification: Performance of setup shared object (initialization): time 0.0001086/0.5678, allocations: 310.8 kB / 0.8681 GB, free: 24.51 MB / 0.5575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.827e-05/0.5679, allocations: 13.31 kB / 0.8681 GB, free: 24.5 MB / 0.5575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.248e-05/0.5679, allocations: 10.5 kB / 0.8681 GB, free: 24.49 MB / 0.5575 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.666e-05/0.5679, allocations: 15.98 kB / 0.8682 GB, free: 24.48 MB / 0.5575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.568, allocations: 1.156 kB / 0.8682 GB, free: 24.48 MB / 0.5575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001124/0.5681, allocations: 57.62 kB / 0.8682 GB, free: 24.41 MB / 0.5575 GB Notification: Performance of prepare postOptimizeDAE: time 2.251e-05/0.5681, allocations: 4 kB / 0.8682 GB, free: 24.41 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.5681, allocations: 5.594 kB / 0.8682 GB, free: 24.41 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.054e-05/0.5682, allocations: 3.906 kB / 0.8682 GB, free: 24.4 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.743e-05/0.5682, allocations: 8 kB / 0.8682 GB, free: 24.39 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.201e-05/0.5682, allocations: 0 / 0.8682 GB, free: 24.39 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.393e-05/0.5683, allocations: 1.25 kB / 0.8682 GB, free: 24.39 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.845e-06/0.5683, allocations: 4 kB / 0.8682 GB, free: 24.39 MB / 0.5575 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 7.099e-05/0.5684, allocations: 102.5 kB / 0.8683 GB, free: 24.29 MB / 0.5575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.795e-05/0.5684, allocations: 8.281 kB / 0.8683 GB, free: 24.28 MB / 0.5575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00017/0.5686, allocations: 77.61 kB / 0.8684 GB, free: 24.2 MB / 0.5575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.277e-06/0.5686, allocations: 0.5938 kB / 0.8684 GB, free: 24.2 MB / 0.5575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.5686, allocations: 1.219 kB / 0.8684 GB, free: 24.2 MB / 0.5575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.217e-06/0.5686, allocations: 3.984 kB / 0.8684 GB, free: 24.19 MB / 0.5575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003802/0.569, allocations: 288.7 kB / 0.8687 GB, free: 23.86 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.569, allocations: 0 / 0.8687 GB, free: 23.86 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.998e-05/0.5691, allocations: 16.58 kB / 0.8687 GB, free: 23.85 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.967e-06/0.5691, allocations: 0 / 0.8687 GB, free: 23.85 MB / 0.5575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.081e-05/0.5691, allocations: 4.5 kB / 0.8687 GB, free: 23.84 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.5691, allocations: 0.5312 kB / 0.8687 GB, free: 23.84 MB / 0.5575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.379e-06/0.5691, allocations: 1.094 kB / 0.8687 GB, free: 23.84 MB / 0.5575 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002018/0.5693, allocations: 184.6 kB / 0.8689 GB, free: 23.64 MB / 0.5575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.933e-05/0.5694, allocations: 89 kB / 0.869 GB, free: 23.54 MB / 0.5575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.083e-05/0.5694, allocations: 0 / 0.869 GB, free: 23.54 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.919e-05/0.5695, allocations: 0 / 0.869 GB, free: 23.54 MB / 0.5575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.497e-05/0.5695, allocations: 8.562 kB / 0.869 GB, free: 23.53 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.55e-06/0.5696, allocations: 8.031 kB / 0.869 GB, free: 23.52 MB / 0.5575 GB Notification: Performance of sort global known variables: time 3.186e-05/0.5696, allocations: 83.27 kB / 0.8691 GB, free: 23.44 MB / 0.5575 GB Notification: Performance of remove unused functions: time 0.0002878/0.5699, allocations: 27.94 kB / 0.8691 GB, free: 23.41 MB / 0.5575 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.0002829/0.5702, allocations: 123.2 kB / 0.8692 GB, free: 23.28 MB / 0.5575 GB Notification: Performance of simCode: created initialization part: time 0.0001376/0.5703, allocations: 31.98 kB / 0.8693 GB, free: 23.25 MB / 0.5575 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.5703, allocations: 0 / 0.8693 GB, free: 23.25 MB / 0.5575 GB Notification: Performance of simCode: created simulation system equations: time 2.448e-05/0.5704, allocations: 19.94 kB / 0.8693 GB, free: 23.23 MB / 0.5575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000197/0.5706, allocations: 8 kB / 0.8693 GB, free: 23.22 MB / 0.5575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004676/0.5711, allocations: 125.7 kB / 0.8694 GB, free: 23.07 MB / 0.5575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002842/0.5714, allocations: 0.6958 MB / 0.8701 GB, free: 22.35 MB / 0.5575 GB Notification: Performance of SimCode: time 2.8e-07/0.5714, allocations: 0 / 0.8701 GB, free: 22.35 MB / 0.5575 GB Notification: Performance of Templates: time 0.003627/0.575, allocations: 0.6531 MB / 0.8707 GB, free: 21.73 MB / 0.5575 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)