Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8578/0.8578, allocations: 143.4 MB / 158.3 MB, free: 5.805 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001315/0.001315, allocations: 187.7 kB / 191.5 MB, free: 5.754 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.569/1.569, allocations: 223.2 MB / 447.7 MB, free: 4.785 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 92.33 kB / 0.5188 GB, free: 1.148 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001713/0.001713, allocations: 279.3 kB / 0.6005 GB, free: 48.71 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004148/0.0004148, allocations: 14 kB / 0.6929 GB, free: 59.58 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.167/0.1674, allocations: 82.8 MB / 0.7737 GB, free: 13.8 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5124/0.6798, allocations: 110.2 MB / 0.8814 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002042/0.6801, allocations: 88.23 kB / 0.8815 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01198/0.6921, allocations: 4.318 MB / 0.8857 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.442e-06/0.6921, allocations: 0 / 0.8857 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 6.843e-06/0.6921, allocations: 0 / 0.8857 GB, free: 108.1 MB / 0.5417 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.0004162/0.6925, allocations: 386.8 kB / 0.8861 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.6926, allocations: 9 kB / 0.8861 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.484e-05/0.6926, allocations: 2.438 kB / 0.8861 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.152e-05/0.6927, allocations: 171.8 kB / 0.8862 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.751e-05/0.6928, allocations: 5.5 kB / 0.8862 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.616e-05/0.6928, allocations: 10.89 kB / 0.8862 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002448/0.693, allocations: 84.31 kB / 0.8863 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.292e-05/0.6931, allocations: 0 / 0.8863 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.462e-05/0.6931, allocations: 1.562 kB / 0.8863 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.6931, allocations: 3 kB / 0.8863 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002267/0.6933, allocations: 56.34 kB / 0.8864 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000533/0.6939, allocations: 335.1 kB / 0.8867 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002765/0.6942, allocations: 89.19 kB / 0.8868 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.294e-05/0.6942, allocations: 0 / 0.8868 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.037e-05/0.6942, allocations: 34.19 kB / 0.8868 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=7): time 8.52e-07/0.6942, allocations: 0 / 0.8868 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of matching and sorting (n=11): time 0.001593/0.6958, allocations: 0.6819 MB / 0.8875 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.695e-05/0.6959, allocations: 55.7 kB / 0.8875 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.283e-05/0.6959, allocations: 96.08 kB / 0.8876 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.738e-05/0.696, allocations: 30.03 kB / 0.8877 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 4.39e-05/0.696, allocations: 84.64 kB / 0.8877 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 4.358e-05/0.6961, allocations: 46.27 kB / 0.8878 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.222e-06/0.6961, allocations: 0 / 0.8878 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 7.438e-05/0.6962, allocations: 319.1 kB / 0.8881 GB, free: 106 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001327/0.6963, allocations: 33.3 kB / 0.8881 GB, free: 106 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001246/0.6964, allocations: 36.47 kB / 0.8882 GB, free: 106 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001301/0.6966, allocations: 42.47 kB / 0.8882 GB, free: 106 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.6966, allocations: 0 / 0.8882 GB, free: 106 MB / 0.5417 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003395/0.6969, allocations: 119.5 kB / 0.8883 GB, free: 106 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.6969, allocations: 9.031 kB / 0.8883 GB, free: 106 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.697, allocations: 0.6562 kB / 0.8883 GB, free: 106 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.697, allocations: 9.094 kB / 0.8883 GB, free: 106 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001706/0.6972, allocations: 30.56 kB / 0.8884 GB, free: 106 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.6972, allocations: 6.391 kB / 0.8884 GB, free: 106 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.581e-05/0.6972, allocations: 10.09 kB / 0.8884 GB, free: 106 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.099e-05/0.6973, allocations: 4.062 kB / 0.8884 GB, free: 106 MB / 0.5417 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 () * Number of clocked 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 7.31e-05/0.6973, allocations: 113.2 kB / 0.8885 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.144e-05/0.6974, allocations: 11.75 kB / 0.8885 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004178/0.6978, allocations: 142 kB / 0.8886 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.6978, allocations: 1.375 kB / 0.8886 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.6978, allocations: 0.6562 kB / 0.8886 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.6978, allocations: 5.844 kB / 0.8886 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005608/0.6984, allocations: 392.3 kB / 0.889 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.6984, allocations: 3.938 kB / 0.889 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001513/0.6986, allocations: 26.59 kB / 0.889 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.6986, allocations: 0 / 0.889 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.228e-05/0.6986, allocations: 6.281 kB / 0.889 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.6986, allocations: 5.328 kB / 0.8891 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.6986, allocations: 4 kB / 0.8891 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004576/0.6991, allocations: 257.6 kB / 0.8893 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 2.264e-05/0.6991, allocations: 88.12 kB / 0.8894 GB, free: 105.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.668e-05/0.6991, allocations: 1.781 kB / 0.8894 GB, free: 105.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001197/0.6993, allocations: 7.047 kB / 0.8894 GB, free: 105.3 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.46e-05/0.6993, allocations: 18.64 kB / 0.8894 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.169e-05/0.6993, allocations: 7.047 kB / 0.8894 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 2.604e-05/0.6993, allocations: 76.59 kB / 0.8895 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6994, allocations: 3.938 kB / 0.8895 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003163/0.6997, allocations: 41.44 kB / 0.8895 GB, free: 105.2 MB / 0.5417 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 () * Number of clocked 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.0002171/0.6999, allocations: 146.8 kB / 0.8897 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0003336/0.7002, allocations: 98.73 kB / 0.8898 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.7002, allocations: 0 / 0.8898 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001294/0.7004, allocations: 49.47 kB / 0.8898 GB, free: 105 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000217/0.7006, allocations: 11.48 kB / 0.8898 GB, free: 105 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006341/0.7013, allocations: 374.1 kB / 0.8902 GB, free: 104.8 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001291/0.7014, allocations: 0.6925 MB / 0.8909 GB, free: 104.1 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 7.669e-05/0.7015, allocations: 18.7 kB / 0.8909 GB, free: 104.1 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.039e-05/0.7015, allocations: 14.64 kB / 0.8909 GB, free: 104.1 MB / 0.5417 GB Notification: Performance of SimCode: time 6.31e-07/0.7015, allocations: 0 / 0.8909 GB, free: 104.1 MB / 0.5417 GB Notification: Performance of Templates: time 0.003476/0.705, allocations: 1.017 MB / 0.8919 GB, free: 104 MB / 0.5417 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)