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/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00172/0.00172, allocations: 111.3 kB / 15.23 MB, free: 0.6562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001978/0.001978, allocations: 193.3 kB / 16.13 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.457/1.457, allocations: 222.9 MB / 239.8 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00266/0.00266, allocations: 283 kB / 290.2 MB, free: 2.176 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.09/1.09, allocations: 178.6 MB / 0.5068 GB, free: 4.785 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002757/0.002757, allocations: 96.27 kB / 0.6057 GB, free: 25.24 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1775/0.1803, allocations: 89.16 MB / 0.6928 GB, free: 4.832 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002857/0.1832, allocations: 1.525 MB / 0.6943 GB, free: 3.305 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001146/0.1843, allocations: 0.6572 MB / 0.6949 GB, free: 2.648 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.279e-05/0.1844, allocations: 0.5 kB / 0.6949 GB, free: 2.648 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.113e-05/0.1844, allocations: 3.938 kB / 0.6949 GB, free: 2.645 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.785e-05/0.1845, allocations: 2.781 kB / 0.6949 GB, free: 2.645 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004681/0.1849, allocations: 135.5 kB / 0.6951 GB, free: 2.512 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.773e-05/0.185, allocations: 47.91 kB / 0.6951 GB, free: 2.465 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.243e-05/0.1851, allocations: 1.438 kB / 0.6951 GB, free: 2.465 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.457e-05/0.1851, allocations: 27.91 kB / 0.6951 GB, free: 2.438 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.851e-05/0.1852, allocations: 23.86 kB / 0.6952 GB, free: 2.414 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.565e-05/0.1852, allocations: 4 kB / 0.6952 GB, free: 2.41 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005255/0.1857, allocations: 344 kB / 0.6955 GB, free: 2.074 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.073e-05/0.1858, allocations: 13.55 kB / 0.6955 GB, free: 2.062 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.955e-05/0.1858, allocations: 27.86 kB / 0.6955 GB, free: 2.035 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000303/0.1861, allocations: 179.8 kB / 0.6957 GB, free: 1.859 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1861, allocations: 0 / 0.6957 GB, free: 1.859 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1861, allocations: 0 / 0.6957 GB, free: 1.859 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.626e-06/0.1862, allocations: 4 kB / 0.6957 GB, free: 1.855 MB / 494.1 MB 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.0006456/0.1868, allocations: 399.3 kB / 0.6961 GB, free: 1.414 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.1868, allocations: 8.031 kB / 0.6961 GB, free: 1.406 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.864e-05/0.1869, allocations: 8.844 kB / 0.6961 GB, free: 1.398 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001397/0.187, allocations: 168.3 kB / 0.6963 GB, free: 1.195 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.463e-05/0.1871, allocations: 384 / 0.6963 GB, free: 1.195 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.73e-05/0.1871, allocations: 12.38 kB / 0.6963 GB, free: 1.184 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002419/0.1873, allocations: 85.58 kB / 0.6964 GB, free: 1.098 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.1874, allocations: 192 / 0.6964 GB, free: 1.098 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.585e-05/0.1874, allocations: 7.938 kB / 0.6964 GB, free: 1.09 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.1874, allocations: 0 / 0.6964 GB, free: 1.09 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002485/0.1876, allocations: 51.95 kB / 0.6964 GB, free: 1.039 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005658/0.1882, allocations: 328.6 kB / 0.6967 GB, free: 0.668 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002962/0.1885, allocations: 74.53 kB / 0.6968 GB, free: 0.5859 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001278/0.1887, allocations: 32.84 kB / 0.6968 GB, free: 0.5508 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.088e-05/0.1887, allocations: 3.984 kB / 0.6968 GB, free: 0.5469 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.215e-05/0.1887, allocations: 38.5 kB / 0.6969 GB, free: 0.5 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 2.915e-06/0.1887, allocations: 0 / 0.6969 GB, free: 0.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.001734/0.1905, allocations: 0.6541 MB / 0.6975 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.25e-05/0.1905, allocations: 51.41 kB / 0.6976 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.597e-05/0.1906, allocations: 105.8 kB / 0.6977 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.207e-05/0.1907, allocations: 33.7 kB / 0.6977 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.747e-05/0.1907, allocations: 84.05 kB / 0.6978 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.473e-05/0.1908, allocations: 35.45 kB / 0.6978 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.34e-05/0.1908, allocations: 29.7 kB / 0.6978 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001395/0.191, allocations: 326.8 kB / 0.6981 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001404/0.1911, allocations: 31.97 kB / 0.6982 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001239/0.1912, allocations: 27.98 kB / 0.6982 GB, free: 15 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002545/0.1915, allocations: 72.83 kB / 0.6983 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.42e-07/0.1915, allocations: 0 / 0.6983 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000328/0.1918, allocations: 121.6 kB / 0.6984 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.1919, allocations: 15.98 kB / 0.6984 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.197e-06/0.1919, allocations: 0 / 0.6984 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.018e-05/0.1919, allocations: 0 / 0.6984 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001504/0.192, allocations: 27.98 kB / 0.6984 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.989e-06/0.1921, allocations: 0 / 0.6984 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.727e-05/0.1921, allocations: 11.94 kB / 0.6984 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.052e-05/0.1922, allocations: 4 kB / 0.6984 GB, free: 14.74 MB / 0.4981 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001012/0.1923, allocations: 121.8 kB / 0.6986 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.194e-05/0.1923, allocations: 7.906 kB / 0.6986 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003934/0.1927, allocations: 133.4 kB / 0.6987 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.1927, allocations: 0 / 0.6987 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.1927, allocations: 0 / 0.6987 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.1927, allocations: 7.922 kB / 0.6987 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005956/0.1933, allocations: 378.7 kB / 0.6991 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.1933, allocations: 4 kB / 0.6991 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001593/0.1935, allocations: 23.98 kB / 0.6991 GB, free: 14 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.1935, allocations: 0 / 0.6991 GB, free: 14 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.741e-05/0.1935, allocations: 15.92 kB / 0.6991 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.1935, allocations: 0 / 0.6991 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1935, allocations: 0 / 0.6991 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005578/0.1941, allocations: 259.3 kB / 0.6994 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.011e-05/0.1942, allocations: 81.14 kB / 0.6994 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.008e-05/0.1942, allocations: 3.938 kB / 0.6994 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00012/0.1943, allocations: 7.984 kB / 0.6994 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.19e-05/0.1944, allocations: 8 kB / 0.6995 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.156e-05/0.1944, allocations: 4 kB / 0.6995 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.519e-05/0.1944, allocations: 83.45 kB / 0.6995 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.1944, allocations: 0 / 0.6995 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000284/0.1947, allocations: 36 kB / 0.6996 GB, free: 13.48 MB / 0.4981 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000221/0.195, allocations: 143.3 kB / 0.6997 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003384/0.1953, allocations: 87.33 kB / 0.6998 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1953, allocations: 0 / 0.6998 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001457/0.1955, allocations: 51.91 kB / 0.6998 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003102/0.1958, allocations: 8.641 kB / 0.6998 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006975/0.1965, allocations: 339.3 kB / 0.7002 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003231/0.1968, allocations: 0.6965 MB / 0.7008 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.284e-05/0.1969, allocations: 8.609 kB / 0.7009 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.468e-05/0.1969, allocations: 27.36 kB / 0.7009 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.1969, allocations: 0 / 0.7009 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of Templates: time 0.00388/0.2008, allocations: 1.098 MB / 0.702 GB, free: 11.01 MB / 0.4981 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)