Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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.7546/0.7546, allocations: 141.8 MB / 149.1 MB, free: 12 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.001167/0.001166, allocations: 189.5 kB / 181.9 MB, free: 8.77 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.352/1.352, allocations: 221.4 MB / 436 MB, free: 1.023 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.0009375/0.0009377, allocations: 89.67 kB / 0.507 GB, free: 9.973 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001959/0.001959, allocations: 269.1 kB / 0.5884 GB, free: 6.805 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 7.765e-06/7.784e-06, allocations: 4 kB / 0.6759 GB, free: 13.16 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4919/0.4919, allocations: 82.77 MB / 0.7567 GB, free: 137.9 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1226/0.6146, allocations: 108.5 MB / 0.8627 GB, free: 29.25 MB / 0.5575 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001995/0.6149, allocations: 84.75 kB / 0.8628 GB, free: 29.18 MB / 0.5575 GB Notification: Performance of FrontEnd: time 0.007286/0.6222, allocations: 2.535 MB / 0.8653 GB, free: 26.66 MB / 0.5575 GB Notification: Performance of Transformations before backend: time 8.336e-06/0.6222, allocations: 0 / 0.8653 GB, free: 26.66 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.0002416/0.6225, allocations: 348.6 kB / 0.8656 GB, free: 26.28 MB / 0.5575 GB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.6225, allocations: 11.97 kB / 0.8656 GB, free: 26.27 MB / 0.5575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.721e-05/0.6226, allocations: 4 kB / 0.8656 GB, free: 26.26 MB / 0.5575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001103/0.6227, allocations: 167 kB / 0.8658 GB, free: 26.06 MB / 0.5575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.28e-05/0.6227, allocations: 0 / 0.8658 GB, free: 26.06 MB / 0.5575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.589e-05/0.6227, allocations: 4.562 kB / 0.8658 GB, free: 26.05 MB / 0.5575 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.048e-05/0.6228, allocations: 8.781 kB / 0.8658 GB, free: 26.05 MB / 0.5575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.802e-05/0.6229, allocations: 37.69 kB / 0.8658 GB, free: 26 MB / 0.5575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.6229, allocations: 0.6875 kB / 0.8658 GB, free: 26 MB / 0.5575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/0.623, allocations: 4.516 kB / 0.8659 GB, free: 26 MB / 0.5575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.623, allocations: 0 / 0.8659 GB, free: 26 MB / 0.5575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001621/0.6231, allocations: 139.2 kB / 0.866 GB, free: 25.83 MB / 0.5575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001468/0.6233, allocations: 30.31 kB / 0.866 GB, free: 25.79 MB / 0.5575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.463e-05/0.6233, allocations: 17.45 kB / 0.866 GB, free: 25.77 MB / 0.5575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.266e-05/0.6234, allocations: 0.6875 kB / 0.866 GB, free: 25.77 MB / 0.5575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2e-05/0.6234, allocations: 43.14 kB / 0.8661 GB, free: 25.72 MB / 0.5575 GB Notification: Performance of pre-optimization done (n=4): time 1.403e-06/0.6234, allocations: 0.7188 kB / 0.8661 GB, free: 25.72 MB / 0.5575 GB Notification: Performance of matching and sorting (n=6): time 0.000516/0.6239, allocations: 282.9 kB / 0.8663 GB, free: 25.39 MB / 0.5575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.087e-05/0.624, allocations: 52.06 kB / 0.8664 GB, free: 25.33 MB / 0.5575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.983e-05/0.624, allocations: 89.59 kB / 0.8665 GB, free: 25.24 MB / 0.5575 GB Notification: Performance of collectPreVariables (initialization): time 1.012e-05/0.624, allocations: 25.7 kB / 0.8665 GB, free: 25.21 MB / 0.5575 GB Notification: Performance of collectInitialEqns (initialization): time 1.692e-05/0.6241, allocations: 81.05 kB / 0.8666 GB, free: 25.12 MB / 0.5575 GB Notification: Performance of collectInitialBindings (initialization): time 2.611e-05/0.6241, allocations: 19.8 kB / 0.8666 GB, free: 25.11 MB / 0.5575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.456e-06/0.6241, allocations: 1.188 kB / 0.8666 GB, free: 25.11 MB / 0.5575 GB Notification: Performance of setup shared object (initialization): time 4.87e-05/0.6241, allocations: 314.8 kB / 0.8669 GB, free: 24.79 MB / 0.5575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.913e-05/0.6242, allocations: 8.844 kB / 0.8669 GB, free: 24.78 MB / 0.5575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.651e-05/0.6242, allocations: 12 kB / 0.8669 GB, free: 24.77 MB / 0.5575 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.707e-05/0.6242, allocations: 20.31 kB / 0.8669 GB, free: 24.75 MB / 0.5575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.4e-07/0.6242, allocations: 0 / 0.8669 GB, free: 24.75 MB / 0.5575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.268e-05/0.6243, allocations: 53.69 kB / 0.867 GB, free: 24.7 MB / 0.5575 GB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.6243, allocations: 5.5 kB / 0.867 GB, free: 24.69 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/0.6244, allocations: 3.984 kB / 0.867 GB, free: 24.69 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.6244, allocations: 3.938 kB / 0.867 GB, free: 24.68 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.509e-05/0.6244, allocations: 16 kB / 0.867 GB, free: 24.67 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.133e-06/0.6245, allocations: 5.25 kB / 0.867 GB, free: 24.66 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.992e-05/0.6245, allocations: 0 / 0.867 GB, free: 24.66 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.004e-06/0.6245, allocations: 4 kB / 0.867 GB, free: 24.66 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 5.107e-05/0.6245, allocations: 102.3 kB / 0.8671 GB, free: 24.55 MB / 0.5575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.168e-05/0.6246, allocations: 3.906 kB / 0.8671 GB, free: 24.55 MB / 0.5575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001295/0.6247, allocations: 71.2 kB / 0.8672 GB, free: 24.48 MB / 0.5575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.6247, allocations: 4 kB / 0.8672 GB, free: 24.47 MB / 0.5575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.6247, allocations: 8.062 kB / 0.8672 GB, free: 24.46 MB / 0.5575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.6247, allocations: 0 / 0.8672 GB, free: 24.46 MB / 0.5575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002633/0.625, allocations: 281.3 kB / 0.8675 GB, free: 24.14 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.625, allocations: 4 kB / 0.8675 GB, free: 24.14 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.137e-05/0.6251, allocations: 9.25 kB / 0.8675 GB, free: 24.13 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.6251, allocations: 0 / 0.8675 GB, free: 24.13 MB / 0.5575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.002e-05/0.6251, allocations: 7.984 kB / 0.8675 GB, free: 24.12 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.6251, allocations: 4.656 kB / 0.8675 GB, free: 24.12 MB / 0.5575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.6251, allocations: 0 / 0.8675 GB, free: 24.12 MB / 0.5575 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000152/0.6253, allocations: 184.1 kB / 0.8677 GB, free: 23.92 MB / 0.5575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.489e-05/0.6253, allocations: 89.59 kB / 0.8678 GB, free: 23.81 MB / 0.5575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.575e-05/0.6254, allocations: 4.688 kB / 0.8678 GB, free: 23.81 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.761e-05/0.6254, allocations: 0 / 0.8678 GB, free: 23.81 MB / 0.5575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.617e-05/0.6254, allocations: 5.188 kB / 0.8678 GB, free: 23.8 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.484e-05/0.6255, allocations: 0 / 0.8678 GB, free: 23.8 MB / 0.5575 GB Notification: Performance of sort global known variables: time 2.092e-05/0.6255, allocations: 84.14 kB / 0.8679 GB, free: 23.72 MB / 0.5575 GB Notification: Performance of remove unused functions: time 0.0002399/0.6257, allocations: 31.98 kB / 0.8679 GB, free: 23.69 MB / 0.5575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (dp_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.0001702/0.6259, allocations: 127.2 kB / 0.868 GB, free: 23.56 MB / 0.5575 GB Notification: Performance of simCode: created initialization part: time 8.504e-05/0.626, allocations: 27.98 kB / 0.868 GB, free: 23.53 MB / 0.5575 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.626, allocations: 0 / 0.868 GB, free: 23.53 MB / 0.5575 GB Notification: Performance of simCode: created simulation system equations: time 1.912e-05/0.626, allocations: 23.88 kB / 0.8681 GB, free: 23.51 MB / 0.5575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001519/0.6262, allocations: 4 kB / 0.8681 GB, free: 23.5 MB / 0.5575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003166/0.6265, allocations: 138.5 kB / 0.8682 GB, free: 23.34 MB / 0.5575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001439/0.6267, allocations: 0.6919 MB / 0.8689 GB, free: 22.62 MB / 0.5575 GB Notification: Performance of SimCode: time 2.5e-07/0.6267, allocations: 0 / 0.8689 GB, free: 22.62 MB / 0.5575 GB Notification: Performance of Templates: time 0.002635/0.6293, allocations: 0.655 MB / 0.8695 GB, free: 22 MB / 0.5575 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)