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/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_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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001363/0.001363, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001338/0.001338, allocations: 192.2 kB / 16.25 MB, free: 6.637 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.52/1.52, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002529/0.002529, allocations: 286.6 kB / 290.4 MB, free: 2.148 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.058/1.058, allocations: 178.6 MB / 0.5069 GB, free: 4.758 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002808/0.002808, allocations: 104.1 kB / 0.6059 GB, free: 25.09 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1746/0.1774, allocations: 89.14 MB / 0.693 GB, free: 4.746 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002533/0.18, allocations: 1.324 MB / 0.6943 GB, free: 3.418 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001083/0.1811, allocations: 0.62 MB / 0.6949 GB, free: 2.801 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.062e-05/0.1811, allocations: 4 kB / 0.6949 GB, free: 2.797 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.736e-05/0.1812, allocations: 0 / 0.6949 GB, free: 2.797 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.17e-05/0.1812, allocations: 0 / 0.6949 GB, free: 2.797 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005101/0.1817, allocations: 134.3 kB / 0.695 GB, free: 2.668 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.858e-05/0.1818, allocations: 11.94 kB / 0.695 GB, free: 2.656 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.494e-05/0.1818, allocations: 7.984 kB / 0.695 GB, free: 2.648 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.283e-05/0.1819, allocations: 15.88 kB / 0.695 GB, free: 2.633 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.64e-05/0.182, allocations: 4 kB / 0.695 GB, free: 2.629 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.285e-05/0.182, allocations: 4 kB / 0.6951 GB, free: 2.625 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005743/0.1826, allocations: 343.4 kB / 0.6954 GB, free: 2.289 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.621e-05/0.1826, allocations: 7.922 kB / 0.6954 GB, free: 2.281 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.822e-05/0.1826, allocations: 8 kB / 0.6954 GB, free: 2.273 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002859/0.1829, allocations: 147.9 kB / 0.6955 GB, free: 2.129 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.1829, allocations: 0 / 0.6955 GB, free: 2.129 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1829, allocations: 0 / 0.6955 GB, free: 2.129 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.678e-06/0.1829, allocations: 0 / 0.6955 GB, free: 2.129 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.000461/0.1834, allocations: 367.3 kB / 0.6959 GB, free: 1.719 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.1835, allocations: 12.03 kB / 0.6959 GB, free: 1.707 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.398e-05/0.1835, allocations: 8.875 kB / 0.6959 GB, free: 1.699 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001421/0.1837, allocations: 164.3 kB / 0.6961 GB, free: 1.5 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.093e-05/0.1837, allocations: 4.375 kB / 0.6961 GB, free: 1.496 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.411e-05/0.1837, allocations: 4.375 kB / 0.6961 GB, free: 1.492 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001141/0.1838, allocations: 38.25 kB / 0.6961 GB, free: 1.449 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.1838, allocations: 192 / 0.6961 GB, free: 1.449 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.414e-05/0.1839, allocations: 7.938 kB / 0.6961 GB, free: 1.441 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.1839, allocations: 0 / 0.6961 GB, free: 1.441 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.849e-05/0.1839, allocations: 11.98 kB / 0.6961 GB, free: 1.43 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001893/0.1841, allocations: 157.7 kB / 0.6963 GB, free: 1.227 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001982/0.1843, allocations: 50.48 kB / 0.6963 GB, free: 1.168 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.767e-05/0.1844, allocations: 16.86 kB / 0.6963 GB, free: 1.148 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.769e-05/0.1844, allocations: 0 / 0.6963 GB, free: 1.148 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.887e-05/0.1844, allocations: 34.66 kB / 0.6964 GB, free: 1.105 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 8.81e-07/0.1844, allocations: 0 / 0.6964 GB, free: 1.105 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006946/0.1851, allocations: 326 kB / 0.6967 GB, free: 0.7344 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.205e-05/0.1852, allocations: 51.41 kB / 0.6967 GB, free: 0.6719 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.138e-05/0.1853, allocations: 93.86 kB / 0.6968 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.06e-05/0.1853, allocations: 29.7 kB / 0.6969 GB, free: 0.5352 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.153e-05/0.1853, allocations: 84.12 kB / 0.6969 GB, free: 460 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.53e-05/0.1854, allocations: 15.81 kB / 0.6969 GB, free: 444 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.135e-05/0.1854, allocations: 17.72 kB / 0.697 GB, free: 420 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.1856, allocations: 326.8 kB / 0.6973 GB, free: 84 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.502e-05/0.1856, allocations: 8 kB / 0.6973 GB, free: 76 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.453e-05/0.1856, allocations: 19.92 kB / 0.6973 GB, free: 56 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.723e-05/0.1857, allocations: 32.84 kB / 0.6973 GB, free: 20 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.01e-07/0.1857, allocations: 0 / 0.6973 GB, free: 20 kB / 494.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001246/0.1858, allocations: 69.77 kB / 0.6974 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.1859, allocations: 7.938 kB / 0.6974 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.1859, allocations: 0 / 0.6974 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.1859, allocations: 0 / 0.6974 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.245e-05/0.186, allocations: 19.94 kB / 0.6974 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.186, allocations: 0 / 0.6974 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.073e-05/0.186, allocations: 0 / 0.6974 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.179e-06/0.186, allocations: 3.938 kB / 0.6974 GB, free: 15.91 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 (7): * Single equations (assignments): 7 * 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 9.454e-05/0.1861, allocations: 113.8 kB / 0.6975 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.431e-05/0.1861, allocations: 7.922 kB / 0.6975 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001399/0.1863, allocations: 69.66 kB / 0.6976 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.1863, allocations: 0 / 0.6976 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.1863, allocations: 0 / 0.6976 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.1863, allocations: 4 kB / 0.6976 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000347/0.1866, allocations: 311.4 kB / 0.6979 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.1867, allocations: 3.984 kB / 0.6979 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.024e-05/0.1867, allocations: 15.94 kB / 0.6979 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.1867, allocations: 0 / 0.6979 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.084e-06/0.1868, allocations: 0 / 0.6979 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.1868, allocations: 4 kB / 0.6979 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.1868, allocations: 0 / 0.6979 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002021/0.187, allocations: 188.5 kB / 0.6981 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.502e-05/0.187, allocations: 85.14 kB / 0.6982 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.199e-05/0.1871, allocations: 0 / 0.6982 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.324e-05/0.1871, allocations: 3.984 kB / 0.6982 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.693e-05/0.1872, allocations: 4 kB / 0.6982 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.893e-06/0.1872, allocations: 4.516 kB / 0.6982 GB, free: 15 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.127e-05/0.1872, allocations: 79.28 kB / 0.6983 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.983e-06/0.1872, allocations: 4.062 kB / 0.6983 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002469/0.1875, allocations: 31.81 kB / 0.6983 GB, free: 14.89 MB / 0.4981 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 () * Number of clocked 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 (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.00019/0.1877, allocations: 127.2 kB / 0.6984 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001113/0.1878, allocations: 35.98 kB / 0.6985 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.103e-06/0.1878, allocations: 0 / 0.6985 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 2.718e-05/0.1878, allocations: 15.94 kB / 0.6985 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002237/0.1881, allocations: 9.625 kB / 0.6985 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004177/0.1885, allocations: 204 kB / 0.6987 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003269/0.1888, allocations: 0.6807 MB / 0.6994 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.231e-05/0.1889, allocations: 4 kB / 0.6994 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.258e-05/0.1889, allocations: 11.44 kB / 0.6994 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.1889, allocations: 0 / 0.6994 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of Templates: time 0.003181/0.1921, allocations: 0.6379 MB / 0.7 GB, free: 13.14 MB / 0.4981 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)