Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.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_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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/BuildingSystems 2.0.0-master/package.mo): time 0.7247/0.7247, allocations: 141.8 MB / 149.1 MB, free: 4.383 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 192.3 kB / 181.9 MB, free: 64 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 221.4 MB / 436 MB, free: 9.227 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.001007/0.001007, allocations: 99.34 kB / 0.507 GB, free: 24.35 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002459/0.002459, allocations: 280 kB / 0.5884 GB, free: 12.24 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 8.646e-06/8.676e-06, allocations: 3.938 kB / 0.6759 GB, free: 2.602 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4826/0.4826, allocations: 82.77 MB / 0.7567 GB, free: 112.8 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1219/0.6046, allocations: 108.8 MB / 0.863 GB, free: 3.875 MB / 0.5263 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001767/0.6048, allocations: 85.19 kB / 0.8631 GB, free: 3.797 MB / 0.5263 GB Notification: Performance of FrontEnd: time 0.01137/0.6162, allocations: 4.182 MB / 0.8671 GB, free: 15.63 MB / 0.5419 GB Notification: Performance of Transformations before backend: time 7.855e-06/0.6162, allocations: 0 / 0.8671 GB, free: 15.63 MB / 0.5419 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.0003363/0.6165, allocations: 347.6 kB / 0.8675 GB, free: 15.25 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 4.825e-05/0.6166, allocations: 8.531 kB / 0.8675 GB, free: 15.24 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.279e-05/0.6166, allocations: 9.672 kB / 0.8675 GB, free: 15.23 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001435/0.6168, allocations: 167 kB / 0.8676 GB, free: 15.03 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.427e-05/0.6168, allocations: 0 / 0.8676 GB, free: 15.03 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.472e-05/0.6169, allocations: 4 kB / 0.8676 GB, free: 15.02 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.65e-05/0.6169, allocations: 16 kB / 0.8677 GB, free: 15.01 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.649e-05/0.617, allocations: 42.25 kB / 0.8677 GB, free: 14.96 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.6171, allocations: 4.75 kB / 0.8677 GB, free: 14.96 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.215e-05/0.6171, allocations: 0 / 0.8677 GB, free: 14.96 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.391e-06/0.6171, allocations: 1.406 kB / 0.8677 GB, free: 14.96 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001969/0.6173, allocations: 151.3 kB / 0.8679 GB, free: 14.77 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 6.74e-05/0.6174, allocations: 37.64 kB / 0.8679 GB, free: 14.73 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.347e-05/0.6174, allocations: 28.88 kB / 0.8679 GB, free: 14.7 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.406e-05/0.6175, allocations: 4.594 kB / 0.8679 GB, free: 14.7 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.916e-05/0.6175, allocations: 35.16 kB / 0.868 GB, free: 14.66 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=7): time 8.72e-07/0.6175, allocations: 0.6562 kB / 0.868 GB, free: 14.66 MB / 0.5419 GB Notification: Performance of matching and sorting (n=11): time 0.0009103/0.6184, allocations: 0.5093 MB / 0.8685 GB, free: 14.06 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.423e-05/0.6185, allocations: 59.34 kB / 0.8685 GB, free: 13.99 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.014e-05/0.6185, allocations: 86.41 kB / 0.8686 GB, free: 13.9 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 1.962e-05/0.6186, allocations: 29.7 kB / 0.8686 GB, free: 13.86 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 3.419e-05/0.6186, allocations: 80.67 kB / 0.8687 GB, free: 13.78 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 4.53e-05/0.6187, allocations: 40.11 kB / 0.8687 GB, free: 13.74 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.997e-06/0.6187, allocations: 0 / 0.8687 GB, free: 13.74 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.0001532/0.6188, allocations: 322.7 kB / 0.869 GB, free: 13.42 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.286e-05/0.6189, allocations: 21.47 kB / 0.8691 GB, free: 13.4 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.629e-05/0.6189, allocations: 23.98 kB / 0.8691 GB, free: 13.38 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.674e-05/0.619, allocations: 20 kB / 0.8691 GB, free: 13.36 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.01e-07/0.619, allocations: 0 / 0.8691 GB, free: 13.36 MB / 0.5419 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001335/0.6191, allocations: 93.45 kB / 0.8692 GB, free: 13.27 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.121e-05/0.6192, allocations: 4 kB / 0.8692 GB, free: 13.26 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.6192, allocations: 5.219 kB / 0.8692 GB, free: 13.26 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.6192, allocations: 0 / 0.8692 GB, free: 13.26 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001147/0.6193, allocations: 27.92 kB / 0.8692 GB, free: 13.23 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.6193, allocations: 0 / 0.8692 GB, free: 13.23 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.473e-05/0.6194, allocations: 1.344 kB / 0.8692 GB, free: 13.23 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.968e-06/0.6194, allocations: 4 kB / 0.8692 GB, free: 13.23 MB / 0.5419 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 8.789e-05/0.6195, allocations: 105.1 kB / 0.8693 GB, free: 13.12 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.684e-05/0.6195, allocations: 7.906 kB / 0.8693 GB, free: 13.11 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001943/0.6197, allocations: 96.23 kB / 0.8694 GB, free: 13.01 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.6197, allocations: 0 / 0.8694 GB, free: 13.01 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.6197, allocations: 0 / 0.8694 GB, free: 13.01 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.6197, allocations: 3.984 kB / 0.8694 GB, free: 13.01 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004023/0.6201, allocations: 319.2 kB / 0.8697 GB, free: 12.65 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.6201, allocations: 0 / 0.8697 GB, free: 12.65 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001157/0.6203, allocations: 23.98 kB / 0.8698 GB, free: 12.63 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.6203, allocations: 5.031 kB / 0.8698 GB, free: 12.62 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.338e-06/0.6203, allocations: 7.938 kB / 0.8698 GB, free: 12.62 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.6203, allocations: 0 / 0.8698 GB, free: 12.62 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.6203, allocations: 0 / 0.8698 GB, free: 12.62 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002378/0.6205, allocations: 208.2 kB / 0.87 GB, free: 12.4 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.245e-05/0.6206, allocations: 81.02 kB / 0.8701 GB, free: 12.3 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.857e-05/0.6206, allocations: 4 kB / 0.8701 GB, free: 12.3 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.299e-05/0.6207, allocations: 0 / 0.8701 GB, free: 12.3 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.212e-05/0.6207, allocations: 12.05 kB / 0.8701 GB, free: 12.29 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.803e-06/0.6207, allocations: 0 / 0.8701 GB, free: 12.29 MB / 0.5419 GB Notification: Performance of sort global known variables: time 5.455e-05/0.6208, allocations: 87.19 kB / 0.8702 GB, free: 12.2 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0002574/0.6211, allocations: 41.7 kB / 0.8702 GB, free: 12.16 MB / 0.5419 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.000293/0.6214, allocations: 143.1 kB / 0.8703 GB, free: 12.01 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0001288/0.6215, allocations: 52.98 kB / 0.8704 GB, free: 11.96 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.6215, allocations: 0 / 0.8704 GB, free: 11.96 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 4.845e-05/0.6216, allocations: 36.14 kB / 0.8704 GB, free: 11.93 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001664/0.6218, allocations: 7.938 kB / 0.8704 GB, free: 11.92 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005255/0.6223, allocations: 201.4 kB / 0.8706 GB, free: 11.7 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000407/0.6227, allocations: 0.7075 MB / 0.8713 GB, free: 10.96 MB / 0.5419 GB Notification: Performance of SimCode: time 2.5e-07/0.6227, allocations: 0 / 0.8713 GB, free: 10.96 MB / 0.5419 GB Notification: Performance of Templates: time 0.003586/0.6263, allocations: 1.05 MB / 0.8723 GB, free: 9.953 MB / 0.5419 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)