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.001227/0.001227, allocations: 107.4 kB / 15.34 MB, free: 0.5 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.001209/0.00121, allocations: 192.1 kB / 16.25 MB, free: 6.156 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.351/1.351, allocations: 222.9 MB / 239.9 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002053/0.002053, allocations: 283 kB / 290.4 MB, free: 2.004 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9556/0.9556, allocations: 169.2 MB / 0.4978 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001641/0.001641, allocations: 92.12 kB / 0.5947 GB, free: 28.13 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1818/0.1835, allocations: 86.99 MB / 0.6796 GB, free: 1.062 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002682/0.1862, allocations: 1.334 MB / 0.6809 GB, free: 15.73 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001203/0.1874, allocations: 0.6071 MB / 0.6815 GB, free: 15.12 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.187e-05/0.1875, allocations: 4 kB / 0.6815 GB, free: 15.12 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.158e-05/0.1875, allocations: 0 / 0.6815 GB, free: 15.12 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.203e-05/0.1876, allocations: 0.7812 kB / 0.6815 GB, free: 15.12 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000553/0.1881, allocations: 131.3 kB / 0.6817 GB, free: 14.99 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.112e-05/0.1882, allocations: 24.53 kB / 0.6817 GB, free: 14.97 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.203e-05/0.1882, allocations: 4.688 kB / 0.6817 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.348e-05/0.1883, allocations: 11.94 kB / 0.6817 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.225e-05/0.1883, allocations: 5.375 kB / 0.6817 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.949e-06/0.1883, allocations: 0 / 0.6817 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004607/0.1888, allocations: 351.3 kB / 0.682 GB, free: 14.61 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.209e-05/0.1888, allocations: 7.938 kB / 0.682 GB, free: 14.6 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.128e-05/0.1888, allocations: 8 kB / 0.682 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002213/0.1891, allocations: 147.9 kB / 0.6822 GB, free: 14.45 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1891, allocations: 0 / 0.6822 GB, free: 14.45 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1891, allocations: 0 / 0.6822 GB, free: 14.45 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.1891, allocations: 0 / 0.6822 GB, free: 14.45 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.0004157/0.1895, allocations: 365.6 kB / 0.6825 GB, free: 14.04 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.1896, allocations: 12.03 kB / 0.6825 GB, free: 14.03 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.463e-05/0.1896, allocations: 8.781 kB / 0.6826 GB, free: 14.02 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001973/0.1898, allocations: 160.4 kB / 0.6827 GB, free: 13.82 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.665e-05/0.1898, allocations: 12.36 kB / 0.6827 GB, free: 13.81 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.901e-05/0.1898, allocations: 4.375 kB / 0.6827 GB, free: 13.81 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.195e-05/0.1899, allocations: 34.27 kB / 0.6828 GB, free: 13.77 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.612e-06/0.19, allocations: 192 / 0.6828 GB, free: 13.77 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.579e-05/0.19, allocations: 11.92 kB / 0.6828 GB, free: 13.76 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.19, allocations: 0 / 0.6828 GB, free: 13.76 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.746e-05/0.19, allocations: 8 kB / 0.6828 GB, free: 13.75 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002561/0.1903, allocations: 153.7 kB / 0.6829 GB, free: 13.55 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001793/0.1905, allocations: 50.55 kB / 0.683 GB, free: 13.49 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.045e-05/0.1906, allocations: 16.95 kB / 0.683 GB, free: 13.47 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.173e-05/0.1906, allocations: 3.984 kB / 0.683 GB, free: 13.47 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.08e-05/0.1906, allocations: 34.56 kB / 0.683 GB, free: 13.43 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 1.352e-06/0.1906, allocations: 0 / 0.683 GB, free: 13.43 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0005707/0.1912, allocations: 310.4 kB / 0.6833 GB, free: 13.07 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.725e-05/0.1912, allocations: 55.41 kB / 0.6834 GB, free: 13 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.576e-05/0.1913, allocations: 97.84 kB / 0.6835 GB, free: 12.9 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.1913, allocations: 33.64 kB / 0.6835 GB, free: 12.86 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.647e-05/0.1914, allocations: 84.08 kB / 0.6836 GB, free: 12.77 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.508e-05/0.1914, allocations: 19.72 kB / 0.6836 GB, free: 12.75 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.674e-05/0.1915, allocations: 21.7 kB / 0.6836 GB, free: 12.73 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001978/0.1917, allocations: 314.8 kB / 0.6839 GB, free: 12.41 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.724e-05/0.1917, allocations: 8 kB / 0.6839 GB, free: 12.4 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.411e-05/0.1918, allocations: 19.98 kB / 0.6839 GB, free: 12.38 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.229e-05/0.1918, allocations: 28.86 kB / 0.684 GB, free: 12.35 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.92e-07/0.1918, allocations: 0 / 0.684 GB, free: 12.35 MB / 494.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001205/0.1919, allocations: 69.67 kB / 0.684 GB, free: 12.28 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.192, allocations: 7.938 kB / 0.684 GB, free: 12.27 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.192, allocations: 0 / 0.684 GB, free: 12.27 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.192, allocations: 0 / 0.684 GB, free: 12.27 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.328e-05/0.1921, allocations: 15.94 kB / 0.6841 GB, free: 12.25 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/0.1921, allocations: 0 / 0.6841 GB, free: 12.25 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.703e-05/0.1921, allocations: 3.938 kB / 0.6841 GB, free: 12.25 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.669e-06/0.1921, allocations: 4 kB / 0.6841 GB, free: 12.25 MB / 494.1 MB 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 7.127e-05/0.1922, allocations: 122.4 kB / 0.6842 GB, free: 12.12 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.287e-05/0.1922, allocations: 7.844 kB / 0.6842 GB, free: 12.11 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001408/0.1923, allocations: 69.66 kB / 0.6843 GB, free: 12.04 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.1923, allocations: 0 / 0.6843 GB, free: 12.04 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.1924, allocations: 8.062 kB / 0.6843 GB, free: 12.03 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.1924, allocations: 3.984 kB / 0.6843 GB, free: 12.02 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002936/0.1927, allocations: 311.4 kB / 0.6846 GB, free: 11.66 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.1927, allocations: 0 / 0.6846 GB, free: 11.66 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.931e-05/0.1927, allocations: 15.94 kB / 0.6846 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.1927, allocations: 0 / 0.6846 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/0.1928, allocations: 4 kB / 0.6846 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.1928, allocations: 4 kB / 0.6846 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.1928, allocations: 0 / 0.6846 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002126/0.193, allocations: 176.4 kB / 0.6848 GB, free: 11.45 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.587e-05/0.1931, allocations: 93.03 kB / 0.6848 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.184e-05/0.1931, allocations: 3.938 kB / 0.6849 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.896e-05/0.1932, allocations: 0 / 0.6849 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.449e-05/0.1932, allocations: 4 kB / 0.6849 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.973e-06/0.1932, allocations: 4 kB / 0.6849 GB, free: 11.32 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.158e-05/0.1932, allocations: 87.2 kB / 0.6849 GB, free: 11.24 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1933, allocations: 0 / 0.6849 GB, free: 11.24 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000236/0.1935, allocations: 20 kB / 0.685 GB, free: 11.22 MB / 494.1 MB 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.000238/0.1937, allocations: 131.2 kB / 0.6851 GB, free: 11.08 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000104/0.1938, allocations: 36.22 kB / 0.6851 GB, free: 11.05 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.1939, allocations: 0 / 0.6851 GB, free: 11.05 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.685e-05/0.1939, allocations: 15.94 kB / 0.6851 GB, free: 11.03 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002147/0.1941, allocations: 7.938 kB / 0.6851 GB, free: 11.02 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005163/0.1946, allocations: 202.4 kB / 0.6853 GB, free: 10.8 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004418/0.1951, allocations: 0.6807 MB / 0.686 GB, free: 10.09 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.775e-05/0.1951, allocations: 8 kB / 0.686 GB, free: 10.09 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.152e-05/0.1952, allocations: 15.42 kB / 0.686 GB, free: 10.07 MB / 494.1 MB Notification: Performance of SimCode: time 1.553e-06/0.1952, allocations: 0 / 0.686 GB, free: 10.07 MB / 494.1 MB Notification: Performance of Templates: time 0.002869/0.198, allocations: 0.6348 MB / 0.6866 GB, free: 9.469 MB / 494.1 MB 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)